Skip to content

Commit

Permalink
[src] Remove watchOS code.
Browse files Browse the repository at this point in the history
  • Loading branch information
rolfbjarne committed Dec 31, 2024
1 parent c153d76 commit de18079
Show file tree
Hide file tree
Showing 250 changed files with 177 additions and 1,491 deletions.
2 changes: 1 addition & 1 deletion src/AVFoundation/AVAssetDownloadTask.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#nullable enable

namespace AVFoundation {
#if !MONOMAC && !WATCH && !TVOS
#if !MONOMAC && !TVOS
public partial class AVAssetDownloadTask : NSUrlSessionTask {

// NSURLRequest and NSURLResponse objects are not available for AVAssetDownloadTask
Expand Down
2 changes: 1 addition & 1 deletion src/AVFoundation/AVAssetDownloadUrlSession.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//
// Copyright 2015 Xamarin Inc.
//
#if !TVOS && !WATCH
#if !TVOS
using System;
using Foundation;
using ObjCRuntime;
Expand Down
30 changes: 0 additions & 30 deletions src/AVFoundation/AVAssetImageGenerator.cs

This file was deleted.

36 changes: 0 additions & 36 deletions src/AVFoundation/AVAssetReaderVideoCompositionOutput.cs

This file was deleted.

4 changes: 0 additions & 4 deletions src/AVFoundation/AVAssetResourceLoadingDataRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
// Copyright 2012, 2014 Xamarin Inc
//

#if !WATCH

using System;
using Foundation;

Expand All @@ -22,5 +20,3 @@ public override string ToString ()
}
}
}

#endif
4 changes: 0 additions & 4 deletions src/AVFoundation/AVAudioBuffer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
// Miguel de Icaza
//

#if !WATCH

using Foundation;
using System;
using AudioToolbox;
Expand All @@ -28,5 +26,3 @@ public AudioBuffers MutableAudioBufferList {
}
}
}

#endif
2 changes: 0 additions & 2 deletions src/AVFoundation/AVAudioPlayer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
#nullable enable

namespace AVFoundation {
#if !WATCH
public partial class AVAudioPlayer {

[DllImport (Constants.ObjectiveCLibrary, EntryPoint = "objc_msgSend")]
Expand Down Expand Up @@ -76,5 +75,4 @@ public partial class AVAudioPlayer {
return FromData (data, out _);
}
}
#endif // !WATCH
}
4 changes: 0 additions & 4 deletions src/AVFoundation/AVAudioRecorder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//

#if !WATCH

using Foundation;
using CoreFoundation;
using AudioToolbox;
Expand Down Expand Up @@ -92,5 +90,3 @@ public partial class AVAudioRecorder {
}
#endif // !TVOS
}

#endif // !WATCH
2 changes: 0 additions & 2 deletions src/AVFoundation/AVAudioSessionDataSourceDescription.cs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ public AVAudioDataSourceOrientation Orientation {
}
}

#if !WATCH
public AVAudioDataSourcePolarPattern []? SupportedPolarPatterns {
get {
var x = SupportedPolarPatterns_;
Expand Down Expand Up @@ -116,7 +115,6 @@ public bool SetPreferredPolarPattern (AVAudioDataSourcePolarPattern pattern, out
{
return SetPreferredPolarPattern_ (ToToken (pattern), out outError);
}
#endif
}
}
#endif
2 changes: 1 addition & 1 deletion src/AVFoundation/AVCaptureConnection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//

#if !TVOS && !WATCH
#if !TVOS

using System;
using ObjCRuntime;
Expand Down
2 changes: 1 addition & 1 deletion src/AVFoundation/AVCaptureDeviceInput.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//

#if !TVOS && !WATCH
#if !TVOS

using System;
using Foundation;
Expand Down
4 changes: 2 additions & 2 deletions src/AVFoundation/AVCaptureFileOutput.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
// Copyright 2014 Xamarin Inc (http://www.xamarin.com)
//

#if !TVOS && !WATCH
#if !TVOS

using System;
using Foundation;
Expand Down Expand Up @@ -46,4 +46,4 @@ public void StartRecordingToOutputFile (NSUrl outputFileUrl, Action<NSObject []>
}
}

#endif // !TVOS && !WATCH
#endif // !TVOS
2 changes: 1 addition & 1 deletion src/AVFoundation/AVCaptureVideoPreviewLayer.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#if !WATCH && !TVOS
#if !TVOS

using System;

Expand Down
2 changes: 0 additions & 2 deletions src/AVFoundation/AVCompat.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ public AVAudioSourceNode (AVAudioFormat format, AVAudioSourceNodeRenderHandler r
throw new InvalidOperationException ("Do not use this constructor. Use the 'AVAudioSourceNode (AVAudioFormat, AVAudioSourceNodeRenderHandler2)' constructor instead.");
}
}
#if !WATCH
#if MONOMAC
[Obsolete ("This API is not available on this platform.")]
public partial class AVCaptureDataOutputSynchronizer : NSObject
Expand Down Expand Up @@ -471,7 +470,6 @@ public AVAssetDownloadTask GetAssetDownloadTask (AVUrlAsset urlAsset, string tit
}

