Skip to content

Commit 7c5803c

Browse files
authored
Revert "[create-pull-request] automated change (#30260)" (#30409)
This reverts commit 60ecf9f.
1 parent 60ecf9f commit 7c5803c

File tree

32 files changed

+27
-75
lines changed

32 files changed

+27
-75
lines changed

src/BlazorWebView/tests/MauiDeviceTests/Elements/BlazorWebViewTests.RequestInterception.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
using System;
22
using System.Collections.Generic;
3-
using System.Diagnostics.CodeAnalysis;
43
using System.Globalization;
54
using System.IO;
65
using System.Text;
@@ -76,7 +75,6 @@ public Task RequestsCanBeInterceptedAndAsyncCustomDataReturned() =>
7675
Assert.NotNull(responseObject);
7776
Assert.Equal("Hello real endpoint (param1=value1, param2=value2)", responseObject.message);
7877

79-
[RequiresUnreferencedCode("Calls System.Text.Json.JsonSerializer.SerializeAsync<TValue>(Stream, TValue, JsonSerializerOptions, CancellationToken)")]
8078
static async Task<Stream> GetDataAsync(IReadOnlyDictionary<string, string> queryParams)
8179
{
8280
var response = new EchoResponseObject { message = $"Hello real endpoint (param1={queryParams["param1"]}, param2={queryParams["param2"]})" };

src/BlazorWebView/tests/MauiDeviceTests/WebViewHelpers.Shared.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#nullable enable
22
using System;
3-
using System.Diagnostics.CodeAnalysis;
43
using System.Text.Json;
54
using System.Threading.Tasks;
65
#if ANDROID
@@ -85,7 +84,6 @@ await ExecuteScriptAsync(webView,
8584

8685
throw new Exception($"Failed to deserialize result from controlDiv: {result}");
8786

88-
[RequiresUnreferencedCode("Calls System.Text.Json.JsonSerializer.Deserialize<TValue>(String, JsonSerializerOptions)")]
8987
static bool TryDeserialize<TInner>(string? result, out TInner? value)
9088
{
9189
if (result is null or "null" or "undefined")

src/Controls/samples/Controls.Sample/Pages/Compatibility/ListViewGalleries/ListViewRefresh.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
using System;
22
using System.Collections.Generic;
33
using System.Collections.ObjectModel;
4-
using System.Diagnostics.CodeAnalysis;
54
using Microsoft.Maui;
65
using Microsoft.Maui.Controls;
76

87
namespace Maui.Controls.Sample.Pages.ListViewGalleries
98
{
109
public class ListViewRefresh : ContentPage
1110
{
12-
[RequiresUnreferencedCode()]
1311
public ListViewRefresh()
1412
{
1513
var refreshingCount = 0;

src/Controls/samples/Controls.Sample/Pages/Controls/CarouselViewGalleries/CarouselCodeGallery.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
using System.Diagnostics.CodeAnalysis;
2-
using Maui.Controls.Sample.Pages.CollectionViewGalleries.SpacingGalleries;
1+
using Maui.Controls.Sample.Pages.CollectionViewGalleries.SpacingGalleries;
32
using Microsoft.Maui;
43
using Microsoft.Maui.Controls;
54
using Microsoft.Maui.Controls.Internals;
@@ -149,7 +148,6 @@ void CarouselViewScrolled(object? sender, ItemsViewScrolledEventArgs e)
149148
_scrollInfoLabel.Text += $", Delta: {delta}, Offset: {offset}";
150149
}
151150

152-
[RequiresUnreferencedCode("Calls Microsoft.Maui.Controls.BindableObjectExtensions.SetBinding(BindableProperty, String, BindingMode, IValueConverter, String)")]
153151
static StackLayout GetReadOnlyInfo(CarouselView carouselView)
154152
{
155153
var StackLayoutInfo = new StackLayout

src/Controls/samples/Controls.Sample/Pages/Controls/CarouselViewGalleries/CarouselItemsGallery.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
using System;
22
using System.Collections.Generic;
33
using System.Collections.ObjectModel;
4-
using System.Diagnostics.CodeAnalysis;
54
using System.Linq;
65
using System.Threading.Tasks;
76
using Microsoft.Maui;
@@ -18,8 +17,6 @@ public class CarouselItemsGallery : ContentPage
1817
{
1918
CarouselItemsGalleryViewModel _viewModel;
2019
bool _setPositionOnAppering;
21-
22-
[RequiresUnreferencedCode()]
2320
public CarouselItemsGallery(bool startEmptyCollection = false, bool setCollectionWithAsync = false,
2421
bool useNativeIndicators = false, bool setPositionOnConstructor = false,
2522
bool setPositionOnAppearing = false, bool useScrollAnimated = true)

src/Controls/samples/Controls.Sample/Pages/Controls/CarouselViewGalleries/CollectionCarouselViewGallery.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
using System;
22
using System.Collections.Generic;
33
using System.Collections.ObjectModel;
4-
using System.Diagnostics.CodeAnalysis;
54
using System.Threading.Tasks;
65
using System.Windows.Input;
76
using Microsoft.Maui;
@@ -14,7 +13,6 @@ namespace Maui.Controls.Sample.Pages.CollectionViewGalleries.CarouselViewGalleri
1413
[Preserve(AllMembers = true)]
1514
public class CollectionCarouselViewGallery : ContentPage
1615
{
17-
[RequiresUnreferencedCode()]
1816
public CollectionCarouselViewGallery()
1917
{
2018
Title = "Working with ObservableCollections and CarouselView";

src/Controls/samples/Controls.Sample/Pages/Controls/CollectionViewGalleries/PositionControl.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using System;
2-
using System.Diagnostics.CodeAnalysis;
32
using Microsoft.Maui;
43
using Microsoft.Maui.Controls;
54
using Microsoft.Maui.Graphics;
@@ -10,7 +9,6 @@ internal class PositionControl : ContentView
109
{
1110
Slider _slider;
1211

13-
[RequiresUnreferencedCode("Calls Microsoft.Maui.Controls.BindableObjectExtensions.SetBinding(BindableProperty, String, BindingMode, IValueConverter, String)")]
1412
public PositionControl(CarouselView carousel, int itemsCount)
1513
{
1614
var animateLabel = new Label { Text = "Animate: ", VerticalTextAlignment = TextAlignment.Center };

src/Controls/samples/Controls.Sample/Pages/Controls/CollectionViewGalleries/ReorderingGalleries/GroupedReorderingGallery.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using System;
2-
using System.Diagnostics.CodeAnalysis;
32
using Maui.Controls.Sample.Pages.CollectionViewGalleries.GroupingGalleries;
43
using Microsoft.Maui;
54
using Microsoft.Maui.Controls;
@@ -10,7 +9,6 @@ namespace Maui.Controls.Sample.Pages.CollectionViewGalleries.ReorderingGalleries
109
{
1110
internal class GroupedReorderingGallery : ContentPage
1211
{
13-
[RequiresUnreferencedCode("Calls Microsoft.Maui.Controls.Binding.Binding(String, BindingMode, IValueConverter, Object, String, Object)")]
1412
public GroupedReorderingGallery(IItemsLayout itemsLayout)
1513
{
1614
var layout = new Grid

src/Controls/samples/Controls.Sample/Pages/Controls/TitleBarPage.xaml.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using System;
2-
using System.Diagnostics.CodeAnalysis;
32
using Maui.Controls.Sample.ViewModels;
43
using Microsoft.Maui.Controls;
54
using Microsoft.Maui.Controls.Shapes;
@@ -12,7 +11,6 @@ public partial class TitleBarPage : ContentPage
1211
TitleBarSampleViewModel _viewModel;
1312
TitleBar _customTitleBar;
1413

15-
[RequiresUnreferencedCode()]
1614
public TitleBarPage()
1715
{
1816
InitializeComponent();

src/Controls/samples/Controls.Sample/Pages/PlatformSpecifics/Windows/WindowsTileBarPage.xaml.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using System;
2-
using System.Diagnostics.CodeAnalysis;
32
using Maui.Controls.Sample.ViewModels;
43
using Microsoft.Maui.Controls;
54
using Microsoft.Maui.Controls.Shapes;
@@ -12,7 +11,6 @@ public partial class WindowsTitleBarPage : ContentPage
1211
TitleBarSampleViewModel _viewModel;
1312
TitleBar _customTitleBar;
1413

15-
[RequiresUnreferencedCode()]
1614
public WindowsTitleBarPage()
1715
{
1816
InitializeComponent();

0 commit comments

Comments
 (0)