Skip to content

Commit

Permalink
[src] Remove dead NET code inside !NET blocks. (dotnet#14227)
Browse files Browse the repository at this point in the history
  • Loading branch information
rolfbjarne authored and TJ Lambert committed Mar 8, 2022
1 parent 59feb1e commit 6fa0d61
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 25 deletions.
8 changes: 0 additions & 8 deletions src/AVFoundation/AVPlayerViewController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,7 @@ public partial class AVPlayerViewController {
// the resulting syntax does not look good in user code so we provide a better looking API
// https://trello.com/c/iQpXOxCd/227-category-and-static-methods-selectors
// note: we cannot reuse the same method name - as it would break compilation of existing apps
#if NET
[SupportedOSPlatform ("ios8.0")]
[UnsupportedOSPlatform ("macos")]
#if IOS
[Obsolete ("Starting with ios15.0.", DiagnosticId = "BI1234", UrlFormat = "https://github.com/xamarin/xamarin-macios/wiki/Obsolete")]
#endif
#else
[Obsoleted (PlatformName.iOS, 15,0, PlatformArchitecture.None, Constants.iAdRemoved)]
#endif
static public void PrepareForPrerollAds ()
{
}
Expand Down
11 changes: 0 additions & 11 deletions src/MediaPlayer/MPMoviePlayerController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,8 @@ public partial class MPMoviePlayerController {
// the resulting syntax does not look good in user code so we provide a better looking API
// https://trello.com/c/iQpXOxCd/227-category-and-static-methods-selectors
// note: we cannot reuse the same method name - as it would break compilation of existing apps
#if NET
[SupportedOSPlatform ("ios7.0")]
[SupportedOSPlatform ("maccatalyst14.0")]
[UnsupportedOSPlatform ("ios9.0")]
[UnsupportedOSPlatform ("tvos")]
#if IOS
[Obsolete ("Starting with ios9.0 use 'AVPlayerViewController' (AVKit) instead.", DiagnosticId = "BI1234", UrlFormat = "https://github.com/xamarin/xamarin-macios/wiki/Obsolete")]
[Obsolete ("Starting with ios15.0.", DiagnosticId = "BI1234", UrlFormat = "https://github.com/xamarin/xamarin-macios/wiki/Obsolete")]
#endif
#else
[iOS (7,0)]
[Obsoleted (PlatformName.iOS, 15,0, PlatformArchitecture.None, Constants.iAdRemoved)]
#endif
static public void PrepareForPrerollAds ()
{
}
Expand Down
6 changes: 0 additions & 6 deletions src/UIKit/UIViewController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,7 @@ public IEnumerator GetEnumerator ()
// the resulting syntax does not look good in user code so we provide a better looking API
// https://trello.com/c/iQpXOxCd/227-category-and-static-methods-selectors
// note: we cannot reuse the same method name - as it would break compilation of existing apps
#if NET
#if IOS
[Obsolete ("Starting with ios15.0.", DiagnosticId = "BI1234", UrlFormat = "https://github.com/xamarin/xamarin-macios/wiki/Obsolete")]
#endif
#else
[Obsoleted (PlatformName.iOS, 15,0, PlatformArchitecture.None, Constants.iAdRemoved)]
#endif
static public void PrepareForInterstitialAds ()
{
}
Expand Down

0 comments on commit 6fa0d61

Please sign in to comment.