#endif // TVOS
#endif // !WATCH

#if IOS // includes __MACCATALYST__
public partial class AVCaptureManualExposureBracketedStillImageSettings {
Expand Down
2 changes: 0 additions & 2 deletions src/AVFoundation/AVContentKeyResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@

namespace AVFoundation {

#if !WATCH
public partial class AVContentKeyResponse {

public static AVContentKeyResponse Create (NSData fairPlayStreamingKeyResponseData) => Create (fairPlayStreamingKeyResponseData, AVContentKeyResponseDataType.FairPlayStreamingKeyResponseData);
Expand All @@ -30,5 +29,4 @@ public static AVContentKeyResponse Create (NSData data, AVContentKeyResponseData
}
}
}
#endif
}
2 changes: 0 additions & 2 deletions src/AVFoundation/AVDepthData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
// Copyright 2017 Xamarin Inc.
//

#if !WATCH
using System;
using Foundation;
using ObjCRuntime;
Expand Down Expand Up @@ -40,4 +39,3 @@ public CVPixelFormatType []? AvailableDepthDataTypes {
}
}
}
#endif
4 changes: 0 additions & 4 deletions src/AVFoundation/AVLayerVideoGravity.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//

#if !WATCH

using System;

using Foundation;
Expand Down Expand Up @@ -111,5 +109,3 @@ public AVLayerVideoGravity? ExternalPlaybackVideoGravity {
}
}
}

#endif
33 changes: 0 additions & 33 deletions src/AVFoundation/AVMetadataItemFilter.cs

This file was deleted.

4 changes: 0 additions & 4 deletions src/AVFoundation/AVPlayerItem.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#if !WATCH

using System;

using Foundation;
Expand All @@ -26,5 +24,3 @@ public AVVideoApertureMode VideoApertureMode {
}
}
}

#endif
4 changes: 0 additions & 4 deletions src/AVFoundation/AVPlayerItemVideoOutput.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#if !WATCH

using System;

using Foundation;
Expand Down Expand Up @@ -36,5 +34,3 @@ enum InitMode {
protected AVPlayerItemVideoOutput (NSDictionary pixelBufferAttributes) : this (pixelBufferAttributes, InitMode.PixelAttributes) { }
}
}

#endif
4 changes: 0 additions & 4 deletions src/AVFoundation/AVPlayerLayer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
// Copyright 2015 Xamarin Inc.
//

#if !WATCH

using ObjCRuntime;
using CoreVideo;

Expand Down Expand Up @@ -36,5 +34,3 @@ public CVPixelBufferAttributes? PixelBufferAttributes {
}
}
}

#endif
3 changes: 0 additions & 3 deletions src/AVFoundation/AVPlayerLooper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//

#if !WATCH

using Foundation;
using CoreFoundation;
using AudioToolbox;
Expand All @@ -45,4 +43,3 @@ public virtual bool LoopingEnabled {
#endif
}
}
#endif // !WATCH
2 changes: 0 additions & 2 deletions src/AVFoundation/AVTypes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,6 @@ public static partial class AVMetadataIdentifiers {
[SupportedOSPlatform ("macos")]
[SupportedOSPlatform ("tvos")]
#endif
#if !WATCH
public static class AVUtilities {

[DllImport (Constants.AVFoundationLibrary)]
Expand All @@ -302,7 +301,6 @@ public static CGRect WithAspectRatio (this CGRect self, CGSize aspectRatio)
return AVMakeRectWithAspectRatioInsideRect (aspectRatio, self);
}
}
#endif

#if NET
[SupportedOSPlatform ("macos")]
Expand Down
2 changes: 0 additions & 2 deletions src/AVFoundation/AVUrlAssetOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ public AVUrlAssetOptions (NSDictionary dictionary)
: base (dictionary)
{
}
#if !WATCH
public bool? PreferPreciseDurationAndTiming {
set {
SetBooleanValue (AVUrlAsset.PreferPreciseDurationAndTimingKey, value);
Expand All @@ -70,7 +69,6 @@ public AVAssetReferenceRestrictions? ReferenceRestrictions {
return (AVAssetReferenceRestrictions?) (ulong?) GetNUIntValue (AVUrlAsset.ReferenceRestrictionsKey);
}
}
#endif
#endif
}
}
2 changes: 0 additions & 2 deletions src/AVFoundation/AVVideoSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ public enum AVVideoProfileLevelH264 : int {
HighAutoLevel,
}

#if !WATCH
#if NET
[SupportedOSPlatform ("ios")]
[SupportedOSPlatform ("maccatalyst")]
Expand Down Expand Up @@ -630,5 +629,4 @@ public int? VerticalOffset {
}
#endif
}
#endif // !WATCH
}
Loading

0 comments on commit de18079

Please sign in to comment.