diff --git a/msbuild/Xamarin.MacDev.Tasks/DotNetGlobals.cs b/msbuild/Xamarin.MacDev.Tasks/DotNetGlobals.cs new file mode 100644 index 000000000000..0afd19463727 --- /dev/null +++ b/msbuild/Xamarin.MacDev.Tasks/DotNetGlobals.cs @@ -0,0 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +global using System; +global using System.Collections.Generic; +global using System.Runtime.InteropServices; diff --git a/src/ARKit/ARFaceGeometry.cs b/src/ARKit/ARFaceGeometry.cs index 830cbd65d1ff..516b1078b22b 100644 --- a/src/ARKit/ARFaceGeometry.cs +++ b/src/ARKit/ARFaceGeometry.cs @@ -7,9 +7,7 @@ // Copyright 2017 Microsoft Inc. All rights reserved. // -using System; using System.Numerics; -using System.Runtime.InteropServices; using Vector3 = global::CoreGraphics.NVector3; diff --git a/src/ARKit/ARPlaneGeometry.cs b/src/ARKit/ARPlaneGeometry.cs index 6308c8810a9b..c41ae053c2f8 100644 --- a/src/ARKit/ARPlaneGeometry.cs +++ b/src/ARKit/ARPlaneGeometry.cs @@ -7,9 +7,7 @@ // Copyright 2018 Microsoft Inc. All rights reserved. // -using System; using System.Numerics; -using System.Runtime.InteropServices; using Vector3 = global::CoreGraphics.NVector3; diff --git a/src/ARKit/ARPointCloud.cs b/src/ARKit/ARPointCloud.cs index 58b98817061c..5b295a966491 100644 --- a/src/ARKit/ARPointCloud.cs +++ b/src/ARKit/ARPointCloud.cs @@ -7,9 +7,6 @@ // Copyright 2017 Microsoft Inc. All rights reserved. // -using System; -using System.Runtime.InteropServices; - using Vector3 = global::CoreGraphics.NVector3; #nullable enable diff --git a/src/ARKit/ARSkeleton.cs b/src/ARKit/ARSkeleton.cs index 6a216c45746f..c88e3aa295c1 100644 --- a/src/ARKit/ARSkeleton.cs +++ b/src/ARKit/ARSkeleton.cs @@ -1,9 +1,4 @@ -using System; using System.ComponentModel; -using System.Runtime.InteropServices; - -using Foundation; -using ObjCRuntime; #nullable enable diff --git a/src/ARKit/ARSkeleton2D.cs b/src/ARKit/ARSkeleton2D.cs index 1428082b0964..2b18d9ef38d5 100644 --- a/src/ARKit/ARSkeleton2D.cs +++ b/src/ARKit/ARSkeleton2D.cs @@ -7,9 +7,7 @@ // Copyright 2019 Microsoft Inc. All rights reserved. // -using System; using System.Numerics; -using System.Runtime.InteropServices; #nullable enable diff --git a/src/ARKit/ARSkeleton3D.cs b/src/ARKit/ARSkeleton3D.cs index 350cb3200bb5..a5033bab227f 100644 --- a/src/ARKit/ARSkeleton3D.cs +++ b/src/ARKit/ARSkeleton3D.cs @@ -7,8 +7,6 @@ // Copyright 2019 Microsoft Inc. All rights reserved. // -using System; -using System.Runtime.InteropServices; using Matrix4 = global::CoreGraphics.NMatrix4; #nullable enable diff --git a/src/AVFoundation/AVAssetDownloadStorageManagementPolicy.cs b/src/AVFoundation/AVAssetDownloadStorageManagementPolicy.cs index cd1b0c2c495b..cb4cd7b41f63 100644 --- a/src/AVFoundation/AVAssetDownloadStorageManagementPolicy.cs +++ b/src/AVFoundation/AVAssetDownloadStorageManagementPolicy.cs @@ -1,10 +1,5 @@ #if IOS -using System; - -using Foundation; -using ObjCRuntime; - #nullable enable namespace AVFoundation { diff --git a/src/AVFoundation/AVAssetDownloadTask.cs b/src/AVFoundation/AVAssetDownloadTask.cs index 7747aac62654..b9396065b20f 100644 --- a/src/AVFoundation/AVAssetDownloadTask.cs +++ b/src/AVFoundation/AVAssetDownloadTask.cs @@ -7,9 +7,6 @@ // Copyright 2015 Xamarin Inc. // -using System; -using Foundation; - #nullable enable namespace AVFoundation { diff --git a/src/AVFoundation/AVAssetDownloadUrlSession.cs b/src/AVFoundation/AVAssetDownloadUrlSession.cs index 22b36cea8f16..2a9be3d3cc80 100644 --- a/src/AVFoundation/AVAssetDownloadUrlSession.cs +++ b/src/AVFoundation/AVAssetDownloadUrlSession.cs @@ -7,9 +7,6 @@ // Copyright 2015 Xamarin Inc. // #if !TVOS -using System; -using Foundation; -using ObjCRuntime; #nullable enable diff --git a/src/AVFoundation/AVAssetResourceLoadingDataRequest.cs b/src/AVFoundation/AVAssetResourceLoadingDataRequest.cs index e5d5115d6967..982dee88fd47 100644 --- a/src/AVFoundation/AVAssetResourceLoadingDataRequest.cs +++ b/src/AVFoundation/AVAssetResourceLoadingDataRequest.cs @@ -7,9 +7,6 @@ // Copyright 2012, 2014 Xamarin Inc // -using System; -using Foundation; - #nullable enable namespace AVFoundation { diff --git a/src/AVFoundation/AVAssetTrack.cs b/src/AVFoundation/AVAssetTrack.cs index 5eedc03465c0..db11ed95ca16 100644 --- a/src/AVFoundation/AVAssetTrack.cs +++ b/src/AVFoundation/AVAssetTrack.cs @@ -1,9 +1,5 @@ -using System; -using System.Runtime.Versioning; -using Foundation; using CoreMedia; - namespace AVFoundation { public partial class AVAssetTrack { diff --git a/src/AVFoundation/AVAudioBuffer.cs b/src/AVFoundation/AVAudioBuffer.cs index 2818ad3b698b..b680d770eb7b 100644 --- a/src/AVFoundation/AVAudioBuffer.cs +++ b/src/AVFoundation/AVAudioBuffer.cs @@ -5,8 +5,6 @@ // Miguel de Icaza // -using Foundation; -using System; using AudioToolbox; #nullable enable diff --git a/src/AVFoundation/AVAudioChannelLayout.cs b/src/AVFoundation/AVAudioChannelLayout.cs index 7eebb9977469..3c4eda653773 100644 --- a/src/AVFoundation/AVAudioChannelLayout.cs +++ b/src/AVFoundation/AVAudioChannelLayout.cs @@ -11,13 +11,9 @@ #pragma warning disable 0661 // In both of these cases, the NSObject Equals/GetHashCode implementation works fine, so we can ignore these warnings. -using Foundation; -using ObjCRuntime; using AudioToolbox; -using System; using System.ComponentModel; using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; #nullable enable diff --git a/src/AVFoundation/AVAudioConverterPrimeInfo.cs b/src/AVFoundation/AVAudioConverterPrimeInfo.cs index dd060f076f53..e866521f4736 100644 --- a/src/AVFoundation/AVAudioConverterPrimeInfo.cs +++ b/src/AVFoundation/AVAudioConverterPrimeInfo.cs @@ -22,10 +22,6 @@ // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // // -using System; -using System.Runtime.InteropServices; -using Foundation; -using ObjCRuntime; #nullable enable diff --git a/src/AVFoundation/AVAudioFormat.cs b/src/AVFoundation/AVAudioFormat.cs index aa5de43247eb..cd07b31b5f98 100644 --- a/src/AVFoundation/AVAudioFormat.cs +++ b/src/AVFoundation/AVAudioFormat.cs @@ -12,9 +12,6 @@ // In both of these cases, the NSObject Equals/GetHashCode implementation works fine, so we can ignore these warnings. using AudioToolbox; -using Foundation; -using ObjCRuntime; -using System; using System.ComponentModel; using System.Runtime.CompilerServices; diff --git a/src/AVFoundation/AVAudioPlayer.cs b/src/AVFoundation/AVAudioPlayer.cs index aae934812c1f..1b8c72356371 100644 --- a/src/AVFoundation/AVAudioPlayer.cs +++ b/src/AVFoundation/AVAudioPlayer.cs @@ -21,10 +21,6 @@ // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // -using Foundation; -using ObjCRuntime; -using System; -using System.Runtime.InteropServices; #nullable enable diff --git a/src/AVFoundation/AVAudioRecorder.cs b/src/AVFoundation/AVAudioRecorder.cs index 363974d5c068..0361d4acd0dc 100644 --- a/src/AVFoundation/AVAudioRecorder.cs +++ b/src/AVFoundation/AVAudioRecorder.cs @@ -22,11 +22,8 @@ // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // -using Foundation; using CoreFoundation; using AudioToolbox; -using ObjCRuntime; -using System; #nullable enable diff --git a/src/AVFoundation/AVAudioSessionDataSourceDescription.cs b/src/AVFoundation/AVAudioSessionDataSourceDescription.cs index d35ac62d4395..6895fb55efc7 100644 --- a/src/AVFoundation/AVAudioSessionDataSourceDescription.cs +++ b/src/AVFoundation/AVAudioSessionDataSourceDescription.cs @@ -3,9 +3,6 @@ // Authors: // Miguel de Icaza (miguel@xamarin.com) // -using Foundation; -using ObjCRuntime; -using System; #nullable enable diff --git a/src/AVFoundation/AVAudioSessionPortDescription.cs b/src/AVFoundation/AVAudioSessionPortDescription.cs index 73599f6ed35c..29d9e0f50e62 100644 --- a/src/AVFoundation/AVAudioSessionPortDescription.cs +++ b/src/AVFoundation/AVAudioSessionPortDescription.cs @@ -6,11 +6,7 @@ // Copyright 2015 Xamarin Inc. // -using System; - -using Foundation; using CoreFoundation; -using ObjCRuntime; using AudioToolbox; #nullable enable diff --git a/src/AVFoundation/AVAudioSettings.cs b/src/AVFoundation/AVAudioSettings.cs index 9bc4d1d45ad2..d902bcc62777 100644 --- a/src/AVFoundation/AVAudioSettings.cs +++ b/src/AVFoundation/AVAudioSettings.cs @@ -25,11 +25,8 @@ // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // -using System; -using Foundation; using CoreFoundation; -using ObjCRuntime; using AudioToolbox; #nullable enable diff --git a/src/AVFoundation/AVAudioSinkNode.cs b/src/AVFoundation/AVAudioSinkNode.cs index f5ee3ea1b732..dd691872e404 100644 --- a/src/AVFoundation/AVAudioSinkNode.cs +++ b/src/AVFoundation/AVAudioSinkNode.cs @@ -1,4 +1,3 @@ -using System; using System.ComponentModel; using AudioToolbox; diff --git a/src/AVFoundation/AVAudioSourceNode.cs b/src/AVFoundation/AVAudioSourceNode.cs index 41165435efbe..615ff2b8e5a8 100644 --- a/src/AVFoundation/AVAudioSourceNode.cs +++ b/src/AVFoundation/AVAudioSourceNode.cs @@ -1,9 +1,7 @@ -using System; using System.ComponentModel; using System.Runtime.CompilerServices; using AudioToolbox; -using ObjCRuntime; namespace AVFoundation { diff --git a/src/AVFoundation/AVAudioVoiceProcessingOtherAudioDuckingConfiguration.cs b/src/AVFoundation/AVAudioVoiceProcessingOtherAudioDuckingConfiguration.cs index 04306170bafa..97dc6f12c813 100644 --- a/src/AVFoundation/AVAudioVoiceProcessingOtherAudioDuckingConfiguration.cs +++ b/src/AVFoundation/AVAudioVoiceProcessingOtherAudioDuckingConfiguration.cs @@ -1,6 +1,3 @@ -using System; -using System.Runtime.InteropServices; -using ObjCRuntime; #if !TVOS diff --git a/src/AVFoundation/AVBeatRange.cs b/src/AVFoundation/AVBeatRange.cs index 77c3dfb3c840..4252ede72ea3 100644 --- a/src/AVFoundation/AVBeatRange.cs +++ b/src/AVFoundation/AVBeatRange.cs @@ -22,10 +22,6 @@ // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // // -using System; -using System.Runtime.InteropServices; -using Foundation; -using ObjCRuntime; #nullable enable diff --git a/src/AVFoundation/AVCaptureDeviceInput.cs b/src/AVFoundation/AVCaptureDeviceInput.cs index b9f57d2a6d24..597053349914 100644 --- a/src/AVFoundation/AVCaptureDeviceInput.cs +++ b/src/AVFoundation/AVCaptureDeviceInput.cs @@ -30,10 +30,6 @@ #if !TVOS -using System; -using Foundation; -using ObjCRuntime; - #nullable enable namespace AVFoundation { diff --git a/src/AVFoundation/AVCaptureFileOutput.cs b/src/AVFoundation/AVCaptureFileOutput.cs index 4689fb87502b..a4e71d52075e 100644 --- a/src/AVFoundation/AVCaptureFileOutput.cs +++ b/src/AVFoundation/AVCaptureFileOutput.cs @@ -9,10 +9,6 @@ #if !TVOS -using System; -using Foundation; -using ObjCRuntime; - #nullable enable namespace AVFoundation { diff --git a/src/AVFoundation/AVCaptureMetadataOutput.cs b/src/AVFoundation/AVCaptureMetadataOutput.cs index 77f7d69ddeab..041f6ab66871 100644 --- a/src/AVFoundation/AVCaptureMetadataOutput.cs +++ b/src/AVFoundation/AVCaptureMetadataOutput.cs @@ -24,9 +24,6 @@ // #if IOS -using Foundation; -using ObjCRuntime; -using System; using System.Collections.Generic; using System.ComponentModel; using System.Runtime.CompilerServices; diff --git a/src/AVFoundation/AVCaptureReactionType.rgen.cs b/src/AVFoundation/AVCaptureReactionType.rgen.cs index b7e914ddd174..f56308912268 100644 --- a/src/AVFoundation/AVCaptureReactionType.rgen.cs +++ b/src/AVFoundation/AVCaptureReactionType.rgen.cs @@ -1,10 +1,6 @@ #pragma warning disable APL0003 -using System; -using System.Runtime.InteropServices; -using System.Runtime.Versioning; using CoreFoundation; -using ObjCRuntime; using ObjCBindings; #nullable enable diff --git a/src/AVFoundation/AVCaptureSynchronizedDataCollection.cs b/src/AVFoundation/AVCaptureSynchronizedDataCollection.cs index 07da5e06281a..ff7476488ad8 100644 --- a/src/AVFoundation/AVCaptureSynchronizedDataCollection.cs +++ b/src/AVFoundation/AVCaptureSynchronizedDataCollection.cs @@ -8,10 +8,8 @@ // #if IOS || MONOMAC -using System; using System.Collections; using System.Collections.Generic; -using Foundation; #nullable enable diff --git a/src/AVFoundation/AVCaptureVideoPreviewLayer.cs b/src/AVFoundation/AVCaptureVideoPreviewLayer.cs index 767d3f635a8f..477642de5c75 100644 --- a/src/AVFoundation/AVCaptureVideoPreviewLayer.cs +++ b/src/AVFoundation/AVCaptureVideoPreviewLayer.cs @@ -1,10 +1,6 @@ #if !TVOS -using System; - -using Foundation; using CoreFoundation; -using ObjCRuntime; using AudioToolbox; #nullable enable diff --git a/src/AVFoundation/AVContentKeyResponse.cs b/src/AVFoundation/AVContentKeyResponse.cs index e8396b5b39c1..cdb4c6e2e4ba 100644 --- a/src/AVFoundation/AVContentKeyResponse.cs +++ b/src/AVFoundation/AVContentKeyResponse.cs @@ -5,9 +5,6 @@ // Authors: // Manuel de la Pena mandel@microsoft.com // -using Foundation; -using ObjCRuntime; -using System; using System.ComponentModel; using System.Runtime.CompilerServices; diff --git a/src/AVFoundation/AVDepthData.cs b/src/AVFoundation/AVDepthData.cs index 5268a8e3aa4f..4ed448197497 100644 --- a/src/AVFoundation/AVDepthData.cs +++ b/src/AVFoundation/AVDepthData.cs @@ -7,9 +7,6 @@ // Copyright 2017 Xamarin Inc. // -using System; -using Foundation; -using ObjCRuntime; using CoreVideo; using ImageIO; diff --git a/src/AVFoundation/AVEdgeWidths.cs b/src/AVFoundation/AVEdgeWidths.cs index 891f3ad1c34a..c3864797dfe2 100644 --- a/src/AVFoundation/AVEdgeWidths.cs +++ b/src/AVFoundation/AVEdgeWidths.cs @@ -22,11 +22,6 @@ // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // // -using System; -using System.Runtime.InteropServices; -using Foundation; -using ObjCRuntime; -using System.Runtime.Versioning; #nullable enable diff --git a/src/AVFoundation/AVLayerVideoGravity.cs b/src/AVFoundation/AVLayerVideoGravity.cs index 464035058bb3..7eca0b4f8ad1 100644 --- a/src/AVFoundation/AVLayerVideoGravity.cs +++ b/src/AVFoundation/AVLayerVideoGravity.cs @@ -25,11 +25,7 @@ // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // -using System; - -using Foundation; using CoreFoundation; -using ObjCRuntime; #nullable enable diff --git a/src/AVFoundation/AVMetadataMachineReadableCodeObject.cs b/src/AVFoundation/AVMetadataMachineReadableCodeObject.cs index 96170b51724e..d442b5702537 100644 --- a/src/AVFoundation/AVMetadataMachineReadableCodeObject.cs +++ b/src/AVFoundation/AVMetadataMachineReadableCodeObject.cs @@ -25,9 +25,6 @@ #if IOS using CoreGraphics; -using Foundation; -using ObjCRuntime; -using System; using System.Collections.Generic; using System.ComponentModel; using System.Runtime.CompilerServices; diff --git a/src/AVFoundation/AVOutputSettingsAssistant.cs b/src/AVFoundation/AVOutputSettingsAssistant.cs index bcbe82928408..68bd874912c7 100644 --- a/src/AVFoundation/AVOutputSettingsAssistant.cs +++ b/src/AVFoundation/AVOutputSettingsAssistant.cs @@ -1,12 +1,9 @@ // #if IOS -using System; using System.Drawing; using System.Threading.Tasks; using CoreMedia; using CoreMotion; -using Foundation; -using ObjCRuntime; using CoreAnimation; using CoreLocation; diff --git a/src/AVFoundation/AVPixelAspectRatio.cs b/src/AVFoundation/AVPixelAspectRatio.cs index c3635f1ecbab..d0521e02e88d 100644 --- a/src/AVFoundation/AVPixelAspectRatio.cs +++ b/src/AVFoundation/AVPixelAspectRatio.cs @@ -22,11 +22,6 @@ // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // // -using System; -using System.Runtime.InteropServices; -using Foundation; -using ObjCRuntime; -using System.Runtime.Versioning; #nullable enable diff --git a/src/AVFoundation/AVPlayerItem.cs b/src/AVFoundation/AVPlayerItem.cs index e0bde9ff6738..3c5e27e8401b 100644 --- a/src/AVFoundation/AVPlayerItem.cs +++ b/src/AVFoundation/AVPlayerItem.cs @@ -1,8 +1,3 @@ -using System; - -using Foundation; -using ObjCRuntime; - #nullable enable namespace AVFoundation { diff --git a/src/AVFoundation/AVPlayerItemVideoOutput.cs b/src/AVFoundation/AVPlayerItemVideoOutput.cs index 8a2fbc1d185b..785e2c3d4072 100644 --- a/src/AVFoundation/AVPlayerItemVideoOutput.cs +++ b/src/AVFoundation/AVPlayerItemVideoOutput.cs @@ -1,8 +1,4 @@ -using System; - -using Foundation; using CoreFoundation; -using ObjCRuntime; using AudioToolbox; #nullable enable diff --git a/src/AVFoundation/AVPlayerLayer.cs b/src/AVFoundation/AVPlayerLayer.cs index 6f9fe09b92c1..71c4f6dd6404 100644 --- a/src/AVFoundation/AVPlayerLayer.cs +++ b/src/AVFoundation/AVPlayerLayer.cs @@ -7,7 +7,6 @@ // Copyright 2015 Xamarin Inc. // -using ObjCRuntime; using CoreVideo; #nullable enable diff --git a/src/AVFoundation/AVSampleBufferExtensions.cs b/src/AVFoundation/AVSampleBufferExtensions.cs index 940567ff9704..d2f3786cbbb8 100644 --- a/src/AVFoundation/AVSampleBufferExtensions.cs +++ b/src/AVFoundation/AVSampleBufferExtensions.cs @@ -7,10 +7,7 @@ // #if false // requires tests -using System; -using System.Runtime.InteropServices; using CoreGraphics; -using ObjCRuntime; using CMSampleBufferRef = System.IntPtr; using AVContentKey = System.IntPtr; diff --git a/src/AVFoundation/AVSampleCursor.cs b/src/AVFoundation/AVSampleCursor.cs index 042488ddcddb..deb19503198e 100644 --- a/src/AVFoundation/AVSampleCursor.cs +++ b/src/AVFoundation/AVSampleCursor.cs @@ -1,9 +1,7 @@ #if !XAMCORE_5_0 && __MACOS__ -using System; using System.ComponentModel; -using Foundation; using AudioToolbox; #nullable enable diff --git a/src/AVFoundation/AVSpeechSynthesisMarker.cs b/src/AVFoundation/AVSpeechSynthesisMarker.cs index 7d7185ce9ab6..c1761bb7ec12 100644 --- a/src/AVFoundation/AVSpeechSynthesisMarker.cs +++ b/src/AVFoundation/AVSpeechSynthesisMarker.cs @@ -1,12 +1,7 @@ -using System; using System.ComponentModel; using System.Diagnostics.CodeAnalysis; -using System.Runtime.Versioning; using System.Threading.Tasks; -using Foundation; -using ObjCRuntime; - #nullable enable namespace AVFoundation { diff --git a/src/AVFoundation/AVSpeechSynthesisProviderAudioUnit.cs b/src/AVFoundation/AVSpeechSynthesisProviderAudioUnit.cs index e6e5756d0a30..0b11ac58f3f5 100644 --- a/src/AVFoundation/AVSpeechSynthesisProviderAudioUnit.cs +++ b/src/AVFoundation/AVSpeechSynthesisProviderAudioUnit.cs @@ -1,12 +1,8 @@ -using System; using System.ComponentModel; using System.Diagnostics.CodeAnalysis; -using System.Runtime.Versioning; using System.Threading.Tasks; using AudioUnit; -using Foundation; -using ObjCRuntime; #nullable enable diff --git a/src/AVFoundation/AVSpeechSynthesizer.cs b/src/AVFoundation/AVSpeechSynthesizer.cs index 58f9df9158da..3e6aad4a53c4 100644 --- a/src/AVFoundation/AVSpeechSynthesizer.cs +++ b/src/AVFoundation/AVSpeechSynthesizer.cs @@ -1,11 +1,7 @@ -using System; using System.ComponentModel; using System.Diagnostics.CodeAnalysis; -using System.Runtime.Versioning; using System.Threading.Tasks; -using ObjCRuntime; - #nullable enable namespace AVFoundation { diff --git a/src/AVFoundation/AVSpeechUtterance.cs b/src/AVFoundation/AVSpeechUtterance.cs index 6abea364f961..2c494bd25a83 100644 --- a/src/AVFoundation/AVSpeechUtterance.cs +++ b/src/AVFoundation/AVSpeechUtterance.cs @@ -1,12 +1,7 @@ -using System; using System.ComponentModel; using System.Diagnostics.CodeAnalysis; -using System.Runtime.Versioning; using System.Threading.Tasks; -using Foundation; -using ObjCRuntime; - #nullable enable namespace AVFoundation { diff --git a/src/AVFoundation/AVTextStyleRule.cs b/src/AVFoundation/AVTextStyleRule.cs index 7e432b4415c3..26eaa9113a9a 100644 --- a/src/AVFoundation/AVTextStyleRule.cs +++ b/src/AVFoundation/AVTextStyleRule.cs @@ -1,4 +1,3 @@ -using System; #nullable enable diff --git a/src/AVFoundation/AVTypes.cs b/src/AVFoundation/AVTypes.cs index d9c55ba820f1..3e559011b709 100644 --- a/src/AVFoundation/AVTypes.cs +++ b/src/AVFoundation/AVTypes.cs @@ -1,11 +1,7 @@ -using System; -using System.Runtime.InteropServices; - #if !COREBUILD using Vector3 = global::System.Numerics.Vector3; #endif // !COREBUILD using CoreGraphics; -using ObjCRuntime; using CoreMedia; #nullable enable diff --git a/src/AVFoundation/AVUrlAssetOptions.cs b/src/AVFoundation/AVUrlAssetOptions.cs index fbe0061d2182..fd3b6e5a027f 100644 --- a/src/AVFoundation/AVUrlAssetOptions.cs +++ b/src/AVFoundation/AVUrlAssetOptions.cs @@ -25,11 +25,7 @@ // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // -using System; - -using Foundation; using CoreFoundation; -using ObjCRuntime; #nullable enable diff --git a/src/AVFoundation/AVVideoSettings.cs b/src/AVFoundation/AVVideoSettings.cs index 32f57b4a7dc1..2a6a90aa9cd4 100644 --- a/src/AVFoundation/AVVideoSettings.cs +++ b/src/AVFoundation/AVVideoSettings.cs @@ -25,11 +25,7 @@ // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // -using System; - -using Foundation; using CoreFoundation; -using ObjCRuntime; using CoreVideo; #nullable enable diff --git a/src/AVFoundation/AudioRendererWasFlushedAutomaticallyEventArgs.cs b/src/AVFoundation/AudioRendererWasFlushedAutomaticallyEventArgs.cs index 41aaba9e6f16..91eb24e00490 100644 --- a/src/AVFoundation/AudioRendererWasFlushedAutomaticallyEventArgs.cs +++ b/src/AVFoundation/AudioRendererWasFlushedAutomaticallyEventArgs.cs @@ -1,6 +1,4 @@ -using Foundation; using CoreMedia; -using ObjCRuntime; #nullable enable diff --git a/src/AVFoundation/CMTagCollectionVideoOutputPreset.cs b/src/AVFoundation/CMTagCollectionVideoOutputPreset.cs index d58454818b3c..7c30bdcb9eb8 100644 --- a/src/AVFoundation/CMTagCollectionVideoOutputPreset.cs +++ b/src/AVFoundation/CMTagCollectionVideoOutputPreset.cs @@ -1,9 +1,6 @@ using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using System.Runtime.Versioning; using CoreMedia; -using ObjCRuntime; namespace AVFoundation { // Yes, CMTagCollectionCreateWithVideoOutputPreset is in AVFoundation, not CoreMedia. diff --git a/src/AVFoundation/Enums.cs b/src/AVFoundation/Enums.cs index d0a7010bb596..4bc26d093460 100644 --- a/src/AVFoundation/Enums.cs +++ b/src/AVFoundation/Enums.cs @@ -22,11 +22,7 @@ // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // // -using System; using System.ComponentModel; -using Foundation; -using ObjCRuntime; -using System.Runtime.InteropServices; namespace AVFoundation { diff --git a/src/AVFoundation/Events.cs b/src/AVFoundation/Events.cs index 3fb80f431115..3e726e7c7c93 100644 --- a/src/AVFoundation/Events.cs +++ b/src/AVFoundation/Events.cs @@ -28,10 +28,6 @@ // // -using System; -using Foundation; -using ObjCRuntime; - #nullable enable namespace AVFoundation { diff --git a/src/AVKit/AVPlayerViewController.cs b/src/AVKit/AVPlayerViewController.cs index 494879797c32..cb61525b139d 100644 --- a/src/AVKit/AVPlayerViewController.cs +++ b/src/AVKit/AVPlayerViewController.cs @@ -6,8 +6,6 @@ // // Copyright 2014 Xamarin Inc // -using System; -using Foundation; using CoreMedia; using CoreVideo; using AVFoundation; diff --git a/src/AVKit/Enums.cs b/src/AVKit/Enums.cs index 065d0b3203fd..31a34f3c665d 100644 --- a/src/AVKit/Enums.cs +++ b/src/AVKit/Enums.cs @@ -1,5 +1,3 @@ -using ObjCRuntime; -using Foundation; #nullable enable diff --git a/src/AVRouting/AVCustomDeviceRoute.cs b/src/AVRouting/AVCustomDeviceRoute.cs index 20a878143495..b9e25f114f76 100644 --- a/src/AVRouting/AVCustomDeviceRoute.cs +++ b/src/AVRouting/AVCustomDeviceRoute.cs @@ -5,7 +5,6 @@ // Author: // Manuel de la Pena // -using System; using Network; #nullable enable diff --git a/src/Accelerate/vImageTypes.cs b/src/Accelerate/vImageTypes.cs index e19823952b2f..64b8e48158c5 100644 --- a/src/Accelerate/vImageTypes.cs +++ b/src/Accelerate/vImageTypes.cs @@ -26,12 +26,7 @@ // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // -using System; using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using System.Runtime.Versioning; - -using ObjCRuntime; using Pixel8 = System.Byte; using PixelF = System.Single; diff --git a/src/Accessibility/AXAnimatedImagesUtilities.cs b/src/Accessibility/AXAnimatedImagesUtilities.cs index 9ab60457fca3..a98e55c82ba7 100644 --- a/src/Accessibility/AXAnimatedImagesUtilities.cs +++ b/src/Accessibility/AXAnimatedImagesUtilities.cs @@ -1,10 +1,6 @@ #nullable enable -using System; -using System.Runtime.InteropServices; using CoreGraphics; -using Foundation; -using ObjCRuntime; namespace Accessibility { diff --git a/src/Accessibility/AXHearingUtilities.cs b/src/Accessibility/AXHearingUtilities.cs index c0cc645fc8b0..e8f061a495ac 100644 --- a/src/Accessibility/AXHearingUtilities.cs +++ b/src/Accessibility/AXHearingUtilities.cs @@ -9,11 +9,7 @@ #if !TVOS && !MONOMAC -using System; -using System.Runtime.InteropServices; using CoreGraphics; -using Foundation; -using ObjCRuntime; namespace Accessibility { diff --git a/src/Accessibility/AXPrefers.cs b/src/Accessibility/AXPrefers.cs index ae86409b2a41..73c55d8d85d8 100644 --- a/src/Accessibility/AXPrefers.cs +++ b/src/Accessibility/AXPrefers.cs @@ -1,10 +1,6 @@ #nullable enable -using System; -using System.Runtime.InteropServices; using CoreGraphics; -using Foundation; -using ObjCRuntime; namespace Accessibility { diff --git a/src/Accessibility/AXSettings.cs b/src/Accessibility/AXSettings.cs index b570965e287a..00770cdf3b3d 100644 --- a/src/Accessibility/AXSettings.cs +++ b/src/Accessibility/AXSettings.cs @@ -1,11 +1,6 @@ #nullable enable -using System; -using System.Runtime.InteropServices; - using CoreGraphics; -using Foundation; -using ObjCRuntime; namespace Accessibility { diff --git a/src/Accounts/AccountStoreOptions.cs b/src/Accounts/AccountStoreOptions.cs index cff341a20358..3be277bec588 100644 --- a/src/Accounts/AccountStoreOptions.cs +++ b/src/Accounts/AccountStoreOptions.cs @@ -25,12 +25,7 @@ // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // -using System; - -using Foundation; using CoreFoundation; -using ObjCRuntime; -using System.Runtime.Versioning; #nullable enable diff --git a/src/Accounts/Enums.cs b/src/Accounts/Enums.cs index 3941f01fef01..22def4983b1e 100644 --- a/src/Accounts/Enums.cs +++ b/src/Accounts/Enums.cs @@ -1,5 +1,3 @@ -using System; -using ObjCRuntime; #nullable enable diff --git a/src/AddressBook/ABAddressBook.cs b/src/AddressBook/ABAddressBook.cs index a943490dd8d3..82fd9a88245e 100644 --- a/src/AddressBook/ABAddressBook.cs +++ b/src/AddressBook/ABAddressBook.cs @@ -31,14 +31,10 @@ #if !MONOMAC -using System; using System.Collections; using System.Collections.Generic; -using System.Runtime.InteropServices; -using Foundation; using CoreFoundation; -using ObjCRuntime; namespace AddressBook { /// Provides data for the event. diff --git a/src/AddressBook/ABEnums.cs b/src/AddressBook/ABEnums.cs index 966c97131d4e..358d2aeb088e 100644 --- a/src/AddressBook/ABEnums.cs +++ b/src/AddressBook/ABEnums.cs @@ -27,11 +27,7 @@ #if !MONOMAC -using System; - -using Foundation; using CoreFoundation; -using ObjCRuntime; namespace AddressBook { /// Possible errors. diff --git a/src/AddressBook/ABGroup.cs b/src/AddressBook/ABGroup.cs index 0180a1126f51..e2346b3ba894 100644 --- a/src/AddressBook/ABGroup.cs +++ b/src/AddressBook/ABGroup.cs @@ -32,14 +32,10 @@ #if !MONOMAC -using System; using System.Collections; using System.Collections.Generic; -using System.Runtime.InteropServices; using CoreFoundation; -using Foundation; -using ObjCRuntime; namespace AddressBook { [SupportedOSPlatform ("ios")] diff --git a/src/AddressBook/ABMultiValue.cs b/src/AddressBook/ABMultiValue.cs index 10a14e8c6c35..e6008b052e77 100644 --- a/src/AddressBook/ABMultiValue.cs +++ b/src/AddressBook/ABMultiValue.cs @@ -31,14 +31,10 @@ #if !MONOMAC -using System; using System.Collections; using System.Collections.Generic; -using System.Runtime.InteropServices; using CoreFoundation; -using Foundation; -using ObjCRuntime; namespace AddressBook { diff --git a/src/AddressBook/ABPerson.cs b/src/AddressBook/ABPerson.cs index 55c1a9af7556..b9abcd6d0563 100644 --- a/src/AddressBook/ABPerson.cs +++ b/src/AddressBook/ABPerson.cs @@ -32,13 +32,9 @@ #if !MONOMAC -using System; -using System.Runtime.InteropServices; using System.Collections.Generic; using CoreFoundation; -using Foundation; -using ObjCRuntime; namespace AddressBook { diff --git a/src/AddressBook/ABRecord.cs b/src/AddressBook/ABRecord.cs index 73b4b0939146..c579db02c202 100644 --- a/src/AddressBook/ABRecord.cs +++ b/src/AddressBook/ABRecord.cs @@ -31,12 +31,7 @@ #if !MONOMAC -using System; -using System.Runtime.InteropServices; - using CoreFoundation; -using Foundation; -using ObjCRuntime; namespace AddressBook { diff --git a/src/AddressBook/ABSource.cs b/src/AddressBook/ABSource.cs index 33e98fb1633f..e16f123260cf 100644 --- a/src/AddressBook/ABSource.cs +++ b/src/AddressBook/ABSource.cs @@ -31,12 +31,7 @@ #if !MONOMAC -using System; -using System.Runtime.InteropServices; - using CoreFoundation; -using Foundation; -using ObjCRuntime; namespace AddressBook { diff --git a/src/AddressBook/CoreBuildTypes.cs b/src/AddressBook/CoreBuildTypes.cs index f56c76eb1f2c..6f28f12d130d 100644 --- a/src/AddressBook/CoreBuildTypes.cs +++ b/src/AddressBook/CoreBuildTypes.cs @@ -15,9 +15,6 @@ #if COREBUILD using CoreFoundation; -using Foundation; -using ObjCRuntime; -using System; namespace AddressBook { public class ABAddressBook : NativeObject { } diff --git a/src/AddressBookUI/ABAddressFormatting.cs b/src/AddressBookUI/ABAddressFormatting.cs index d0e64f0c1e4d..22618d6c4134 100644 --- a/src/AddressBookUI/ABAddressFormatting.cs +++ b/src/AddressBookUI/ABAddressFormatting.cs @@ -9,12 +9,6 @@ #nullable enable -using System; -using System.Runtime.InteropServices; - -using Foundation; -using ObjCRuntime; - namespace AddressBookUI { // http://developer.apple.com/library/ios/#DOCUMENTATION/AddressBookUI/Reference/AddressBookUI_Functions/Reference/reference.html#//apple_ref/c/func/ABCreateStringWithAddressDictionary diff --git a/src/AddressBookUI/ABNewPersonViewController.cs b/src/AddressBookUI/ABNewPersonViewController.cs index cb139f7930dc..8d5f0379e7f2 100644 --- a/src/AddressBookUI/ABNewPersonViewController.cs +++ b/src/AddressBookUI/ABNewPersonViewController.cs @@ -8,11 +8,7 @@ #nullable enable -using System; - using AddressBook; -using Foundation; -using ObjCRuntime; namespace AddressBookUI { diff --git a/src/AddressBookUI/ABPeoplePickerNavigationController.cs b/src/AddressBookUI/ABPeoplePickerNavigationController.cs index 42cbb43df085..1bd6e6de0c99 100644 --- a/src/AddressBookUI/ABPeoplePickerNavigationController.cs +++ b/src/AddressBookUI/ABPeoplePickerNavigationController.cs @@ -8,12 +8,8 @@ #nullable enable -using System; - using AddressBook; -using Foundation; using UIKit; -using ObjCRuntime; namespace AddressBookUI { /// Provides data for the event. diff --git a/src/AddressBookUI/ABPersonViewController.cs b/src/AddressBookUI/ABPersonViewController.cs index 39663e769dfa..02aab117674c 100644 --- a/src/AddressBookUI/ABPersonViewController.cs +++ b/src/AddressBookUI/ABPersonViewController.cs @@ -8,11 +8,7 @@ #nullable enable -using System; - using AddressBook; -using Foundation; -using ObjCRuntime; namespace AddressBookUI { /// Provides data for the and events. diff --git a/src/AddressBookUI/ABUnknownPersonViewController.cs b/src/AddressBookUI/ABUnknownPersonViewController.cs index 10d5eef1ca1c..0f7f13be6ec3 100644 --- a/src/AddressBookUI/ABUnknownPersonViewController.cs +++ b/src/AddressBookUI/ABUnknownPersonViewController.cs @@ -8,11 +8,7 @@ #nullable enable -using System; - using AddressBook; -using Foundation; -using ObjCRuntime; namespace AddressBookUI { /// Provides data for the event. diff --git a/src/AddressBookUI/DisplayedPropertiesCollection.cs b/src/AddressBookUI/DisplayedPropertiesCollection.cs index e4eb40431f1d..e207a838f762 100644 --- a/src/AddressBookUI/DisplayedPropertiesCollection.cs +++ b/src/AddressBookUI/DisplayedPropertiesCollection.cs @@ -8,13 +8,10 @@ #nullable enable -using System; using System.Collections; using System.Collections.Generic; using AddressBook; -using Foundation; -using ObjCRuntime; namespace AddressBookUI { diff --git a/src/AppKit/ActionDispatcher.cs b/src/AppKit/ActionDispatcher.cs index 9a1ec5d2fdc5..c9fc72d3b1d5 100644 --- a/src/AppKit/ActionDispatcher.cs +++ b/src/AppKit/ActionDispatcher.cs @@ -25,9 +25,6 @@ // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // -using System; -using ObjCRuntime; -using Foundation; #nullable enable diff --git a/src/AppKit/AppKitSynchronizationContext.cs b/src/AppKit/AppKitSynchronizationContext.cs index c66cf41e838b..fedd7defa231 100644 --- a/src/AppKit/AppKitSynchronizationContext.cs +++ b/src/AppKit/AppKitSynchronizationContext.cs @@ -3,8 +3,6 @@ // using System.Threading; -using Foundation; - #nullable enable namespace AppKit { diff --git a/src/AppKit/AppKitThreadAccessException.cs b/src/AppKit/AppKitThreadAccessException.cs index 7f31575ba3c3..e7a4af172263 100644 --- a/src/AppKit/AppKitThreadAccessException.cs +++ b/src/AppKit/AppKitThreadAccessException.cs @@ -1,6 +1,3 @@ -using System; -using System.Runtime.Versioning; - #nullable enable namespace AppKit { diff --git a/src/AppKit/BeginSheet.cs b/src/AppKit/BeginSheet.cs index a20e0405105b..4dd1c685785a 100644 --- a/src/AppKit/BeginSheet.cs +++ b/src/AppKit/BeginSheet.cs @@ -26,12 +26,8 @@ #if !__MACCATALYST__ // Mac Catalyst doesn't have NSApplication -using System; using System.Collections; -using ObjCRuntime; -using Foundation; - #nullable enable namespace AppKit { diff --git a/src/AppKit/Defs.cs b/src/AppKit/Defs.cs index a4c569788bc7..20dcf8fd82b8 100644 --- a/src/AppKit/Defs.cs +++ b/src/AppKit/Defs.cs @@ -20,11 +20,6 @@ // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // -using System; -using System.Runtime.InteropServices; - -using ObjCRuntime; -using System.Runtime.Versioning; #nullable enable diff --git a/src/AppKit/DoubleWrapper.cs b/src/AppKit/DoubleWrapper.cs index a16206d534b2..99fddd036e06 100644 --- a/src/AppKit/DoubleWrapper.cs +++ b/src/AppKit/DoubleWrapper.cs @@ -25,9 +25,6 @@ #if !__MACCATALYST__ -using System; -using Foundation; - #nullable enable namespace AppKit { diff --git a/src/AppKit/Enums.cs b/src/AppKit/Enums.cs index eacda74380d0..d3ef79c30b5c 100644 --- a/src/AppKit/Enums.cs +++ b/src/AppKit/Enums.cs @@ -21,10 +21,7 @@ // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // -using System; using System.ComponentModel; -using ObjCRuntime; -using Foundation; #nullable enable diff --git a/src/AppKit/EventArgs.cs b/src/AppKit/EventArgs.cs index b78a690be3ce..aa72163c23fd 100644 --- a/src/AppKit/EventArgs.cs +++ b/src/AppKit/EventArgs.cs @@ -29,8 +29,6 @@ #if !__MACCATALYST__ -using Foundation; - #nullable enable namespace AppKit { diff --git a/src/AppKit/Functions.cs b/src/AppKit/Functions.cs index d8a161966395..0d85d5c9e480 100644 --- a/src/AppKit/Functions.cs +++ b/src/AppKit/Functions.cs @@ -21,10 +21,6 @@ // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // -using System; -using System.Runtime.InteropServices; -using Foundation; -using ObjCRuntime; using CoreGraphics; using CoreImage; using CoreAnimation; diff --git a/src/AppKit/NSAccessibility.cs b/src/AppKit/NSAccessibility.cs index 72ea034d2622..94b363ceca4e 100644 --- a/src/AppKit/NSAccessibility.cs +++ b/src/AppKit/NSAccessibility.cs @@ -8,14 +8,10 @@ #if !__MACCATALYST__ -using System; using System.Collections.Generic; -using System.Runtime.InteropServices; using CoreFoundation; using CoreGraphics; -using Foundation; -using ObjCRuntime; #nullable enable diff --git a/src/AppKit/NSActionCell.cs b/src/AppKit/NSActionCell.cs index c6cef475cb7a..1e8db2cee7a5 100644 --- a/src/AppKit/NSActionCell.cs +++ b/src/AppKit/NSActionCell.cs @@ -28,10 +28,6 @@ #if !__MACCATALYST__ -using System; -using ObjCRuntime; -using Foundation; - #nullable enable namespace AppKit { diff --git a/src/AppKit/NSAlert.cs b/src/AppKit/NSAlert.cs index 7852e5815556..2181a905774d 100644 --- a/src/AppKit/NSAlert.cs +++ b/src/AppKit/NSAlert.cs @@ -28,12 +28,7 @@ #if !__MACCATALYST__ // Mac Catalyst doesn't have NSAlert -using System; using System.Collections.Generic; -using System.Runtime.Versioning; - -using Foundation; -using ObjCRuntime; #nullable enable diff --git a/src/AppKit/NSApplication.cs b/src/AppKit/NSApplication.cs index 569bf6430e3b..e768ac8deb93 100644 --- a/src/AppKit/NSApplication.cs +++ b/src/AppKit/NSApplication.cs @@ -24,15 +24,10 @@ #if !__MACCATALYST__ -using System; using System.ComponentModel; using System.Reflection; -using System.Runtime.InteropServices; using System.Threading; -using Foundation; -using ObjCRuntime; - #nullable enable namespace AppKit { diff --git a/src/AppKit/NSArrayController.cs b/src/AppKit/NSArrayController.cs index 693b5cc55e2b..0f12988682eb 100644 --- a/src/AppKit/NSArrayController.cs +++ b/src/AppKit/NSArrayController.cs @@ -23,10 +23,6 @@ #if !__MACCATALYST__ -using System; - -using Foundation; - #nullable enable namespace AppKit { diff --git a/src/AppKit/NSBezierPath.cs b/src/AppKit/NSBezierPath.cs index c938b8e854e6..590fa09d8da2 100644 --- a/src/AppKit/NSBezierPath.cs +++ b/src/AppKit/NSBezierPath.cs @@ -28,11 +28,6 @@ #if !__MACCATALYST__ -using System; -using System.Runtime.InteropServices; - -using Foundation; -using ObjCRuntime; using CoreGraphics; #nullable enable diff --git a/src/AppKit/NSBitmapImageRep.cs b/src/AppKit/NSBitmapImageRep.cs index 1abcf4839ca9..7da4bef511a9 100644 --- a/src/AppKit/NSBitmapImageRep.cs +++ b/src/AppKit/NSBitmapImageRep.cs @@ -23,10 +23,6 @@ #if !__MACCATALYST__ -using System; -using Foundation; -using ObjCRuntime; - #nullable enable namespace AppKit { diff --git a/src/AppKit/NSBrowser.cs b/src/AppKit/NSBrowser.cs index 96a68f276d24..eb6e5b11db49 100644 --- a/src/AppKit/NSBrowser.cs +++ b/src/AppKit/NSBrowser.cs @@ -23,8 +23,6 @@ #if !__MACCATALYST__ -using System; - #nullable enable namespace AppKit { diff --git a/src/AppKit/NSButton.cs b/src/AppKit/NSButton.cs index b5c435d11cbd..b4331bba19bb 100644 --- a/src/AppKit/NSButton.cs +++ b/src/AppKit/NSButton.cs @@ -28,10 +28,6 @@ #if !__MACCATALYST__ -using System; -using ObjCRuntime; -using Foundation; - #nullable enable namespace AppKit { diff --git a/src/AppKit/NSCell.cs b/src/AppKit/NSCell.cs index cf28f245bb86..304254264f79 100644 --- a/src/AppKit/NSCell.cs +++ b/src/AppKit/NSCell.cs @@ -27,10 +27,6 @@ #if !__MACCATALYST__ -using System; -using System.Runtime.InteropServices; - -using ObjCRuntime; using CoreGraphics; #nullable enable diff --git a/src/AppKit/NSCollectionLayoutAnchor.cs b/src/AppKit/NSCollectionLayoutAnchor.cs index 50d84652f27a..bb10892df36e 100644 --- a/src/AppKit/NSCollectionLayoutAnchor.cs +++ b/src/AppKit/NSCollectionLayoutAnchor.cs @@ -1,9 +1,5 @@ #if !__MACCATALYST__ -using System; -using System.Runtime.InteropServices; using CoreFoundation; -using Foundation; -using ObjCRuntime; using CoreGraphics; #nullable enable diff --git a/src/AppKit/NSCollectionView.cs b/src/AppKit/NSCollectionView.cs index ad95d26e625a..a1261147576f 100644 --- a/src/AppKit/NSCollectionView.cs +++ b/src/AppKit/NSCollectionView.cs @@ -1,7 +1,4 @@ #if !__MACCATALYST__ -using System; -using Foundation; -using ObjCRuntime; #nullable enable diff --git a/src/AppKit/NSCollectionViewLayout.cs b/src/AppKit/NSCollectionViewLayout.cs index b3d6757399d5..a50e5b5637fd 100644 --- a/src/AppKit/NSCollectionViewLayout.cs +++ b/src/AppKit/NSCollectionViewLayout.cs @@ -1,7 +1,4 @@ #if !__MACCATALYST__ -using System; -using Foundation; -using ObjCRuntime; #nullable enable diff --git a/src/AppKit/NSColor.cs b/src/AppKit/NSColor.cs index e60d2833d802..efd20e074bc4 100644 --- a/src/AppKit/NSColor.cs +++ b/src/AppKit/NSColor.cs @@ -1,9 +1,5 @@ #if !__MACCATALYST__ -using System; using System.Text; -using Foundation; -using ObjCRuntime; -using System.Runtime.InteropServices; #nullable enable diff --git a/src/AppKit/NSColorPickerTouchBarItem.cs b/src/AppKit/NSColorPickerTouchBarItem.cs index 61fca6885f5a..ff24605dc7bc 100644 --- a/src/AppKit/NSColorPickerTouchBarItem.cs +++ b/src/AppKit/NSColorPickerTouchBarItem.cs @@ -1,6 +1,3 @@ -using System; -using ObjCRuntime; -using Foundation; #nullable enable diff --git a/src/AppKit/NSComboBox.cs b/src/AppKit/NSComboBox.cs index 2c7777093a07..d2861a0b7a4c 100644 --- a/src/AppKit/NSComboBox.cs +++ b/src/AppKit/NSComboBox.cs @@ -1,6 +1,4 @@ #if !__MACCATALYST__ -using System; -using Foundation; using CoreGraphics; #nullable enable diff --git a/src/AppKit/NSControl.cs b/src/AppKit/NSControl.cs index f89dd491cbd0..b459d55c8ade 100644 --- a/src/AppKit/NSControl.cs +++ b/src/AppKit/NSControl.cs @@ -28,10 +28,6 @@ #if !__MACCATALYST__ -using System; -using ObjCRuntime; -using Foundation; - #nullable enable namespace AppKit { diff --git a/src/AppKit/NSDocument.cs b/src/AppKit/NSDocument.cs index a57d4471c5cf..3434defc7e20 100644 --- a/src/AppKit/NSDocument.cs +++ b/src/AppKit/NSDocument.cs @@ -1,10 +1,6 @@ #if !__MACCATALYST__ -using System; using System.Collections.Generic; -using Foundation; -using ObjCRuntime; - #nullable enable namespace AppKit { diff --git a/src/AppKit/NSDraggingInfo.cs b/src/AppKit/NSDraggingInfo.cs index 22f3b3e1c766..ffa31a056660 100644 --- a/src/AppKit/NSDraggingInfo.cs +++ b/src/AppKit/NSDraggingInfo.cs @@ -1,10 +1,6 @@ #if !__MACCATALYST__ -using System; -using System.Runtime.InteropServices; using CoreGraphics; -using Foundation; -using ObjCRuntime; #nullable enable diff --git a/src/AppKit/NSDraggingSession.cs b/src/AppKit/NSDraggingSession.cs index 6533e0043613..c45b7e39944f 100644 --- a/src/AppKit/NSDraggingSession.cs +++ b/src/AppKit/NSDraggingSession.cs @@ -1,10 +1,6 @@ #if !__MACCATALYST__ -using System; -using System.Runtime.InteropServices; using CoreGraphics; -using Foundation; -using ObjCRuntime; #nullable enable diff --git a/src/AppKit/NSEnumsExtensions.cs b/src/AppKit/NSEnumsExtensions.cs index 345f78280eee..4d59172e22d7 100644 --- a/src/AppKit/NSEnumsExtensions.cs +++ b/src/AppKit/NSEnumsExtensions.cs @@ -4,10 +4,6 @@ // Copyright 2021, Microsoft Corp // -using System; -using Foundation; -using ObjCRuntime; - #nullable enable namespace AppKit { diff --git a/src/AppKit/NSEvent.cs b/src/AppKit/NSEvent.cs index 9b0064e5e23a..1ae6942777f3 100644 --- a/src/AppKit/NSEvent.cs +++ b/src/AppKit/NSEvent.cs @@ -1,10 +1,7 @@ #if !__MACCATALYST__ -using System; using System.Diagnostics; -using Foundation; using CoreGraphics; -using ObjCRuntime; #nullable enable diff --git a/src/AppKit/NSFont.cs b/src/AppKit/NSFont.cs index beefe172981e..64956ad3f587 100644 --- a/src/AppKit/NSFont.cs +++ b/src/AppKit/NSFont.cs @@ -1,9 +1,5 @@ #if !__MACCATALYST__ -using System; -using System.Runtime.InteropServices; using CoreFoundation; -using Foundation; -using ObjCRuntime; using CoreGraphics; using CoreAnimation; using CoreText; diff --git a/src/AppKit/NSGestureRecognizer.cs b/src/AppKit/NSGestureRecognizer.cs index 60a5b118712b..39a672bcbb97 100644 --- a/src/AppKit/NSGestureRecognizer.cs +++ b/src/AppKit/NSGestureRecognizer.cs @@ -9,11 +9,7 @@ #if !__MACCATALYST__ -using System; using System.Collections; -using Foundation; -using ObjCRuntime; -using System.Runtime.Versioning; #nullable enable diff --git a/src/AppKit/NSGradient.cs b/src/AppKit/NSGradient.cs index 80c93a097167..33926fccdd0e 100644 --- a/src/AppKit/NSGradient.cs +++ b/src/AppKit/NSGradient.cs @@ -7,11 +7,6 @@ #if !__MACCATALYST__ -using System; -using Foundation; -using ObjCRuntime; -using System.Runtime.InteropServices; - #nullable enable namespace AppKit { diff --git a/src/AppKit/NSGraphics.cs b/src/AppKit/NSGraphics.cs index 8a3c7b32d284..e4bdb837f011 100644 --- a/src/AppKit/NSGraphics.cs +++ b/src/AppKit/NSGraphics.cs @@ -23,12 +23,8 @@ #if !__MACCATALYST__ -using System; using System.ComponentModel; -using System.Runtime.InteropServices; -using ObjCRuntime; -using Foundation; using CoreGraphics; #nullable enable diff --git a/src/AppKit/NSGraphicsContext.cs b/src/AppKit/NSGraphicsContext.cs index 63ac0f9f9362..5df765b90174 100644 --- a/src/AppKit/NSGraphicsContext.cs +++ b/src/AppKit/NSGraphicsContext.cs @@ -29,8 +29,6 @@ #nullable enable -using System; -using Foundation; using CoreGraphics; #nullable enable diff --git a/src/AppKit/NSImage.cs b/src/AppKit/NSImage.cs index 4370c39dcb3d..418f2d6cef22 100644 --- a/src/AppKit/NSImage.cs +++ b/src/AppKit/NSImage.cs @@ -24,9 +24,6 @@ #if !__MACCATALYST__ -using System; - -using Foundation; using CoreGraphics; #nullable enable diff --git a/src/AppKit/NSLevelIndicator.cs b/src/AppKit/NSLevelIndicator.cs index a3cb4c18fc47..27a5d44a9ba2 100644 --- a/src/AppKit/NSLevelIndicator.cs +++ b/src/AppKit/NSLevelIndicator.cs @@ -7,10 +7,6 @@ #if !__MACCATALYST__ -using System; -using ObjCRuntime; -using Foundation; - #nullable enable namespace AppKit { diff --git a/src/AppKit/NSMatrix.cs b/src/AppKit/NSMatrix.cs index 815a8a9ad710..2a6f15eac3b9 100644 --- a/src/AppKit/NSMatrix.cs +++ b/src/AppKit/NSMatrix.cs @@ -23,8 +23,6 @@ #if !__MACCATALYST__ -using System; - #nullable enable namespace AppKit { diff --git a/src/AppKit/NSMenuItem.cs b/src/AppKit/NSMenuItem.cs index 1df935fa96ab..414f84d2dc5a 100644 --- a/src/AppKit/NSMenuItem.cs +++ b/src/AppKit/NSMenuItem.cs @@ -29,10 +29,6 @@ #if !__MACCATALYST__ -using System; -using ObjCRuntime; -using Foundation; - #nullable enable namespace AppKit { diff --git a/src/AppKit/NSOpenGLContext.cs b/src/AppKit/NSOpenGLContext.cs index 0a461aa125ec..f7ec233a714d 100644 --- a/src/AppKit/NSOpenGLContext.cs +++ b/src/AppKit/NSOpenGLContext.cs @@ -1,12 +1,8 @@ #if !__MACCATALYST__ -using System; #if !NO_SYSTEM_DRAWING using System.Drawing; #endif -using ObjCRuntime; -using Foundation; - #nullable enable namespace AppKit { diff --git a/src/AppKit/NSOpenGLPixelFormat.cs b/src/AppKit/NSOpenGLPixelFormat.cs index 9b410036d353..86899dc34e16 100644 --- a/src/AppKit/NSOpenGLPixelFormat.cs +++ b/src/AppKit/NSOpenGLPixelFormat.cs @@ -23,11 +23,7 @@ #if !__MACCATALYST__ -using System; using System.Collections.Generic; -using System.Runtime.InteropServices; -using Foundation; -using ObjCRuntime; using CoreGraphics; using CoreImage; using CoreAnimation; diff --git a/src/AppKit/NSPasteboard.cs b/src/AppKit/NSPasteboard.cs index 989e31c6a035..33a1747d1950 100644 --- a/src/AppKit/NSPasteboard.cs +++ b/src/AppKit/NSPasteboard.cs @@ -1,10 +1,6 @@ #if !__MACCATALYST__ -using System; -using System.Runtime.InteropServices; using CoreGraphics; -using Foundation; -using ObjCRuntime; #nullable enable diff --git a/src/AppKit/NSPasteboardReading.cs b/src/AppKit/NSPasteboardReading.cs index 2f45576c48cd..41dd5cb452ad 100644 --- a/src/AppKit/NSPasteboardReading.cs +++ b/src/AppKit/NSPasteboardReading.cs @@ -1,10 +1,5 @@ #if !__MACCATALYST__ -using System; - -using Foundation; -using ObjCRuntime; - #nullable enable namespace AppKit { diff --git a/src/AppKit/NSPathControlItem.cs b/src/AppKit/NSPathControlItem.cs index 9317ba60e3b2..537ee5b3cf9f 100644 --- a/src/AppKit/NSPathControlItem.cs +++ b/src/AppKit/NSPathControlItem.cs @@ -1,6 +1,4 @@ #if !__MACCATALYST__ -using System; -using Foundation; #nullable enable diff --git a/src/AppKit/NSPopUpButton.cs b/src/AppKit/NSPopUpButton.cs index 0d3c8b120dcd..d9ab7ac9f9e1 100644 --- a/src/AppKit/NSPopUpButton.cs +++ b/src/AppKit/NSPopUpButton.cs @@ -28,10 +28,6 @@ #if !__MACCATALYST__ -using System; -using ObjCRuntime; -using Foundation; - #nullable enable namespace AppKit { diff --git a/src/AppKit/NSPopUpButtonCell.cs b/src/AppKit/NSPopUpButtonCell.cs index 2c912c1affe7..02cf7be3b88f 100644 --- a/src/AppKit/NSPopUpButtonCell.cs +++ b/src/AppKit/NSPopUpButtonCell.cs @@ -1,5 +1,4 @@ #if !__MACCATALYST__ -using System; #nullable enable diff --git a/src/AppKit/NSPredicateEditorRowTemplate.cs b/src/AppKit/NSPredicateEditorRowTemplate.cs index 641276c60811..5b4e6342be2d 100644 --- a/src/AppKit/NSPredicateEditorRowTemplate.cs +++ b/src/AppKit/NSPredicateEditorRowTemplate.cs @@ -9,11 +9,9 @@ #if !__MACCATALYST__ -using System; using System.Linq; using System.Collections.Generic; -using Foundation; using CoreData; #nullable enable diff --git a/src/AppKit/NSPrintInfo.cs b/src/AppKit/NSPrintInfo.cs index 71a43ab3a339..f8cdb7b65734 100644 --- a/src/AppKit/NSPrintInfo.cs +++ b/src/AppKit/NSPrintInfo.cs @@ -1,5 +1,4 @@ #if !__MACCATALYST__ -using System; using PrintCore; #nullable enable diff --git a/src/AppKit/NSScreen.cs b/src/AppKit/NSScreen.cs index c13c847a23ad..a94e40d59329 100644 --- a/src/AppKit/NSScreen.cs +++ b/src/AppKit/NSScreen.cs @@ -23,9 +23,7 @@ #if !__MACCATALYST__ -using System; using System.Collections.Generic; -using System.Runtime.InteropServices; #nullable enable diff --git a/src/AppKit/NSSegmentedControl.cs b/src/AppKit/NSSegmentedControl.cs index 90dbd9daa372..3cf081f0b306 100644 --- a/src/AppKit/NSSegmentedControl.cs +++ b/src/AppKit/NSSegmentedControl.cs @@ -7,10 +7,6 @@ #if !__MACCATALYST__ -using System; -using ObjCRuntime; -using Foundation; - #nullable enable namespace AppKit { diff --git a/src/AppKit/NSSharingService.cs b/src/AppKit/NSSharingService.cs index 9e4bef6f2b8a..2650fb97ee87 100644 --- a/src/AppKit/NSSharingService.cs +++ b/src/AppKit/NSSharingService.cs @@ -1,7 +1,4 @@ #if !__MACCATALYST__ -using System; -using Foundation; -using ObjCRuntime; #nullable enable diff --git a/src/AppKit/NSSlider.cs b/src/AppKit/NSSlider.cs index 47b6737eaa60..cfddbfcd415a 100644 --- a/src/AppKit/NSSlider.cs +++ b/src/AppKit/NSSlider.cs @@ -28,10 +28,6 @@ #if !__MACCATALYST__ -using System; -using ObjCRuntime; -using Foundation; - #nullable enable namespace AppKit { diff --git a/src/AppKit/NSSliderTouchBarItem.cs b/src/AppKit/NSSliderTouchBarItem.cs index e1d1a7668192..478303158bb4 100644 --- a/src/AppKit/NSSliderTouchBarItem.cs +++ b/src/AppKit/NSSliderTouchBarItem.cs @@ -1,6 +1,3 @@ -using System; -using ObjCRuntime; -using Foundation; #nullable enable diff --git a/src/AppKit/NSSound.cs b/src/AppKit/NSSound.cs index e1cb805a0ceb..912d79d9241a 100644 --- a/src/AppKit/NSSound.cs +++ b/src/AppKit/NSSound.cs @@ -23,8 +23,6 @@ #if !__MACCATALYST__ -using System; - #nullable enable namespace AppKit { diff --git a/src/AppKit/NSSpeechSynthesizer.cs b/src/AppKit/NSSpeechSynthesizer.cs index 1c0e7753e8bd..377d9b58c66c 100644 --- a/src/AppKit/NSSpeechSynthesizer.cs +++ b/src/AppKit/NSSpeechSynthesizer.cs @@ -23,8 +23,6 @@ #if !__MACCATALYST__ -using System; - #nullable enable namespace AppKit { diff --git a/src/AppKit/NSSpellChecker.cs b/src/AppKit/NSSpellChecker.cs index 415735944fb8..b59bd200152c 100644 --- a/src/AppKit/NSSpellChecker.cs +++ b/src/AppKit/NSSpellChecker.cs @@ -23,8 +23,6 @@ #if !__MACCATALYST__ -using System; - #nullable enable namespace AppKit { diff --git a/src/AppKit/NSStatusBar.cs b/src/AppKit/NSStatusBar.cs index 0a1548bccb5d..3ef0e5867063 100644 --- a/src/AppKit/NSStatusBar.cs +++ b/src/AppKit/NSStatusBar.cs @@ -9,8 +9,6 @@ #if !__MACCATALYST__ -using System; - #nullable enable namespace AppKit { diff --git a/src/AppKit/NSStringAttributes.cs b/src/AppKit/NSStringAttributes.cs index 438848f8c7aa..c0e1fb327858 100644 --- a/src/AppKit/NSStringAttributes.cs +++ b/src/AppKit/NSStringAttributes.cs @@ -8,11 +8,7 @@ #if !__MACCATALYST__ -using System; - -using ObjCRuntime; using CoreFoundation; -using Foundation; #nullable enable diff --git a/src/AppKit/NSStringDrawing.cs b/src/AppKit/NSStringDrawing.cs index 6acb7aebe9dd..82c27b08a6d5 100644 --- a/src/AppKit/NSStringDrawing.cs +++ b/src/AppKit/NSStringDrawing.cs @@ -1,8 +1,5 @@ #if !__MACCATALYST__ -using System; -using System.Runtime.Versioning; using AppKit; -using Foundation; using CoreGraphics; #nullable enable diff --git a/src/AppKit/NSTableView.cs b/src/AppKit/NSTableView.cs index 8281dd4f5fa8..fb0b67c86ded 100644 --- a/src/AppKit/NSTableView.cs +++ b/src/AppKit/NSTableView.cs @@ -26,10 +26,6 @@ #if !__MACCATALYST__ -using System; - -using Foundation; - #nullable enable namespace AppKit { diff --git a/src/AppKit/NSTextContainer.cs b/src/AppKit/NSTextContainer.cs index 5bd9a2c204b4..b2622a57396c 100644 --- a/src/AppKit/NSTextContainer.cs +++ b/src/AppKit/NSTextContainer.cs @@ -1,9 +1,6 @@ #if !__MACCATALYST__ // there's a version in UIKit, use that one instead -using System; using CoreGraphics; -using Foundation; -using ObjCRuntime; #nullable enable diff --git a/src/AppKit/NSTextField.cs b/src/AppKit/NSTextField.cs index 68c5ee0e0881..a130b2a2c11d 100644 --- a/src/AppKit/NSTextField.cs +++ b/src/AppKit/NSTextField.cs @@ -4,10 +4,6 @@ #if !__MACCATALYST__ -using System; -using ObjCRuntime; -using Foundation; - #nullable enable namespace AppKit { diff --git a/src/AppKit/NSTextStorage.cs b/src/AppKit/NSTextStorage.cs index 1c2a34ebb96c..3abfe342401e 100644 --- a/src/AppKit/NSTextStorage.cs +++ b/src/AppKit/NSTextStorage.cs @@ -1,6 +1,5 @@ #if !__MACCATALYST__ using CoreText; -using Foundation; #nullable enable diff --git a/src/AppKit/NSToolbarItem.cs b/src/AppKit/NSToolbarItem.cs index 66d25fb14722..e3612e78c294 100644 --- a/src/AppKit/NSToolbarItem.cs +++ b/src/AppKit/NSToolbarItem.cs @@ -4,9 +4,6 @@ // Author: // Johan Hammar // -using System; -using ObjCRuntime; -using Foundation; #nullable enable diff --git a/src/AppKit/NSTouch.cs b/src/AppKit/NSTouch.cs index d7c16d9522bf..5ebdd4e6d23c 100644 --- a/src/AppKit/NSTouch.cs +++ b/src/AppKit/NSTouch.cs @@ -1,4 +1,3 @@ -using System; using System.ComponentModel; #nullable enable diff --git a/src/AppKit/NSTreeController.cs b/src/AppKit/NSTreeController.cs index 0b33bfa6b5ee..d7f015a354e8 100644 --- a/src/AppKit/NSTreeController.cs +++ b/src/AppKit/NSTreeController.cs @@ -23,10 +23,6 @@ #if !__MACCATALYST__ -using System; - -using Foundation; - #nullable enable namespace AppKit { diff --git a/src/AppKit/NSView.cs b/src/AppKit/NSView.cs index 591a3ea2da85..07244ff0a90a 100644 --- a/src/AppKit/NSView.cs +++ b/src/AppKit/NSView.cs @@ -4,12 +4,6 @@ #if !__MACCATALYST__ -using System; -using System.Runtime.InteropServices; - -using Foundation; -using ObjCRuntime; - #nullable enable namespace AppKit { diff --git a/src/AppKit/NSWindow.cs b/src/AppKit/NSWindow.cs index 569d8a349a87..1348ed011b48 100644 --- a/src/AppKit/NSWindow.cs +++ b/src/AppKit/NSWindow.cs @@ -23,12 +23,9 @@ #if !__MACCATALYST__ -using System; using System.ComponentModel; using CoreFoundation; -using Foundation; -using ObjCRuntime; #nullable enable diff --git a/src/AppKit/NSWorkspace.cs b/src/AppKit/NSWorkspace.cs index b38d6cabd83f..77a2e713fe9e 100644 --- a/src/AppKit/NSWorkspace.cs +++ b/src/AppKit/NSWorkspace.cs @@ -1,10 +1,4 @@ #if !__MACCATALYST__ -using System; -using Foundation; - -using System.Runtime.InteropServices; - -using ObjCRuntime; #nullable enable diff --git a/src/AppKit/XEnums.cs b/src/AppKit/XEnums.cs index 4176ad86c83d..759e934c0ddc 100644 --- a/src/AppKit/XEnums.cs +++ b/src/AppKit/XEnums.cs @@ -6,9 +6,6 @@ // // Copyright 2012 Xamarin Inc -using System; -using ObjCRuntime; - #nullable enable namespace AppKit { diff --git a/src/AssetsLibrary/Compat.cs b/src/AssetsLibrary/Compat.cs index b4f17ad29e4a..7e25bdb99b0c 100644 --- a/src/AssetsLibrary/Compat.cs +++ b/src/AssetsLibrary/Compat.cs @@ -2,12 +2,9 @@ #nullable enable -using System; using System.ComponentModel; using System.Threading.Tasks; -using ObjCRuntime; -using Foundation; using CoreGraphics; using CoreFoundation; using CoreLocation; diff --git a/src/AudioToolbox/AudioBuffers.cs b/src/AudioToolbox/AudioBuffers.cs index 928151068144..de94fc9ef8fd 100644 --- a/src/AudioToolbox/AudioBuffers.cs +++ b/src/AudioToolbox/AudioBuffers.cs @@ -29,12 +29,6 @@ #nullable enable -using System; -using System.Runtime.InteropServices; -using Foundation; -using ObjCRuntime; -using System.Runtime.Versioning; - namespace AudioToolbox { /// [SupportedOSPlatform ("ios")] diff --git a/src/AudioToolbox/AudioClassDescription.cs b/src/AudioToolbox/AudioClassDescription.cs index 218d0101d40d..f4deb6899915 100644 --- a/src/AudioToolbox/AudioClassDescription.cs +++ b/src/AudioToolbox/AudioClassDescription.cs @@ -28,12 +28,8 @@ #nullable enable -using System; -using System.Runtime.InteropServices; using CoreFoundation; -using Foundation; using AudioUnit; -using System.Runtime.Versioning; namespace AudioToolbox { diff --git a/src/AudioToolbox/AudioConverter.cs b/src/AudioToolbox/AudioConverter.cs index d9bc3f6e71ee..310e439a568e 100644 --- a/src/AudioToolbox/AudioConverter.cs +++ b/src/AudioToolbox/AudioConverter.cs @@ -28,13 +28,8 @@ #nullable enable -using System; using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using System.Runtime.Versioning; using CoreFoundation; -using Foundation; -using ObjCRuntime; namespace AudioToolbox { /// An enumeration whose values specify various types of errors relating to the . diff --git a/src/AudioToolbox/AudioFile.cs b/src/AudioToolbox/AudioFile.cs index 166095c0c3f6..1abc4dfd5909 100644 --- a/src/AudioToolbox/AudioFile.cs +++ b/src/AudioToolbox/AudioFile.cs @@ -30,17 +30,13 @@ #nullable enable -using System; using System.IO; using System.Collections.Generic; using System.ComponentModel; using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using ObjCRuntime; using CoreFoundation; -using Foundation; using AudioFileID = System.IntPtr; diff --git a/src/AudioToolbox/AudioFileGlobalInfo.cs b/src/AudioToolbox/AudioFileGlobalInfo.cs index 7793ed5c67e3..fe78c5c9f64d 100644 --- a/src/AudioToolbox/AudioFileGlobalInfo.cs +++ b/src/AudioToolbox/AudioFileGlobalInfo.cs @@ -28,17 +28,12 @@ #nullable enable -using System; using System.Diagnostics.CodeAnalysis; using System.IO; using System.Collections.Generic; using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using ObjCRuntime; using CoreFoundation; -using Foundation; -using System.Runtime.Versioning; namespace AudioToolbox { /// Encapsulates global audio-file information. diff --git a/src/AudioToolbox/AudioFileStream.cs b/src/AudioToolbox/AudioFileStream.cs index 6e4d5c77c07c..43704a8569b4 100644 --- a/src/AudioToolbox/AudioFileStream.cs +++ b/src/AudioToolbox/AudioFileStream.cs @@ -29,19 +29,14 @@ #nullable enable -using System; using System.IO; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using ObjCRuntime; using CoreFoundation; -using Foundation; using AudioFileStreamID = System.IntPtr; -using System.Runtime.Versioning; namespace AudioToolbox { diff --git a/src/AudioToolbox/AudioFormat.cs b/src/AudioToolbox/AudioFormat.cs index 6483b44543f6..baf77b78eb39 100644 --- a/src/AudioToolbox/AudioFormat.cs +++ b/src/AudioToolbox/AudioFormat.cs @@ -29,13 +29,9 @@ #nullable enable -using System; using System.IO; using System.Collections.Generic; -using System.Runtime.InteropServices; using CoreFoundation; -using Foundation; -using ObjCRuntime; using AudioFileID = System.IntPtr; diff --git a/src/AudioToolbox/AudioFormatAvailability.cs b/src/AudioToolbox/AudioFormatAvailability.cs index 0642d1a53ee8..17f5b427bc5b 100644 --- a/src/AudioToolbox/AudioFormatAvailability.cs +++ b/src/AudioToolbox/AudioFormatAvailability.cs @@ -28,13 +28,7 @@ #nullable enable -using System; -using System.Runtime.InteropServices; - -using ObjCRuntime; using CoreFoundation; -using Foundation; -using System.Runtime.Versioning; namespace AudioToolbox { /// The application developer can use this class to retrieve the properties of available encoders and decoders. diff --git a/src/AudioToolbox/AudioQueue.cs b/src/AudioToolbox/AudioQueue.cs index 0f0e7db20d9d..a56d769f450a 100644 --- a/src/AudioToolbox/AudioQueue.cs +++ b/src/AudioToolbox/AudioQueue.cs @@ -30,16 +30,12 @@ #nullable enable -using System; using System.IO; using System.Collections; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; using CoreFoundation; -using Foundation; -using ObjCRuntime; using AudioQueueParameterValue = System.Single; using AudioQueueRef = System.IntPtr; diff --git a/src/AudioToolbox/AudioServices.cs b/src/AudioToolbox/AudioServices.cs index 19d98a5c7ff8..6bf5f34a1886 100644 --- a/src/AudioToolbox/AudioServices.cs +++ b/src/AudioToolbox/AudioServices.cs @@ -28,12 +28,6 @@ #nullable enable -using System; -using System.Runtime.InteropServices; - -using Foundation; -using ObjCRuntime; - namespace AudioToolbox { /// An enumeration of values that can be returned by the method. diff --git a/src/AudioToolbox/AudioSessions.cs b/src/AudioToolbox/AudioSessions.cs index 799a71d2cb62..c7c4c5d48326 100644 --- a/src/AudioToolbox/AudioSessions.cs +++ b/src/AudioToolbox/AudioSessions.cs @@ -26,11 +26,8 @@ // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // -using System; using System.Collections.Generic; -using System.Runtime.InteropServices; using CoreFoundation; -using ObjCRuntime; #nullable enable diff --git a/src/AudioToolbox/AudioToolbox.cs b/src/AudioToolbox/AudioToolbox.cs index 43c0210cdd0f..6aee49c0421d 100644 --- a/src/AudioToolbox/AudioToolbox.cs +++ b/src/AudioToolbox/AudioToolbox.cs @@ -6,12 +6,7 @@ #nullable enable -using System; -using System.Runtime.InteropServices; - using CoreFoundation; -using ObjCRuntime; -using Foundation; namespace AudioToolbox { /// Information on an instrument. Returned by . diff --git a/src/AudioToolbox/AudioType.cs b/src/AudioToolbox/AudioType.cs index ca00747f70f0..7e435c37da9d 100644 --- a/src/AudioToolbox/AudioType.cs +++ b/src/AudioToolbox/AudioType.cs @@ -32,16 +32,12 @@ #nullable enable -using System; using System.Text; using System.Collections.Generic; using System.ComponentModel; using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; using System.Diagnostics; using CoreFoundation; -using ObjCRuntime; -using Foundation; namespace AudioToolbox { /// Audio format identifiers used by . diff --git a/src/AudioToolbox/Enums.cs b/src/AudioToolbox/Enums.cs index 3d274d5652a0..5b487247ebd7 100644 --- a/src/AudioToolbox/Enums.cs +++ b/src/AudioToolbox/Enums.cs @@ -1,6 +1,3 @@ -using System; -using Foundation; -using ObjCRuntime; #nullable enable diff --git a/src/AudioToolbox/MusicPlayer.cs b/src/AudioToolbox/MusicPlayer.cs index 7b6d9bd13b82..79c04a4a7955 100644 --- a/src/AudioToolbox/MusicPlayer.cs +++ b/src/AudioToolbox/MusicPlayer.cs @@ -10,13 +10,7 @@ #nullable enable -using System; using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using System.Runtime.Versioning; - -using ObjCRuntime; -using Foundation; namespace AudioToolbox { diff --git a/src/AudioToolbox/MusicSequence.cs b/src/AudioToolbox/MusicSequence.cs index b81297a4f096..5213b92da09b 100644 --- a/src/AudioToolbox/MusicSequence.cs +++ b/src/AudioToolbox/MusicSequence.cs @@ -9,14 +9,9 @@ #nullable enable -using System; using System.Collections.Generic; using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using System.Runtime.Versioning; -using ObjCRuntime; -using Foundation; #if !COREBUILD using CoreAnimation; #if !TVOS diff --git a/src/AudioToolbox/MusicTrack.cs b/src/AudioToolbox/MusicTrack.cs index 83c8b7bd52ab..92c0665fa1e0 100644 --- a/src/AudioToolbox/MusicTrack.cs +++ b/src/AudioToolbox/MusicTrack.cs @@ -13,17 +13,11 @@ #nullable enable -using System; -using System.Runtime.InteropServices; - -using ObjCRuntime; -using Foundation; #if IOS using CoreMidi; #endif using MidiEndpointRef = System.Int32; -using System.Runtime.Versioning; namespace AudioToolbox { diff --git a/src/AudioToolbox/SystemSound.cs b/src/AudioToolbox/SystemSound.cs index 3647b57009f6..2f119baa632e 100644 --- a/src/AudioToolbox/SystemSound.cs +++ b/src/AudioToolbox/SystemSound.cs @@ -29,12 +29,8 @@ #nullable enable -using System; -using System.Runtime.InteropServices; using System.Threading.Tasks; -using Foundation; using CoreFoundation; -using ObjCRuntime; namespace AudioToolbox { diff --git a/src/AudioUnit/AUEnums.cs b/src/AudioUnit/AUEnums.cs index cb91ab5ccba9..a9d46e04413b 100644 --- a/src/AudioUnit/AUEnums.cs +++ b/src/AudioUnit/AUEnums.cs @@ -28,17 +28,13 @@ // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // -using System; using System.Collections; using System.Collections.Generic; using System.ComponentModel; using System.Text; -using System.Runtime.InteropServices; using System.Threading; using AudioToolbox; -using ObjCRuntime; using CoreFoundation; -using Foundation; #nullable enable diff --git a/src/AudioUnit/AUGraph.cs b/src/AudioUnit/AUGraph.cs index 41e044d3e7a2..cf15c94b3694 100644 --- a/src/AudioUnit/AUGraph.cs +++ b/src/AudioUnit/AUGraph.cs @@ -31,16 +31,12 @@ #nullable enable -using System; using System.Text; using System.Collections.Generic; using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; using System.Threading; using AudioToolbox; -using ObjCRuntime; -using Foundation; using CoreFoundation; namespace AudioUnit { diff --git a/src/AudioUnit/AUParameter.cs b/src/AudioUnit/AUParameter.cs index 28b3493dd32a..6fc50dd2a35d 100644 --- a/src/AudioUnit/AUParameter.cs +++ b/src/AudioUnit/AUParameter.cs @@ -1,9 +1,5 @@ #nullable enable -using System; -using System.Runtime.InteropServices; -using ObjCRuntime; - namespace AudioUnit { public partial class AUParameter { /// The parameter value to represent as a string. diff --git a/src/AudioUnit/AUScheduledAudioFileRegion.cs b/src/AudioUnit/AUScheduledAudioFileRegion.cs index 7d4fbbaa49f3..d7e22ed49ee2 100644 --- a/src/AudioUnit/AUScheduledAudioFileRegion.cs +++ b/src/AudioUnit/AUScheduledAudioFileRegion.cs @@ -10,12 +10,7 @@ #nullable enable -using System; -using System.Runtime.InteropServices; - using AudioToolbox; -using ObjCRuntime; -using System.Runtime.Versioning; namespace AudioUnit { diff --git a/src/AudioUnit/AudioComponent.cs b/src/AudioUnit/AudioComponent.cs index 40e2687cb32f..4a5254a9c830 100644 --- a/src/AudioUnit/AudioComponent.cs +++ b/src/AudioUnit/AudioComponent.cs @@ -29,15 +29,11 @@ #nullable enable -using System; using System.Collections.Generic; using System.Text; using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using ObjCRuntime; using AudioToolbox; using CoreFoundation; -using Foundation; #if !MONOMAC using UIKit; #else diff --git a/src/AudioUnit/AudioComponentDescription.cs b/src/AudioUnit/AudioComponentDescription.cs index ccfc1198e64c..cb014f73a002 100644 --- a/src/AudioUnit/AudioComponentDescription.cs +++ b/src/AudioUnit/AudioComponentDescription.cs @@ -31,12 +31,8 @@ #nullable enable -using System; using System.Collections.Generic; -using System.Runtime.InteropServices; -using ObjCRuntime; using AudioToolbox; -using Foundation; namespace AudioUnit { /// An enumeration whose values represent different types of audio components. diff --git a/src/AudioUnit/AudioUnit.cs b/src/AudioUnit/AudioUnit.cs index d7a007636a39..964a6443c67d 100644 --- a/src/AudioUnit/AudioUnit.cs +++ b/src/AudioUnit/AudioUnit.cs @@ -30,17 +30,13 @@ #nullable enable -using System; using System.Collections; using System.Collections.Generic; using System.Text; using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; using System.Threading; using AudioToolbox; -using ObjCRuntime; using CoreFoundation; -using Foundation; namespace AudioUnit { #if !COREBUILD diff --git a/src/AudioUnit/AudioUnitUtils.cs b/src/AudioUnit/AudioUnitUtils.cs index 4281b2a507d8..74b79fa48ae9 100644 --- a/src/AudioUnit/AudioUnitUtils.cs +++ b/src/AudioUnit/AudioUnitUtils.cs @@ -28,15 +28,10 @@ #nullable enable -using System; using System.Collections.Generic; using System.Text; -using System.Runtime.InteropServices; -using ObjCRuntime; using AudioToolbox; -using Foundation; -using System.Runtime.Versioning; namespace AudioUnit { /// Utility class to hold miscellaneous functions relating to audio streams, samples, and output categories. diff --git a/src/AudioUnit/ClassInfoDictionary.cs b/src/AudioUnit/ClassInfoDictionary.cs index fce3a2dd1fe1..fc76fe6c73d4 100644 --- a/src/AudioUnit/ClassInfoDictionary.cs +++ b/src/AudioUnit/ClassInfoDictionary.cs @@ -27,13 +27,8 @@ #nullable enable -using System; - -using Foundation; using CoreFoundation; -using ObjCRuntime; using CoreImage; -using System.Runtime.Versioning; namespace AudioUnit { /// Holds key-value pairs on class information. Used with and . diff --git a/src/AudioUnit/ExtAudioFile.cs b/src/AudioUnit/ExtAudioFile.cs index c406663451b4..25743079576f 100644 --- a/src/AudioUnit/ExtAudioFile.cs +++ b/src/AudioUnit/ExtAudioFile.cs @@ -31,16 +31,11 @@ #nullable enable -using System; using System.Collections.Generic; using System.Text; -using System.Runtime.InteropServices; -using ObjCRuntime; using CoreFoundation; using AudioToolbox; -using Foundation; -using System.Runtime.Versioning; namespace AudioUnit { /// An enumeration whose values indicate various errors relating to s. diff --git a/src/AuthenticationServices/ASAuthorization.cs b/src/AuthenticationServices/ASAuthorization.cs index 648db2071773..0451edea6ab2 100644 --- a/src/AuthenticationServices/ASAuthorization.cs +++ b/src/AuthenticationServices/ASAuthorization.cs @@ -9,9 +9,6 @@ #nullable enable -using Foundation; -using ObjCRuntime; - namespace AuthenticationServices { public partial class ASAuthorization { diff --git a/src/AuthenticationServices/ASAuthorizationProviderExtensionLoginManager.cs b/src/AuthenticationServices/ASAuthorizationProviderExtensionLoginManager.cs index 4ee0b16caa13..e254b5be5f6c 100644 --- a/src/AuthenticationServices/ASAuthorizationProviderExtensionLoginManager.cs +++ b/src/AuthenticationServices/ASAuthorizationProviderExtensionLoginManager.cs @@ -1,8 +1,5 @@ #if MONOMAC -using System; -using System.Runtime.Versioning; -using Foundation; using Security; #nullable enable diff --git a/src/AuthenticationServices/ASAuthorizationRequest.cs b/src/AuthenticationServices/ASAuthorizationRequest.cs index 6adcd1a86c63..b041e9d833fd 100644 --- a/src/AuthenticationServices/ASAuthorizationRequest.cs +++ b/src/AuthenticationServices/ASAuthorizationRequest.cs @@ -9,9 +9,6 @@ #nullable enable -using Foundation; -using ObjCRuntime; - namespace AuthenticationServices { public partial class ASAuthorizationRequest { public T? GetProvider () where T : NSObject, IASAuthorizationProvider => Runtime.GetINativeObject (_Provider, false); diff --git a/src/AuthenticationServices/ASCompat.cs b/src/AuthenticationServices/ASCompat.cs index d3e0edc68a2d..d40a14dc101e 100644 --- a/src/AuthenticationServices/ASCompat.cs +++ b/src/AuthenticationServices/ASCompat.cs @@ -10,9 +10,6 @@ #nullable enable -using Foundation; -using ObjCRuntime; -using System; using System.Threading.Tasks; namespace AuthenticationServices { diff --git a/src/AuthenticationServices/PublicPrivateKeyAuthentication.cs b/src/AuthenticationServices/PublicPrivateKeyAuthentication.cs index d8966cf2e74d..9d9dc8b2907e 100644 --- a/src/AuthenticationServices/PublicPrivateKeyAuthentication.cs +++ b/src/AuthenticationServices/PublicPrivateKeyAuthentication.cs @@ -9,11 +9,7 @@ #if !TVOS -using System; -using System.Runtime.InteropServices; using CoreGraphics; -using Foundation; -using ObjCRuntime; using System.Linq; #nullable enable diff --git a/src/BackgroundAssets/BACompat.cs b/src/BackgroundAssets/BACompat.cs index b45210a68a24..dfd7e332aa2e 100644 --- a/src/BackgroundAssets/BACompat.cs +++ b/src/BackgroundAssets/BACompat.cs @@ -2,10 +2,7 @@ // BACompar.cs: Compatibility functions // // Copyright 2022 Microsoft Inc. All rights reserved. -using System; using System.ComponentModel; -using System.Runtime.Versioning; -using Foundation; #nullable enable diff --git a/src/BackgroundTasks/Enums.cs b/src/BackgroundTasks/Enums.cs index 3a6923d725c9..c32f26f64196 100644 --- a/src/BackgroundTasks/Enums.cs +++ b/src/BackgroundTasks/Enums.cs @@ -6,9 +6,6 @@ // // Copyright 2019 Microsoft Corporation All rights reserved. // -using System; -using Foundation; -using ObjCRuntime; #nullable enable diff --git a/src/BrowserEngineKit/BEStructs.cs b/src/BrowserEngineKit/BEStructs.cs index bf6db28e4658..6e7f0545f8c0 100644 --- a/src/BrowserEngineKit/BEStructs.cs +++ b/src/BrowserEngineKit/BEStructs.cs @@ -1,7 +1,4 @@ -using System; using System.Diagnostics.CodeAnalysis; -using System.Runtime.InteropServices; -using System.Runtime.Versioning; namespace BrowserEngineKit { #if IOS || MACCATALYST || TVOS diff --git a/src/BusinessChat/BCChatAction.cs b/src/BusinessChat/BCChatAction.cs index c86fd21d22ec..bcb03d940740 100644 --- a/src/BusinessChat/BCChatAction.cs +++ b/src/BusinessChat/BCChatAction.cs @@ -1,8 +1,6 @@ #nullable enable -using System; using System.Collections.Generic; -using Foundation; namespace BusinessChat { /// To be added. diff --git a/src/BusinessChat/Enums.cs b/src/BusinessChat/Enums.cs index d078613e7549..c7cdb57f37a3 100644 --- a/src/BusinessChat/Enums.cs +++ b/src/BusinessChat/Enums.cs @@ -1,5 +1,3 @@ -using ObjCRuntime; -using Foundation; #nullable enable diff --git a/src/CFNetwork/CFHTTPAuthentication.cs b/src/CFNetwork/CFHTTPAuthentication.cs index c89f645c4542..badc5f2c4779 100644 --- a/src/CFNetwork/CFHTTPAuthentication.cs +++ b/src/CFNetwork/CFHTTPAuthentication.cs @@ -9,13 +9,8 @@ #nullable enable -using System; using System.Net; -using System.Runtime.InteropServices; -using System.Runtime.Versioning; -using Foundation; using CoreFoundation; -using ObjCRuntime; namespace CFNetwork { /// Represents HTTP authentication information for use with . diff --git a/src/CFNetwork/CFHTTPMessage.cs b/src/CFNetwork/CFHTTPMessage.cs index 7a00c01a4474..730a9de9699a 100644 --- a/src/CFNetwork/CFHTTPMessage.cs +++ b/src/CFNetwork/CFHTTPMessage.cs @@ -10,13 +10,9 @@ #nullable enable -using System; using System.Net; using System.Security.Authentication; -using System.Runtime.InteropServices; -using Foundation; using CoreFoundation; -using ObjCRuntime; namespace CFNetwork { /// An HTTP message. diff --git a/src/CFNetwork/CFHTTPStream.cs b/src/CFNetwork/CFHTTPStream.cs index f8f3b63f7c44..0594fcaae720 100644 --- a/src/CFNetwork/CFHTTPStream.cs +++ b/src/CFNetwork/CFHTTPStream.cs @@ -9,10 +9,7 @@ #nullable enable -using System; -using Foundation; using CoreFoundation; -using ObjCRuntime; namespace CFNetwork { // all fields constants that this is using are deprecated in Xcode 7 diff --git a/src/CFNetwork/CFHost.cs b/src/CFNetwork/CFHost.cs index 26d0c675ef42..0cd3e02f69f3 100644 --- a/src/CFNetwork/CFHost.cs +++ b/src/CFNetwork/CFHost.cs @@ -9,12 +9,8 @@ #nullable enable -using System; using System.Net; -using System.Runtime.InteropServices; using CoreFoundation; -using Foundation; -using ObjCRuntime; namespace CFNetwork { [SupportedOSPlatform ("ios")] diff --git a/src/CallKit/CXProvider.cs b/src/CallKit/CXProvider.cs index 4133893deb40..ef8ce486cd02 100644 --- a/src/CallKit/CXProvider.cs +++ b/src/CallKit/CXProvider.cs @@ -10,9 +10,6 @@ #nullable enable #if !MONOMAC -using System; -using Foundation; -using ObjCRuntime; namespace CallKit { public partial class CXProvider { diff --git a/src/CarPlay/CPCompat.cs b/src/CarPlay/CPCompat.cs index 0f907f65b12b..c269a87aa0e2 100644 --- a/src/CarPlay/CPCompat.cs +++ b/src/CarPlay/CPCompat.cs @@ -9,10 +9,7 @@ #nullable enable -using System; using CoreGraphics; -using Foundation; -using ObjCRuntime; using System.ComponentModel; namespace CarPlay { diff --git a/src/CarPlay/CPEnums.cs b/src/CarPlay/CPEnums.cs index b558bb771a36..02d272d01fb9 100644 --- a/src/CarPlay/CPEnums.cs +++ b/src/CarPlay/CPEnums.cs @@ -8,10 +8,6 @@ // Licensed under MIT License. // -using System; -using Foundation; -using ObjCRuntime; - #nullable enable namespace CarPlay { diff --git a/src/CarPlay/CPMessageListItem.cs b/src/CarPlay/CPMessageListItem.cs index e23ceb5d8b39..be215172782c 100644 --- a/src/CarPlay/CPMessageListItem.cs +++ b/src/CarPlay/CPMessageListItem.cs @@ -8,10 +8,6 @@ // Licensed under MIT License. // -using System; -using Foundation; -using ObjCRuntime; - #nullable enable namespace CarPlay { diff --git a/src/CarPlay/CPNavigationAlert.cs b/src/CarPlay/CPNavigationAlert.cs index f1b95e9224c1..2d0c972d1f66 100644 --- a/src/CarPlay/CPNavigationAlert.cs +++ b/src/CarPlay/CPNavigationAlert.cs @@ -9,10 +9,6 @@ #nullable enable -using System; -using Foundation; -using ObjCRuntime; - namespace CarPlay { public partial class CPNavigationAlert { // Defined inside CPNavigationAlert.h diff --git a/src/CarPlay/CPNowPlayingSportsClock.cs b/src/CarPlay/CPNowPlayingSportsClock.cs index 306c93899ef8..d57e0563bf32 100644 --- a/src/CarPlay/CPNowPlayingSportsClock.cs +++ b/src/CarPlay/CPNowPlayingSportsClock.cs @@ -3,10 +3,6 @@ // Licensed under MIT License. // -using System; -using Foundation; -using ObjCRuntime; - #nullable enable namespace CarPlay { diff --git a/src/Cinematic/CNDecision.cs b/src/Cinematic/CNDecision.cs index a572c3f281b7..6fe1de480056 100644 --- a/src/Cinematic/CNDecision.cs +++ b/src/Cinematic/CNDecision.cs @@ -1,7 +1,4 @@ -using System; using CoreMedia; -using Foundation; -using ObjCRuntime; #nullable enable diff --git a/src/ClassKit/CLSContext.cs b/src/ClassKit/CLSContext.cs index e3b76945494f..053b684e08a9 100644 --- a/src/ClassKit/CLSContext.cs +++ b/src/ClassKit/CLSContext.cs @@ -9,10 +9,6 @@ #nullable enable -using System; -using Foundation; -using ObjCRuntime; - namespace ClassKit { public partial class CLSContext { diff --git a/src/CloudKit/CKFetchNotificationChangesOperation.cs b/src/CloudKit/CKFetchNotificationChangesOperation.cs index 29b405063c6e..ede7746498ad 100644 --- a/src/CloudKit/CKFetchNotificationChangesOperation.cs +++ b/src/CloudKit/CKFetchNotificationChangesOperation.cs @@ -1,13 +1,8 @@ #if !XAMCORE_5_0 -using System; using System.ComponentModel; -using System.Runtime.Versioning; using System.Diagnostics.CodeAnalysis; -using Foundation; -using ObjCRuntime; - #nullable enable namespace CloudKit { diff --git a/src/CloudKit/CKMarkNotificationsReadOperation.cs b/src/CloudKit/CKMarkNotificationsReadOperation.cs index 36de24b8cee5..3a88ac4db0b8 100644 --- a/src/CloudKit/CKMarkNotificationsReadOperation.cs +++ b/src/CloudKit/CKMarkNotificationsReadOperation.cs @@ -1,13 +1,8 @@ #if !XAMCORE_5_0 -using System; using System.ComponentModel; -using System.Runtime.Versioning; using System.Diagnostics.CodeAnalysis; -using Foundation; -using ObjCRuntime; - #nullable enable namespace CloudKit { diff --git a/src/CloudKit/CKModifyBadgeOperation.cs b/src/CloudKit/CKModifyBadgeOperation.cs index a8d4947bcf5c..4378300df610 100644 --- a/src/CloudKit/CKModifyBadgeOperation.cs +++ b/src/CloudKit/CKModifyBadgeOperation.cs @@ -1,13 +1,8 @@ #if !XAMCORE_5_0 -using System; using System.ComponentModel; -using System.Runtime.Versioning; using System.Diagnostics.CodeAnalysis; -using Foundation; -using ObjCRuntime; - #nullable enable namespace CloudKit { diff --git a/src/CloudKit/CKRecord.cs b/src/CloudKit/CKRecord.cs index 877855c163dd..757139964b31 100644 --- a/src/CloudKit/CKRecord.cs +++ b/src/CloudKit/CKRecord.cs @@ -1,8 +1,5 @@ #nullable enable -using ObjCRuntime; -using Foundation; -using System; using System.Collections; using System.Collections.Generic; diff --git a/src/CloudKit/CKRecordID.cs b/src/CloudKit/CKRecordID.cs index 48bc5c66149c..35eda153eddc 100644 --- a/src/CloudKit/CKRecordID.cs +++ b/src/CloudKit/CKRecordID.cs @@ -1,7 +1,5 @@ #nullable enable -using System; - namespace CloudKit { public partial class CKRecordID { diff --git a/src/CloudKit/CKRecordZoneID.cs b/src/CloudKit/CKRecordZoneID.cs index fbe85e875a8a..af4dabe71a31 100644 --- a/src/CloudKit/CKRecordZoneID.cs +++ b/src/CloudKit/CKRecordZoneID.cs @@ -1,7 +1,5 @@ #nullable enable -using System; - namespace CloudKit { public partial class CKRecordZoneID { diff --git a/src/CloudKit/CKSyncEngineFetchChangesScope.cs b/src/CloudKit/CKSyncEngineFetchChangesScope.cs index a1599a7fe0f4..e15321866f98 100644 --- a/src/CloudKit/CKSyncEngineFetchChangesScope.cs +++ b/src/CloudKit/CKSyncEngineFetchChangesScope.cs @@ -1,6 +1,3 @@ -using System; -using ObjCRuntime; -using Foundation; #nullable enable diff --git a/src/CloudKit/CKSyncEngineSendChangesScope.cs b/src/CloudKit/CKSyncEngineSendChangesScope.cs index 3ad4ea2e6d2d..7d3aa0335e16 100644 --- a/src/CloudKit/CKSyncEngineSendChangesScope.cs +++ b/src/CloudKit/CKSyncEngineSendChangesScope.cs @@ -1,6 +1,3 @@ -using System; -using ObjCRuntime; -using Foundation; #nullable enable diff --git a/src/CloudKit/CKUserIdentityLookupInfo.cs b/src/CloudKit/CKUserIdentityLookupInfo.cs index a12347f27783..606b0b79f31e 100644 --- a/src/CloudKit/CKUserIdentityLookupInfo.cs +++ b/src/CloudKit/CKUserIdentityLookupInfo.cs @@ -1,8 +1,5 @@ #nullable enable -using ObjCRuntime; -using Foundation; -using System; using System.Collections; using System.Collections.Generic; diff --git a/src/CloudKit/Enums.cs b/src/CloudKit/Enums.cs index 777e9257be5c..66cc226b715a 100644 --- a/src/CloudKit/Enums.cs +++ b/src/CloudKit/Enums.cs @@ -1,7 +1,4 @@ using CoreFoundation; -using ObjCRuntime; -using Foundation; -using System; #nullable enable diff --git a/src/Compression/Compression.cs b/src/Compression/Compression.cs index 9ab4e9d84781..7ede110e9917 100644 --- a/src/Compression/Compression.cs +++ b/src/Compression/Compression.cs @@ -4,19 +4,15 @@ #nullable enable -using System; using System.IO; using System.IO.Compression; using System.Buffers; using System.Diagnostics; using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; using System.Threading; using System.Threading.Tasks; using System.Diagnostics.CodeAnalysis; -using ObjCRuntime; - namespace Compression { /// Provides methods and properties for compressing and decompressing streams by using the deflate algorithm. /// diff --git a/src/Compression/CompressionStreamStruct.cs b/src/Compression/CompressionStreamStruct.cs index 5c6bfd4f67e3..56325aa873c6 100644 --- a/src/Compression/CompressionStreamStruct.cs +++ b/src/Compression/CompressionStreamStruct.cs @@ -1,8 +1,4 @@ -using System; using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -using ObjCRuntime; #nullable enable diff --git a/src/Compression/Deflater.cs b/src/Compression/Deflater.cs index 5cfe227c7a3c..dacbf91203af 100644 --- a/src/Compression/Deflater.cs +++ b/src/Compression/Deflater.cs @@ -4,14 +4,10 @@ #nullable enable -using System; using System.Buffers; using System.Diagnostics; -using System.Runtime.InteropServices; using System.Security; -using ObjCRuntime; - namespace Compression { internal sealed class Deflater : IDisposable { diff --git a/src/Compression/Enums.cs b/src/Compression/Enums.cs index 04ccf4738054..229428fc7564 100644 --- a/src/Compression/Enums.cs +++ b/src/Compression/Enums.cs @@ -1,6 +1,4 @@ -using System; -using ObjCRuntime; #nullable enable namespace Compression { diff --git a/src/Compression/Inflater.cs b/src/Compression/Inflater.cs index d540bdf5fe06..4465a181d405 100644 --- a/src/Compression/Inflater.cs +++ b/src/Compression/Inflater.cs @@ -4,13 +4,9 @@ #nullable enable -using System; using System.Diagnostics; -using System.Runtime.InteropServices; using System.Security; -using ObjCRuntime; - namespace Compression { internal sealed class Inflater : IDisposable { diff --git a/src/Contacts/CNContact.cs b/src/Contacts/CNContact.cs index 021f31e563c9..234a20c315d0 100644 --- a/src/Contacts/CNContact.cs +++ b/src/Contacts/CNContact.cs @@ -9,10 +9,6 @@ #nullable enable -using System; -using Foundation; -using ObjCRuntime; - namespace Contacts { public partial class CNContact { diff --git a/src/Contacts/CNContactFetchRequest.cs b/src/Contacts/CNContactFetchRequest.cs index e845084439e3..53174aae2350 100644 --- a/src/Contacts/CNContactFetchRequest.cs +++ b/src/Contacts/CNContactFetchRequest.cs @@ -6,10 +6,6 @@ #nullable enable -using System; -using Foundation; -using ObjCRuntime; - namespace Contacts { public partial class CNContactFetchRequest { diff --git a/src/Contacts/CNContactStore.cs b/src/Contacts/CNContactStore.cs index 63052da7db24..8349e0e840b4 100644 --- a/src/Contacts/CNContactStore.cs +++ b/src/Contacts/CNContactStore.cs @@ -6,10 +6,6 @@ #nullable enable -using System; -using Foundation; -using ObjCRuntime; - namespace Contacts { public partial class CNContactStore { diff --git a/src/Contacts/CNEnums.cs b/src/Contacts/CNEnums.cs index b43274a53f17..a9da3fbdb566 100644 --- a/src/Contacts/CNEnums.cs +++ b/src/Contacts/CNEnums.cs @@ -7,10 +7,6 @@ // Copyright 2015 Xamarin Inc. All rights reserved. // -using System; -using ObjCRuntime; -using Foundation; - #nullable enable namespace Contacts { diff --git a/src/Contacts/CNInstantMessageAddress.cs b/src/Contacts/CNInstantMessageAddress.cs index 34953d969c43..fe85a80e67fb 100644 --- a/src/Contacts/CNInstantMessageAddress.cs +++ b/src/Contacts/CNInstantMessageAddress.cs @@ -9,9 +9,6 @@ #nullable enable -using System; -using Foundation; - namespace Contacts { // Strong typed Keys to enum /// Enumeration of values used by all instant-message services. diff --git a/src/Contacts/CNSocialProfile.cs b/src/Contacts/CNSocialProfile.cs index e24d654a0875..e05ed0ba5f54 100644 --- a/src/Contacts/CNSocialProfile.cs +++ b/src/Contacts/CNSocialProfile.cs @@ -9,9 +9,6 @@ #nullable enable -using System; -using Foundation; - namespace Contacts { // Strong typed Keys to enum /// Enumerates properties of social services that are always fetched. diff --git a/src/CoreAnimation/CABasicAnimation.cs b/src/CoreAnimation/CABasicAnimation.cs index ee01f5f43f86..f0ee2e7e9357 100644 --- a/src/CoreAnimation/CABasicAnimation.cs +++ b/src/CoreAnimation/CABasicAnimation.cs @@ -1,7 +1,4 @@ -using System; -using Foundation; -using ObjCRuntime; #if MONOMAC using AppKit; #endif diff --git a/src/CoreAnimation/CADefs.cs b/src/CoreAnimation/CADefs.cs index 66efb4cd2aaf..1899ea53ec3d 100644 --- a/src/CoreAnimation/CADefs.cs +++ b/src/CoreAnimation/CADefs.cs @@ -29,11 +29,6 @@ // // -using System; -using System.Runtime.InteropServices; - -using ObjCRuntime; -using Foundation; using CoreGraphics; #nullable enable diff --git a/src/CoreAnimation/CAEnums.cs b/src/CoreAnimation/CAEnums.cs index a18ed2990aff..e440a23ed3ab 100644 --- a/src/CoreAnimation/CAEnums.cs +++ b/src/CoreAnimation/CAEnums.cs @@ -27,11 +27,7 @@ // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // -using System; -using Foundation; -using System.Runtime.InteropServices; using CoreGraphics; -using ObjCRuntime; #nullable enable diff --git a/src/CoreAnimation/CAFrameRateRange.cs b/src/CoreAnimation/CAFrameRateRange.cs index 8e725c896b9b..9a2fd6055007 100644 --- a/src/CoreAnimation/CAFrameRateRange.cs +++ b/src/CoreAnimation/CAFrameRateRange.cs @@ -1,8 +1,3 @@ -using System; -using System.Runtime.InteropServices; - -using Foundation; -using ObjCRuntime; #nullable enable diff --git a/src/CoreAnimation/CAKeyFrameAnimation.cs b/src/CoreAnimation/CAKeyFrameAnimation.cs index 76e9355743d4..cdeaa54a1f8b 100644 --- a/src/CoreAnimation/CAKeyFrameAnimation.cs +++ b/src/CoreAnimation/CAKeyFrameAnimation.cs @@ -1,7 +1,4 @@ -using System; -using Foundation; -using ObjCRuntime; using CoreGraphics; #nullable enable diff --git a/src/CoreAnimation/CALayer.cs b/src/CoreAnimation/CALayer.cs index b674fc9bd05c..c1f2ce814ead 100644 --- a/src/CoreAnimation/CALayer.cs +++ b/src/CoreAnimation/CALayer.cs @@ -26,10 +26,7 @@ // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // -using System; -using Foundation; -using ObjCRuntime; #if MONOMAC using AppKit; #endif diff --git a/src/CoreAnimation/CALayerDelegate.cs b/src/CoreAnimation/CALayerDelegate.cs index f134daa68a00..776182d49001 100644 --- a/src/CoreAnimation/CALayerDelegate.cs +++ b/src/CoreAnimation/CALayerDelegate.cs @@ -25,10 +25,7 @@ // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // -using System; -using Foundation; -using ObjCRuntime; using CoreGraphics; #nullable enable diff --git a/src/CoreAnimation/CAMediaTimingFunction.cs b/src/CoreAnimation/CAMediaTimingFunction.cs index 0d2ac783fa64..e6acf25e242f 100644 --- a/src/CoreAnimation/CAMediaTimingFunction.cs +++ b/src/CoreAnimation/CAMediaTimingFunction.cs @@ -26,9 +26,6 @@ // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // -using System; -using System.Runtime.InteropServices; -using Foundation; using CoreGraphics; #nullable enable diff --git a/src/CoreAnimation/CATextLayer.cs b/src/CoreAnimation/CATextLayer.cs index 61bf67996018..5b70bcd4df48 100644 --- a/src/CoreAnimation/CATextLayer.cs +++ b/src/CoreAnimation/CATextLayer.cs @@ -28,10 +28,6 @@ // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // -using System; - -using Foundation; -using ObjCRuntime; using CoreGraphics; using CoreFoundation; using CoreText; diff --git a/src/CoreAnimation/CATransform3D.cs b/src/CoreAnimation/CATransform3D.cs index de396a9185aa..79351d2539ff 100644 --- a/src/CoreAnimation/CATransform3D.cs +++ b/src/CoreAnimation/CATransform3D.cs @@ -7,11 +7,7 @@ // Copyright 2009 Novell, Inc // Copyright 2014 Xamarin Inc // -using System; -using System.Runtime.InteropServices; -using System.Runtime.Versioning; -using ObjCRuntime; using CoreGraphics; #nullable enable diff --git a/src/CoreAnimation/NSValue.cs b/src/CoreAnimation/NSValue.cs index b87e586c1111..737ba491cee8 100644 --- a/src/CoreAnimation/NSValue.cs +++ b/src/CoreAnimation/NSValue.cs @@ -1,9 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -using System; -using System.Runtime.InteropServices; -using ObjCRuntime; using CoreAnimation; #nullable enable diff --git a/src/CoreBluetooth/AdvertisementDataOptions.cs b/src/CoreBluetooth/AdvertisementDataOptions.cs index 450cecfa7052..5070f95c4b9b 100644 --- a/src/CoreBluetooth/AdvertisementDataOptions.cs +++ b/src/CoreBluetooth/AdvertisementDataOptions.cs @@ -25,11 +25,7 @@ // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // -using System; - -using Foundation; using CoreFoundation; -using ObjCRuntime; #nullable enable diff --git a/src/CoreBluetooth/CBManager.cs b/src/CoreBluetooth/CBManager.cs index a2f57338534a..072adbc176c3 100644 --- a/src/CoreBluetooth/CBManager.cs +++ b/src/CoreBluetooth/CBManager.cs @@ -1,6 +1,4 @@ #if IOS -using System; -using ObjCRuntime; #nullable enable diff --git a/src/CoreBluetooth/CBUUID.cs b/src/CoreBluetooth/CBUUID.cs index 1c642eee8a04..184f0dff17d3 100644 --- a/src/CoreBluetooth/CBUUID.cs +++ b/src/CoreBluetooth/CBUUID.cs @@ -8,9 +8,7 @@ // Copyright 2012-2014 Xamarin Inc. All rights reserved. // -using System; using System.Text; -using Foundation; #nullable enable diff --git a/src/CoreBluetooth/CoreBluetooth.cs b/src/CoreBluetooth/CoreBluetooth.cs index 1ce31ca20c4f..220be5d7bc29 100644 --- a/src/CoreBluetooth/CoreBluetooth.cs +++ b/src/CoreBluetooth/CoreBluetooth.cs @@ -1,6 +1,4 @@ -using System; -using Foundation; using CoreFoundation; #nullable enable diff --git a/src/CoreBluetooth/Enums.cs b/src/CoreBluetooth/Enums.cs index 9f1a4b1207b6..bb5fa519fff9 100644 --- a/src/CoreBluetooth/Enums.cs +++ b/src/CoreBluetooth/Enums.cs @@ -8,9 +8,6 @@ // Copyright 2011-2014 Xamarin Inc // -using System; -using ObjCRuntime; - #nullable enable namespace CoreBluetooth { diff --git a/src/CoreBluetooth/GuidWrapper.cs b/src/CoreBluetooth/GuidWrapper.cs index deb034423eed..9215c1f3c8e6 100644 --- a/src/CoreBluetooth/GuidWrapper.cs +++ b/src/CoreBluetooth/GuidWrapper.cs @@ -6,11 +6,7 @@ // // Copyright 2011-2014 Xamarin Inc // -using System; -using System.Runtime.InteropServices; -using ObjCRuntime; -using Foundation; using CoreFoundation; #nullable enable diff --git a/src/CoreBluetooth/PeripheralConnectionOptions.cs b/src/CoreBluetooth/PeripheralConnectionOptions.cs index 24918ad68295..4c32671912ed 100644 --- a/src/CoreBluetooth/PeripheralConnectionOptions.cs +++ b/src/CoreBluetooth/PeripheralConnectionOptions.cs @@ -25,11 +25,7 @@ // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // -using System; - -using Foundation; using CoreFoundation; -using ObjCRuntime; #nullable enable diff --git a/src/CoreBluetooth/PeripheralScanningOptions.cs b/src/CoreBluetooth/PeripheralScanningOptions.cs index bebe62a18ed3..cb7b24f3dbcb 100644 --- a/src/CoreBluetooth/PeripheralScanningOptions.cs +++ b/src/CoreBluetooth/PeripheralScanningOptions.cs @@ -25,11 +25,7 @@ // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // -using System; - -using Foundation; using CoreFoundation; -using ObjCRuntime; #nullable enable diff --git a/src/CoreData/Enums.cs b/src/CoreData/Enums.cs index 976e73917236..3edd8f75b76e 100644 --- a/src/CoreData/Enums.cs +++ b/src/CoreData/Enums.cs @@ -20,10 +20,6 @@ // // Copyright 2011-2014 Xamarin Inc. -using System; - -using ObjCRuntime; - #nullable enable namespace CoreData { diff --git a/src/CoreData/NSEntityDescription.cs b/src/CoreData/NSEntityDescription.cs index 563e9d29f55d..a6828cd21958 100644 --- a/src/CoreData/NSEntityDescription.cs +++ b/src/CoreData/NSEntityDescription.cs @@ -6,9 +6,6 @@ // // Copyright 2015 Xamarin Inc. All rights reserved. -using Foundation; -using ObjCRuntime; - #nullable enable namespace CoreData { diff --git a/src/CoreData/NSPersistentStoreCoordinator.cs b/src/CoreData/NSPersistentStoreCoordinator.cs index c6fc74928eda..acca2a5cfa12 100644 --- a/src/CoreData/NSPersistentStoreCoordinator.cs +++ b/src/CoreData/NSPersistentStoreCoordinator.cs @@ -1,8 +1,3 @@ -using System; -using System.Runtime.Versioning; -using System.Runtime.InteropServices; - -using ObjCRuntime; namespace CoreData { /// Mediates between a persistent store and the managed object context or contexts. diff --git a/src/CoreFoundation/Architecture.cs b/src/CoreFoundation/Architecture.cs index 6fc5a6517108..3dc82b15f99f 100644 --- a/src/CoreFoundation/Architecture.cs +++ b/src/CoreFoundation/Architecture.cs @@ -1,9 +1,5 @@ #nullable enable -using System; -using System.Runtime.InteropServices; -using ObjCRuntime; -using Foundation; using CoreFoundation; namespace CoreFoundation { diff --git a/src/CoreFoundation/CFAllocator.cs b/src/CoreFoundation/CFAllocator.cs index 5370ec622d60..fae4936f5c64 100644 --- a/src/CoreFoundation/CFAllocator.cs +++ b/src/CoreFoundation/CFAllocator.cs @@ -29,11 +29,6 @@ #nullable enable -using System; -using System.Runtime.InteropServices; -using Foundation; -using ObjCRuntime; - namespace CoreFoundation { // CFBase.h diff --git a/src/CoreFoundation/CFArray.cs b/src/CoreFoundation/CFArray.cs index cb9088575bb2..2b21d5e1dd12 100644 --- a/src/CoreFoundation/CFArray.cs +++ b/src/CoreFoundation/CFArray.cs @@ -29,11 +29,6 @@ // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // -using System; -using System.Runtime.InteropServices; -using Foundation; -using ObjCRuntime; - using CFIndex = System.IntPtr; using CFArrayRef = System.IntPtr; using CFAllocatorRef = System.IntPtr; diff --git a/src/CoreFoundation/CFBoolean.cs b/src/CoreFoundation/CFBoolean.cs index 508be6d3387f..04e97999023f 100644 --- a/src/CoreFoundation/CFBoolean.cs +++ b/src/CoreFoundation/CFBoolean.cs @@ -28,13 +28,6 @@ #nullable enable -using System; -using System.Runtime.InteropServices; -using System.Runtime.Versioning; - -using ObjCRuntime; -using Foundation; - namespace CoreFoundation { diff --git a/src/CoreFoundation/CFBundle.cs b/src/CoreFoundation/CFBundle.cs index 7d9ccd37301d..52d4df1293c5 100644 --- a/src/CoreFoundation/CFBundle.cs +++ b/src/CoreFoundation/CFBundle.cs @@ -4,13 +4,9 @@ #nullable enable -using System; using System.Globalization; -using System.Runtime.InteropServices; -using ObjCRuntime; using CoreFoundation; -using Foundation; namespace CoreFoundation { diff --git a/src/CoreFoundation/CFComparisonResult.cs b/src/CoreFoundation/CFComparisonResult.cs index c077b46575e0..841b6031586f 100644 --- a/src/CoreFoundation/CFComparisonResult.cs +++ b/src/CoreFoundation/CFComparisonResult.cs @@ -1,5 +1,3 @@ -using Foundation; -using ObjCRuntime; namespace CoreFoundation { [Native] diff --git a/src/CoreFoundation/CFData.cs b/src/CoreFoundation/CFData.cs index 9526118b7229..e940a4841442 100644 --- a/src/CoreFoundation/CFData.cs +++ b/src/CoreFoundation/CFData.cs @@ -28,11 +28,6 @@ #nullable enable -using System; -using System.Runtime.InteropServices; -using Foundation; -using ObjCRuntime; - namespace CoreFoundation { class CFData : NativeObject { diff --git a/src/CoreFoundation/CFDataBuffer.cs b/src/CoreFoundation/CFDataBuffer.cs index 5dbb9bee0649..e5f519baba19 100644 --- a/src/CoreFoundation/CFDataBuffer.cs +++ b/src/CoreFoundation/CFDataBuffer.cs @@ -29,10 +29,7 @@ #nullable enable -using System; -using System.Runtime.InteropServices; using CoreFoundation; -using ObjCRuntime; namespace CoreFoundation { diff --git a/src/CoreFoundation/CFDictionary.cs b/src/CoreFoundation/CFDictionary.cs index d176521c21c9..6e9ada1a6bd6 100644 --- a/src/CoreFoundation/CFDictionary.cs +++ b/src/CoreFoundation/CFDictionary.cs @@ -30,12 +30,6 @@ #nullable enable -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using Foundation; -using ObjCRuntime; - namespace CoreFoundation { class CFDictionary : NativeObject { diff --git a/src/CoreFoundation/CFException.cs b/src/CoreFoundation/CFException.cs index e217dbd8e669..8ded3146ce11 100644 --- a/src/CoreFoundation/CFException.cs +++ b/src/CoreFoundation/CFException.cs @@ -28,13 +28,6 @@ #nullable enable -using System; -using System.Runtime.InteropServices; - -using Foundation; -using ObjCRuntime; -using System.Runtime.Versioning; - namespace CoreFoundation { /// A class whose static fields define error domains for . /// To be added. diff --git a/src/CoreFoundation/CFMachPort.cs b/src/CoreFoundation/CFMachPort.cs index 742674a87320..15bb0bae6bf1 100644 --- a/src/CoreFoundation/CFMachPort.cs +++ b/src/CoreFoundation/CFMachPort.cs @@ -10,11 +10,7 @@ #nullable enable -using System; using System.Reflection; -using System.Runtime.InteropServices; -using Foundation; -using ObjCRuntime; namespace CoreFoundation { diff --git a/src/CoreFoundation/CFMessagePort.cs b/src/CoreFoundation/CFMessagePort.cs index a01b25c21814..0ce9a909bf74 100644 --- a/src/CoreFoundation/CFMessagePort.cs +++ b/src/CoreFoundation/CFMessagePort.cs @@ -9,13 +9,7 @@ #nullable enable -using System; using System.Collections.Generic; -using System.Runtime.InteropServices; -using System.Runtime.Versioning; - -using Foundation; -using ObjCRuntime; using dispatch_queue_t = System.IntPtr; diff --git a/src/CoreFoundation/CFMutableString.cs b/src/CoreFoundation/CFMutableString.cs index 8b66630952df..de866903d9d5 100644 --- a/src/CoreFoundation/CFMutableString.cs +++ b/src/CoreFoundation/CFMutableString.cs @@ -4,13 +4,7 @@ #if !COREBUILD -using System; using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using System.Runtime.Versioning; - -using Foundation; -using ObjCRuntime; namespace CoreFoundation { diff --git a/src/CoreFoundation/CFNetwork.cs b/src/CoreFoundation/CFNetwork.cs index abf014234b68..362d1ef2e188 100644 --- a/src/CoreFoundation/CFNetwork.cs +++ b/src/CoreFoundation/CFNetwork.cs @@ -2,8 +2,6 @@ #nullable enable -using System; - namespace CoreFoundation { // note: Make sure names are identical/consistent with NSUrlError.* diff --git a/src/CoreFoundation/CFNotificationCenter.cs b/src/CoreFoundation/CFNotificationCenter.cs index e44d5563ec87..c0cc6ddbee57 100644 --- a/src/CoreFoundation/CFNotificationCenter.cs +++ b/src/CoreFoundation/CFNotificationCenter.cs @@ -13,11 +13,7 @@ #nullable enable -using System; -using System.Runtime.InteropServices; using CFNotificationCenterRef = global::System.IntPtr; -using ObjCRuntime; -using Foundation; using CoreFoundation; using System.Collections.Generic; diff --git a/src/CoreFoundation/CFPreferences.cs b/src/CoreFoundation/CFPreferences.cs index 3e6e56ed489d..896a65a29767 100644 --- a/src/CoreFoundation/CFPreferences.cs +++ b/src/CoreFoundation/CFPreferences.cs @@ -12,13 +12,6 @@ #nullable enable -using System; -using System.Runtime.InteropServices; - -using ObjCRuntime; -using Foundation; -using System.Runtime.Versioning; - namespace CoreFoundation { /// A collection of utility methods for setting Core Foundation preferences. /// To be added. diff --git a/src/CoreFoundation/CFPropertyList.cs b/src/CoreFoundation/CFPropertyList.cs index deb0e3593758..5051b3fcd76e 100644 --- a/src/CoreFoundation/CFPropertyList.cs +++ b/src/CoreFoundation/CFPropertyList.cs @@ -8,13 +8,6 @@ #nullable enable -using System; -using System.Runtime.InteropServices; -using System.Runtime.Versioning; - -using ObjCRuntime; -using Foundation; - namespace CoreFoundation { /// To be added. /// To be added. diff --git a/src/CoreFoundation/CFProxySupport.cs b/src/CoreFoundation/CFProxySupport.cs index d1fd4b868186..d52b9ffefbd1 100644 --- a/src/CoreFoundation/CFProxySupport.cs +++ b/src/CoreFoundation/CFProxySupport.cs @@ -27,15 +27,10 @@ #nullable enable -using System; using System.Net; using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; using System.Threading; using System.Threading.Tasks; -using System.Runtime.Versioning; -using ObjCRuntime; -using Foundation; using CFNetwork; namespace CoreFoundation { diff --git a/src/CoreFoundation/CFReadStream.cs b/src/CoreFoundation/CFReadStream.cs index 48039ca36c63..fdafebb94beb 100644 --- a/src/CoreFoundation/CFReadStream.cs +++ b/src/CoreFoundation/CFReadStream.cs @@ -29,13 +29,8 @@ #nullable enable -using System; using System.ComponentModel; -using System.Runtime.InteropServices; -using System.Runtime.Versioning; using CoreFoundation; -using Foundation; -using ObjCRuntime; using CFIndex = System.IntPtr; diff --git a/src/CoreFoundation/CFRunLoop.cs b/src/CoreFoundation/CFRunLoop.cs index 5bdb60a2dd61..ba237a02634a 100644 --- a/src/CoreFoundation/CFRunLoop.cs +++ b/src/CoreFoundation/CFRunLoop.cs @@ -30,13 +30,6 @@ #nullable enable -using System; -using System.Runtime.InteropServices; - -using ObjCRuntime; -using Foundation; -using System.Runtime.Versioning; - using CFIndex = System.IntPtr; #nullable enable diff --git a/src/CoreFoundation/CFSocket.cs b/src/CoreFoundation/CFSocket.cs index 93d915416c13..ebee556e6e50 100644 --- a/src/CoreFoundation/CFSocket.cs +++ b/src/CoreFoundation/CFSocket.cs @@ -29,16 +29,11 @@ #nullable enable -using System; using System.Net; using System.Net.Sockets; -using System.Runtime.InteropServices; -using System.Runtime.Versioning; using System.Threading; using CoreFoundation; -using Foundation; -using ObjCRuntime; namespace CoreFoundation { diff --git a/src/CoreFoundation/CFStream.cs b/src/CoreFoundation/CFStream.cs index 57c5fa521f54..9e75f4956020 100644 --- a/src/CoreFoundation/CFStream.cs +++ b/src/CoreFoundation/CFStream.cs @@ -32,14 +32,10 @@ #nullable enable -using System; using System.ComponentModel; using System.Net; using System.Net.Sockets; -using System.Runtime.InteropServices; using CFNetwork; -using ObjCRuntime; -using Foundation; using CFIndex = System.IntPtr; diff --git a/src/CoreFoundation/CFString.cs b/src/CoreFoundation/CFString.cs index 7b7445e96783..53822b59ec18 100644 --- a/src/CoreFoundation/CFString.cs +++ b/src/CoreFoundation/CFString.cs @@ -32,13 +32,7 @@ // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // -using System; using System.Diagnostics.CodeAnalysis; -using System.Runtime.InteropServices; -using System.Runtime.Versioning; - -using ObjCRuntime; -using Foundation; #nullable enable diff --git a/src/CoreFoundation/CFType.cs b/src/CoreFoundation/CFType.cs index 7d28feaf57f6..bf6525055de1 100644 --- a/src/CoreFoundation/CFType.cs +++ b/src/CoreFoundation/CFType.cs @@ -4,13 +4,7 @@ #nullable enable -using System; -using System.Runtime.InteropServices; -using System.Runtime.Versioning; - using CoreFoundation; -using Foundation; -using ObjCRuntime; namespace CoreFoundation { /// Base type for some Core Foundation classes, such as and . diff --git a/src/CoreFoundation/CFUrl.cs b/src/CoreFoundation/CFUrl.cs index 4a7781253347..9a168aee7fc5 100644 --- a/src/CoreFoundation/CFUrl.cs +++ b/src/CoreFoundation/CFUrl.cs @@ -30,11 +30,6 @@ #nullable enable -using System; -using System.Runtime.InteropServices; -using Foundation; -using ObjCRuntime; - namespace CoreFoundation { // CFURLPathStyle -> CFIndex -> CFURL.h diff --git a/src/CoreFoundation/CFWriteStream.cs b/src/CoreFoundation/CFWriteStream.cs index 0f28cf2b304d..2688ffda8f30 100644 --- a/src/CoreFoundation/CFWriteStream.cs +++ b/src/CoreFoundation/CFWriteStream.cs @@ -29,13 +29,8 @@ #nullable enable -using System; using System.ComponentModel; -using System.Runtime.InteropServices; using CoreFoundation; -using Foundation; -using ObjCRuntime; -using System.Runtime.Versioning; using CFIndex = System.IntPtr; diff --git a/src/CoreFoundation/CGAffineTransformComponents.cs b/src/CoreFoundation/CGAffineTransformComponents.cs index 6a5ff280a23c..73f6b0102839 100644 --- a/src/CoreFoundation/CGAffineTransformComponents.cs +++ b/src/CoreFoundation/CGAffineTransformComponents.cs @@ -2,10 +2,6 @@ #nullable enable -using System; -using System.Runtime.InteropServices; -using System.Runtime.Versioning; - using CoreGraphics; namespace CoreFoundation { diff --git a/src/CoreFoundation/Dispatch.cs b/src/CoreFoundation/Dispatch.cs index 7e065470b34d..8dedc91837ab 100644 --- a/src/CoreFoundation/Dispatch.cs +++ b/src/CoreFoundation/Dispatch.cs @@ -33,12 +33,8 @@ #nullable enable -using System; using System.ComponentModel; -using System.Runtime.InteropServices; using System.Threading; -using ObjCRuntime; -using Foundation; namespace CoreFoundation { diff --git a/src/CoreFoundation/DispatchBlock.cs b/src/CoreFoundation/DispatchBlock.cs index 1bf61d1477bc..129896677073 100644 --- a/src/CoreFoundation/DispatchBlock.cs +++ b/src/CoreFoundation/DispatchBlock.cs @@ -10,11 +10,7 @@ #nullable enable -using System; -using System.Runtime.InteropServices; using System.Threading; -using ObjCRuntime; -using Foundation; namespace CoreFoundation { #if !COREBUILD diff --git a/src/CoreFoundation/DispatchData.cs b/src/CoreFoundation/DispatchData.cs index 3f90371265cf..2293909cbd83 100644 --- a/src/CoreFoundation/DispatchData.cs +++ b/src/CoreFoundation/DispatchData.cs @@ -28,12 +28,8 @@ #nullable enable -using System; using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; using System.Threading; -using ObjCRuntime; -using Foundation; namespace CoreFoundation { diff --git a/src/CoreFoundation/DispatchIO.cs b/src/CoreFoundation/DispatchIO.cs index f6e304fd4c12..dbf3ac6777a5 100644 --- a/src/CoreFoundation/DispatchIO.cs +++ b/src/CoreFoundation/DispatchIO.cs @@ -33,12 +33,7 @@ #nullable enable -using System; -using System.Runtime.InteropServices; using System.Threading; -using System.Runtime.Versioning; -using ObjCRuntime; -using Foundation; namespace CoreFoundation { diff --git a/src/CoreFoundation/DispatchQueueSynchronizationContext.cs b/src/CoreFoundation/DispatchQueueSynchronizationContext.cs index 2622b3ff8754..d4ad1b4ac9ad 100644 --- a/src/CoreFoundation/DispatchQueueSynchronizationContext.cs +++ b/src/CoreFoundation/DispatchQueueSynchronizationContext.cs @@ -29,7 +29,6 @@ #nullable enable -using System; using System.Threading; namespace CoreFoundation { diff --git a/src/CoreFoundation/DispatchSource.cs b/src/CoreFoundation/DispatchSource.cs index e158fa7a430f..926dcf971f64 100644 --- a/src/CoreFoundation/DispatchSource.cs +++ b/src/CoreFoundation/DispatchSource.cs @@ -10,13 +10,8 @@ #nullable enable -using System; -using System.Runtime.InteropServices; using System.Threading; using System.IO; -using System.Runtime.Versioning; -using ObjCRuntime; -using Foundation; using dispatch_source_type_t = System.IntPtr; using dispatch_source_t = System.IntPtr; using dispatch_queue_t = System.IntPtr; diff --git a/src/CoreFoundation/NativeObject.cs b/src/CoreFoundation/NativeObject.cs index 1904c0d309f2..be908ae3a8dd 100644 --- a/src/CoreFoundation/NativeObject.cs +++ b/src/CoreFoundation/NativeObject.cs @@ -8,11 +8,6 @@ // // Copyright 2018, 2020 Microsoft Corp // -using System; -using System.Runtime.InteropServices; -using System.Runtime.Versioning; -using ObjCRuntime; -using Foundation; #nullable enable diff --git a/src/CoreFoundation/OSLog.cs b/src/CoreFoundation/OSLog.cs index f31b15b9e71e..a8af7185d3b2 100644 --- a/src/CoreFoundation/OSLog.cs +++ b/src/CoreFoundation/OSLog.cs @@ -22,11 +22,6 @@ #nullable enable -using System; - -using Foundation; -using ObjCRuntime; -using System.Runtime.InteropServices; using System.Collections.Generic; namespace CoreFoundation { diff --git a/src/CoreGraphics/CGAffineTransform.cs b/src/CoreGraphics/CGAffineTransform.cs index f557ce8eb182..bba2200de95c 100644 --- a/src/CoreGraphics/CGAffineTransform.cs +++ b/src/CoreGraphics/CGAffineTransform.cs @@ -28,14 +28,9 @@ #nullable enable -using System; using System.ComponentModel; -using System.Runtime.InteropServices; -using System.Runtime.Versioning; using CoreFoundation; -using ObjCRuntime; -using Foundation; namespace CoreGraphics { diff --git a/src/CoreGraphics/CGBitmapContext.cs b/src/CoreGraphics/CGBitmapContext.cs index f7f5d19274c6..08a78ad064a5 100644 --- a/src/CoreGraphics/CGBitmapContext.cs +++ b/src/CoreGraphics/CGBitmapContext.cs @@ -26,15 +26,9 @@ // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // -#nullable enable - -using System; using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using System.Runtime.Versioning; -using ObjCRuntime; -using Foundation; +#nullable enable namespace CoreGraphics { /// CGContext backed by an in-memory bitmap. diff --git a/src/CoreGraphics/CGColor.cs b/src/CoreGraphics/CGColor.cs index fe859b83a3ce..3eb94a34e4ca 100644 --- a/src/CoreGraphics/CGColor.cs +++ b/src/CoreGraphics/CGColor.cs @@ -28,12 +28,7 @@ #nullable enable -using System; -using System.Runtime.InteropServices; - -using ObjCRuntime; using CoreFoundation; -using Foundation; namespace CoreGraphics { /// Color structure. diff --git a/src/CoreGraphics/CGColorConversionInfo.cs b/src/CoreGraphics/CGColorConversionInfo.cs index 5eb4b4cf4911..028253cbea0d 100644 --- a/src/CoreGraphics/CGColorConversionInfo.cs +++ b/src/CoreGraphics/CGColorConversionInfo.cs @@ -6,14 +6,8 @@ #nullable enable -using System; -using System.Runtime.InteropServices; - -using ObjCRuntime; - #if !COREBUILD using CoreFoundation; -using Foundation; #endif namespace CoreGraphics { diff --git a/src/CoreGraphics/CGColorSpace.cs b/src/CoreGraphics/CGColorSpace.cs index 50be5dd152af..51f8f5f1a9f9 100644 --- a/src/CoreGraphics/CGColorSpace.cs +++ b/src/CoreGraphics/CGColorSpace.cs @@ -28,13 +28,9 @@ #nullable enable -using System; using System.ComponentModel; -using System.Runtime.InteropServices; using CoreFoundation; -using ObjCRuntime; -using Foundation; namespace CoreGraphics { diff --git a/src/CoreGraphics/CGContext.cs b/src/CoreGraphics/CGContext.cs index 211206a134de..58a8cd2577cc 100644 --- a/src/CoreGraphics/CGContext.cs +++ b/src/CoreGraphics/CGContext.cs @@ -28,12 +28,7 @@ #nullable enable -using System; -using System.Runtime.InteropServices; - using CoreFoundation; -using ObjCRuntime; -using Foundation; namespace CoreGraphics { #if __MACOS__ diff --git a/src/CoreGraphics/CGContextPDF.cs b/src/CoreGraphics/CGContextPDF.cs index dddf5a6505ab..3cac4382cc21 100644 --- a/src/CoreGraphics/CGContextPDF.cs +++ b/src/CoreGraphics/CGContextPDF.cs @@ -28,11 +28,6 @@ #nullable enable -using System; -using System.Runtime.InteropServices; - -using ObjCRuntime; -using Foundation; using CoreFoundation; namespace CoreGraphics { diff --git a/src/CoreGraphics/CGDataConsumer.cs b/src/CoreGraphics/CGDataConsumer.cs index 1fa11a1910b0..a7c269ebdb5b 100644 --- a/src/CoreGraphics/CGDataConsumer.cs +++ b/src/CoreGraphics/CGDataConsumer.cs @@ -28,12 +28,7 @@ #nullable enable -using System; -using System.Runtime.InteropServices; - using CoreFoundation; -using ObjCRuntime; -using Foundation; namespace CoreGraphics { // CGDataConsumer.h diff --git a/src/CoreGraphics/CGDataProvider.cs b/src/CoreGraphics/CGDataProvider.cs index 5c7319a44e65..8de2ce8cd961 100644 --- a/src/CoreGraphics/CGDataProvider.cs +++ b/src/CoreGraphics/CGDataProvider.cs @@ -28,13 +28,7 @@ #nullable enable -using System; -using System.Runtime.InteropServices; -using System.Runtime.Versioning; - using CoreFoundation; -using ObjCRuntime; -using Foundation; namespace CoreGraphics { /// A class that wraps a data source and exposes it to the CGImage class. diff --git a/src/CoreGraphics/CGDisplay.cs b/src/CoreGraphics/CGDisplay.cs index 5b36223d1560..c12167ae3a74 100644 --- a/src/CoreGraphics/CGDisplay.cs +++ b/src/CoreGraphics/CGDisplay.cs @@ -1,10 +1,6 @@ #nullable enable #if MONOMAC || __MACCATALYST__ -using System; -using System.Runtime.InteropServices; -using ObjCRuntime; -using Foundation; namespace CoreGraphics { /// To be added. diff --git a/src/CoreGraphics/CGEnums.cs b/src/CoreGraphics/CGEnums.cs index 0bbbae86150f..60dc2ccdf34e 100644 --- a/src/CoreGraphics/CGEnums.cs +++ b/src/CoreGraphics/CGEnums.cs @@ -9,10 +9,6 @@ #nullable enable -using System; -using System.Runtime.InteropServices; -using ObjCRuntime; - namespace CoreGraphics { public enum MatrixOrder { diff --git a/src/CoreGraphics/CGEvent.cs b/src/CoreGraphics/CGEvent.cs index ba75046a01b3..a5e7359d87b6 100644 --- a/src/CoreGraphics/CGEvent.cs +++ b/src/CoreGraphics/CGEvent.cs @@ -12,13 +12,9 @@ #if MONOMAC || __MACCATALYST__ -using System; using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; using CoreFoundation; -using ObjCRuntime; -using Foundation; namespace CoreGraphics { /// To be added. diff --git a/src/CoreGraphics/CGEventSource.cs b/src/CoreGraphics/CGEventSource.cs index 840f5d9d13ff..3557e5ecf8ce 100644 --- a/src/CoreGraphics/CGEventSource.cs +++ b/src/CoreGraphics/CGEventSource.cs @@ -12,12 +12,7 @@ #if MONOMAC || __MACCATALYST__ -using System; -using System.Runtime.InteropServices; - using CoreFoundation; -using ObjCRuntime; -using Foundation; namespace CoreGraphics { /// To be added. diff --git a/src/CoreGraphics/CGEventTypes.cs b/src/CoreGraphics/CGEventTypes.cs index 184ea8053395..73f1af09291f 100644 --- a/src/CoreGraphics/CGEventTypes.cs +++ b/src/CoreGraphics/CGEventTypes.cs @@ -12,14 +12,10 @@ #if MONOMAC || __MACCATALYST__ -using System; -using System.Runtime.InteropServices; #if !NO_SYSTEM_DRAWING using System.Drawing; #endif using CoreFoundation; -using ObjCRuntime; -using Foundation; namespace CoreGraphics { diff --git a/src/CoreGraphics/CGFont.cs b/src/CoreGraphics/CGFont.cs index 3840f08b9b40..b286fe47dd04 100644 --- a/src/CoreGraphics/CGFont.cs +++ b/src/CoreGraphics/CGFont.cs @@ -28,12 +28,6 @@ #nullable enable -using System; -using System.Runtime.InteropServices; -using System.Runtime.Versioning; - -using ObjCRuntime; -using Foundation; using CoreFoundation; using CoreText; diff --git a/src/CoreGraphics/CGFunction.cs b/src/CoreGraphics/CGFunction.cs index 0c06f92bb9ab..834ed043b4ac 100644 --- a/src/CoreGraphics/CGFunction.cs +++ b/src/CoreGraphics/CGFunction.cs @@ -28,13 +28,7 @@ #nullable enable -using System; -using System.Runtime.InteropServices; -using System.Runtime.Versioning; - using CoreFoundation; -using ObjCRuntime; -using Foundation; namespace CoreGraphics { /// A callback function to be used with various functions. diff --git a/src/CoreGraphics/CGGeometry.cs b/src/CoreGraphics/CGGeometry.cs index abb417cdd892..c67d16f7a2eb 100644 --- a/src/CoreGraphics/CGGeometry.cs +++ b/src/CoreGraphics/CGGeometry.cs @@ -28,13 +28,7 @@ #nullable enable -using System; using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using System.Runtime.Versioning; - -using ObjCRuntime; -using Foundation; namespace CoreGraphics { diff --git a/src/CoreGraphics/CGGradient.cs b/src/CoreGraphics/CGGradient.cs index 425020bd8507..83734a6c187a 100644 --- a/src/CoreGraphics/CGGradient.cs +++ b/src/CoreGraphics/CGGradient.cs @@ -28,13 +28,7 @@ #nullable enable -using System; -using System.Runtime.InteropServices; -using System.Runtime.Versioning; - -using ObjCRuntime; using CoreFoundation; -using Foundation; namespace CoreGraphics { diff --git a/src/CoreGraphics/CGImage.cs b/src/CoreGraphics/CGImage.cs index c616cbb7a260..0d2fa57bdd3c 100644 --- a/src/CoreGraphics/CGImage.cs +++ b/src/CoreGraphics/CGImage.cs @@ -28,12 +28,7 @@ #nullable enable -using System; -using System.Runtime.InteropServices; - using CoreFoundation; -using ObjCRuntime; -using Foundation; namespace CoreGraphics { diff --git a/src/CoreGraphics/CGImageProperties.cs b/src/CoreGraphics/CGImageProperties.cs index d52e6a2858ec..4062d37cce00 100644 --- a/src/CoreGraphics/CGImageProperties.cs +++ b/src/CoreGraphics/CGImageProperties.cs @@ -27,12 +27,7 @@ #nullable enable -using System; -using System.Runtime.Versioning; - -using Foundation; using CoreFoundation; -using ObjCRuntime; using CoreImage; #if !COREBUILD using Keys = ImageIO.CGImageProperties; diff --git a/src/CoreGraphics/CGLayer.cs b/src/CoreGraphics/CGLayer.cs index a21e969fceee..e0f4bde27061 100644 --- a/src/CoreGraphics/CGLayer.cs +++ b/src/CoreGraphics/CGLayer.cs @@ -28,13 +28,7 @@ #nullable enable -using System; -using System.Runtime.InteropServices; -using System.Runtime.Versioning; - using CoreFoundation; -using ObjCRuntime; -using Foundation; namespace CoreGraphics { /// A hardware accelerated context. diff --git a/src/CoreGraphics/CGPDFArray.cs b/src/CoreGraphics/CGPDFArray.cs index 19532768e934..7fdfc68275ca 100644 --- a/src/CoreGraphics/CGPDFArray.cs +++ b/src/CoreGraphics/CGPDFArray.cs @@ -30,11 +30,7 @@ #nullable enable -using System; using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using Foundation; -using ObjCRuntime; using CoreFoundation; namespace CoreGraphics { diff --git a/src/CoreGraphics/CGPDFContentStream.cs b/src/CoreGraphics/CGPDFContentStream.cs index a32e4521b291..ca68939e87dd 100644 --- a/src/CoreGraphics/CGPDFContentStream.cs +++ b/src/CoreGraphics/CGPDFContentStream.cs @@ -8,11 +8,6 @@ #nullable enable -using System; -using System.Runtime.InteropServices; -using System.Runtime.Versioning; -using Foundation; -using ObjCRuntime; using CoreFoundation; namespace CoreGraphics { diff --git a/src/CoreGraphics/CGPDFDictionary.cs b/src/CoreGraphics/CGPDFDictionary.cs index a9165676a01c..36a00838495b 100644 --- a/src/CoreGraphics/CGPDFDictionary.cs +++ b/src/CoreGraphics/CGPDFDictionary.cs @@ -30,12 +30,7 @@ #nullable enable -using System; using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using System.Runtime.Versioning; -using Foundation; -using ObjCRuntime; using CoreFoundation; namespace CoreGraphics { diff --git a/src/CoreGraphics/CGPDFDocument.cs b/src/CoreGraphics/CGPDFDocument.cs index a62d6cfa84d3..0a2788f1f7ad 100644 --- a/src/CoreGraphics/CGPDFDocument.cs +++ b/src/CoreGraphics/CGPDFDocument.cs @@ -28,11 +28,7 @@ #nullable enable -using System; using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using Foundation; -using ObjCRuntime; using CoreFoundation; namespace CoreGraphics { diff --git a/src/CoreGraphics/CGPDFObject.cs b/src/CoreGraphics/CGPDFObject.cs index 5bc4b9d6a499..a7f5270d3154 100644 --- a/src/CoreGraphics/CGPDFObject.cs +++ b/src/CoreGraphics/CGPDFObject.cs @@ -30,13 +30,8 @@ #nullable enable -using System; using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using Foundation; -using ObjCRuntime; using CoreFoundation; -using System.Runtime.Versioning; namespace CoreGraphics { /// Class that represents various objects in a PDF document. diff --git a/src/CoreGraphics/CGPDFOperatorTable.cs b/src/CoreGraphics/CGPDFOperatorTable.cs index 0de0dfc3d849..6ea280805742 100644 --- a/src/CoreGraphics/CGPDFOperatorTable.cs +++ b/src/CoreGraphics/CGPDFOperatorTable.cs @@ -8,12 +8,7 @@ #nullable enable -using System; using System.Collections.Generic; -using System.Runtime.Versioning; -using System.Runtime.InteropServices; -using Foundation; -using ObjCRuntime; using CoreFoundation; namespace CoreGraphics { diff --git a/src/CoreGraphics/CGPDFPage-2.cs b/src/CoreGraphics/CGPDFPage-2.cs index 112753756ba1..9cbf8f4c5710 100644 --- a/src/CoreGraphics/CGPDFPage-2.cs +++ b/src/CoreGraphics/CGPDFPage-2.cs @@ -28,12 +28,6 @@ #nullable enable -using System; -using System.Runtime.InteropServices; - -using Foundation; -using ObjCRuntime; - namespace CoreGraphics { // untyped enum -> CGPDFPage.h diff --git a/src/CoreGraphics/CGPDFPage.cs b/src/CoreGraphics/CGPDFPage.cs index ef772a06a8e9..9a0e7914bbbe 100644 --- a/src/CoreGraphics/CGPDFPage.cs +++ b/src/CoreGraphics/CGPDFPage.cs @@ -28,12 +28,7 @@ #nullable enable -using System; -using System.Runtime.InteropServices; - using CoreFoundation; -using ObjCRuntime; -using System.Runtime.Versioning; namespace CoreGraphics { /// A PDF Page in a PDF Document. diff --git a/src/CoreGraphics/CGPDFScanner.cs b/src/CoreGraphics/CGPDFScanner.cs index dd162b45f4e1..1fda82f13338 100644 --- a/src/CoreGraphics/CGPDFScanner.cs +++ b/src/CoreGraphics/CGPDFScanner.cs @@ -8,13 +8,8 @@ #nullable enable -using System; using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using System.Runtime.Versioning; using System.Text; -using Foundation; -using ObjCRuntime; using CoreFoundation; namespace CoreGraphics { diff --git a/src/CoreGraphics/CGPDFStream.cs b/src/CoreGraphics/CGPDFStream.cs index ec00e4104f92..b7aab2dab252 100644 --- a/src/CoreGraphics/CGPDFStream.cs +++ b/src/CoreGraphics/CGPDFStream.cs @@ -28,12 +28,7 @@ #nullable enable -using System; using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using System.Runtime.Versioning; -using Foundation; -using ObjCRuntime; using CoreFoundation; namespace CoreGraphics { diff --git a/src/CoreGraphics/CGPDFString.cs b/src/CoreGraphics/CGPDFString.cs index ac2e76dec073..afa804d92f53 100644 --- a/src/CoreGraphics/CGPDFString.cs +++ b/src/CoreGraphics/CGPDFString.cs @@ -29,10 +29,6 @@ #nullable enable -using System; -using System.Runtime.InteropServices; - -using ObjCRuntime; using CoreFoundation; namespace CoreGraphics { diff --git a/src/CoreGraphics/CGPath.cs b/src/CoreGraphics/CGPath.cs index 1c437915fd4e..2b8844470b15 100644 --- a/src/CoreGraphics/CGPath.cs +++ b/src/CoreGraphics/CGPath.cs @@ -28,16 +28,12 @@ #nullable enable -using System; using System.ComponentModel; using System.Diagnostics; using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; using CoreFoundation; -using ObjCRuntime; -using Foundation; namespace CoreGraphics { diff --git a/src/CoreGraphics/CGPattern.cs b/src/CoreGraphics/CGPattern.cs index b0895c2343bb..e32c9896d223 100644 --- a/src/CoreGraphics/CGPattern.cs +++ b/src/CoreGraphics/CGPattern.cs @@ -28,13 +28,7 @@ #nullable enable -using System; -using System.Runtime.InteropServices; -using System.Runtime.Versioning; - using CoreFoundation; -using ObjCRuntime; -using Foundation; namespace CoreGraphics { diff --git a/src/CoreGraphics/CGPdfTagType.cs b/src/CoreGraphics/CGPdfTagType.cs index 11dbd5460b94..e21a474f0c19 100644 --- a/src/CoreGraphics/CGPdfTagType.cs +++ b/src/CoreGraphics/CGPdfTagType.cs @@ -9,10 +9,6 @@ #nullable enable -using System; -using System.Runtime.InteropServices; -using ObjCRuntime; - namespace CoreGraphics { [SupportedOSPlatform ("macos")] diff --git a/src/CoreGraphics/CGPoint.cs b/src/CoreGraphics/CGPoint.cs index 80079076b9d6..ddcf9733786a 100644 --- a/src/CoreGraphics/CGPoint.cs +++ b/src/CoreGraphics/CGPoint.cs @@ -1,18 +1,13 @@ #nullable enable -using System; using System.Globalization; using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using System.Runtime.Versioning; #if !NO_SYSTEM_DRAWING using System.Drawing; #endif using CoreFoundation; -using Foundation; -using ObjCRuntime; namespace CoreGraphics { /// Structure defining a 2D point. diff --git a/src/CoreGraphics/CGRect.cs b/src/CoreGraphics/CGRect.cs index 3bf662ef21b7..5915de134f1a 100644 --- a/src/CoreGraphics/CGRect.cs +++ b/src/CoreGraphics/CGRect.cs @@ -1,18 +1,13 @@ #nullable enable -using System; using System.Globalization; using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using System.Runtime.Versioning; #if !NO_SYSTEM_DRAWING using System.Drawing; #endif using CoreFoundation; -using Foundation; -using ObjCRuntime; namespace CoreGraphics { diff --git a/src/CoreGraphics/CGSession.cs b/src/CoreGraphics/CGSession.cs index eaf8cb15858f..2c37b8c96e2a 100644 --- a/src/CoreGraphics/CGSession.cs +++ b/src/CoreGraphics/CGSession.cs @@ -1,10 +1,5 @@ #if __MACOS__ || __MACCATALYST__ -using System.Runtime.InteropServices; - -using Foundation; -using ObjCRuntime; - namespace CoreGraphics { [SupportedOSPlatform ("maccatalyst")] diff --git a/src/CoreGraphics/CGShading.cs b/src/CoreGraphics/CGShading.cs index cb088db995c0..538e4a058be0 100644 --- a/src/CoreGraphics/CGShading.cs +++ b/src/CoreGraphics/CGShading.cs @@ -28,13 +28,7 @@ #nullable enable -using System; -using System.Runtime.InteropServices; -using System.Runtime.Versioning; - using CoreFoundation; -using ObjCRuntime; -using Foundation; namespace CoreGraphics { /// A type that represents a Quartz shading. diff --git a/src/CoreGraphics/CGSize.cs b/src/CoreGraphics/CGSize.cs index cc5c79acf5e2..042b8587e542 100644 --- a/src/CoreGraphics/CGSize.cs +++ b/src/CoreGraphics/CGSize.cs @@ -1,18 +1,13 @@ #nullable enable -using System; using System.Globalization; using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using System.Runtime.Versioning; #if !NO_SYSTEM_DRAWING using System.Drawing; #endif using CoreFoundation; -using Foundation; -using ObjCRuntime; namespace CoreGraphics { diff --git a/src/CoreGraphics/CGVector.cs b/src/CoreGraphics/CGVector.cs index 517b5d59b176..a4158592da7c 100644 --- a/src/CoreGraphics/CGVector.cs +++ b/src/CoreGraphics/CGVector.cs @@ -28,11 +28,7 @@ #nullable enable -using System; using System.Globalization; -using System.Runtime.InteropServices; -using Foundation; -using ObjCRuntime; using CoreFoundation; namespace CoreGraphics { diff --git a/src/CoreGraphics/NSValue.cs b/src/CoreGraphics/NSValue.cs index ab95a981e7d6..d8b7e11aa2b8 100644 --- a/src/CoreGraphics/NSValue.cs +++ b/src/CoreGraphics/NSValue.cs @@ -1,10 +1,7 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -using System; -using System.Runtime.InteropServices; using CoreGraphics; -using ObjCRuntime; #nullable enable diff --git a/src/CoreGraphics/NativeDrawingMethods.cs b/src/CoreGraphics/NativeDrawingMethods.cs index e2a14465b0de..66651ed69020 100644 --- a/src/CoreGraphics/NativeDrawingMethods.cs +++ b/src/CoreGraphics/NativeDrawingMethods.cs @@ -1,8 +1,4 @@ -using System; using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -using ObjCRuntime; #nullable enable diff --git a/src/CoreHaptics/Enums.cs b/src/CoreHaptics/Enums.cs index 612689087910..d4379516a33a 100644 --- a/src/CoreHaptics/Enums.cs +++ b/src/CoreHaptics/Enums.cs @@ -6,9 +6,6 @@ // // Copyright 2019 Microsoft Corporation All rights reserved. // -using System; -using Foundation; -using ObjCRuntime; #nullable enable diff --git a/src/CoreImage/CIColor.cs b/src/CoreImage/CIColor.cs index b949ba6a78a3..b8cf66cc24cf 100644 --- a/src/CoreImage/CIColor.cs +++ b/src/CoreImage/CIColor.cs @@ -6,10 +6,7 @@ // // Copyright 2014 Xamarin Inc. // -using System; using System.Diagnostics; -using Foundation; -using ObjCRuntime; using CoreGraphics; #if !MONOMAC using UIKit; diff --git a/src/CoreImage/CIContext.cs b/src/CoreImage/CIContext.cs index 1723952cd3c6..10baa88ca773 100644 --- a/src/CoreImage/CIContext.cs +++ b/src/CoreImage/CIContext.cs @@ -24,13 +24,11 @@ // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // -using System; + using System.ComponentModel; -using Foundation; using CoreGraphics; using CoreFoundation; -using ObjCRuntime; using Metal; #if HAS_OPENGLES using OpenGLES; diff --git a/src/CoreImage/CIDetector.cs b/src/CoreImage/CIDetector.cs index bf5fee5375bd..eb198712b184 100644 --- a/src/CoreImage/CIDetector.cs +++ b/src/CoreImage/CIDetector.cs @@ -25,9 +25,6 @@ // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // -using System; -using Foundation; - #nullable enable namespace CoreImage { diff --git a/src/CoreImage/CIDetectorOptions.cs b/src/CoreImage/CIDetectorOptions.cs index 627bb08a49eb..857711acc3c8 100644 --- a/src/CoreImage/CIDetectorOptions.cs +++ b/src/CoreImage/CIDetectorOptions.cs @@ -5,10 +5,7 @@ // Copyright 2013, 2016 Xamarin, Inc. // -using System; using System.Collections.Generic; -using Foundation; -using ObjCRuntime; #nullable enable diff --git a/src/CoreImage/CIFilter.cs b/src/CoreImage/CIFilter.cs index 21da10ca0375..1aeafbbcdea3 100644 --- a/src/CoreImage/CIFilter.cs +++ b/src/CoreImage/CIFilter.cs @@ -106,11 +106,8 @@ // CIBlendWithBlueMask // CIBlendWithRedMask // -using System; using System.Diagnostics; using CoreFoundation; -using Foundation; -using ObjCRuntime; using CoreGraphics; #if !MONOMAC using UIKit; diff --git a/src/CoreImage/CIImage.cs b/src/CoreImage/CIImage.cs index 6dc75dc59c9f..bdfeec9c541e 100644 --- a/src/CoreImage/CIImage.cs +++ b/src/CoreImage/CIImage.cs @@ -22,11 +22,8 @@ // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // -using System; -using Foundation; using CoreFoundation; using CoreGraphics; -using ObjCRuntime; #if !MONOMAC using UIKit; using CoreVideo; diff --git a/src/CoreImage/CIImageInitializationOptions.cs b/src/CoreImage/CIImageInitializationOptions.cs index f7ba9a4e61e3..175ce3f45db3 100644 --- a/src/CoreImage/CIImageInitializationOptions.cs +++ b/src/CoreImage/CIImageInitializationOptions.cs @@ -25,12 +25,7 @@ // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // -using System; -using System.Runtime.Versioning; - -using Foundation; using CoreFoundation; -using ObjCRuntime; using CoreGraphics; #nullable enable diff --git a/src/CoreImage/CISampler.cs b/src/CoreImage/CISampler.cs index 9fb6e4887c61..ad1ae7ee7466 100644 --- a/src/CoreImage/CISampler.cs +++ b/src/CoreImage/CISampler.cs @@ -25,12 +25,8 @@ // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // -using System; -using Foundation; using CoreGraphics; using CoreFoundation; -using ObjCRuntime; -using System.Runtime.Versioning; #nullable enable diff --git a/src/CoreImage/CIVector.cs b/src/CoreImage/CIVector.cs index 5fe56643115c..8270b1ecb85b 100644 --- a/src/CoreImage/CIVector.cs +++ b/src/CoreImage/CIVector.cs @@ -26,9 +26,6 @@ // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // -using System; -using Foundation; -using ObjCRuntime; #nullable enable diff --git a/src/CoreImage/Enums.cs b/src/CoreImage/Enums.cs index 8713e1f3eb92..ded283a37abc 100644 --- a/src/CoreImage/Enums.cs +++ b/src/CoreImage/Enums.cs @@ -21,9 +21,6 @@ // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // -using System; -using ObjCRuntime; - #nullable enable namespace CoreImage { diff --git a/src/CoreLocation/CLBeaconRegion.cs b/src/CoreLocation/CLBeaconRegion.cs index cc4657473cc7..4546c91c37b7 100644 --- a/src/CoreLocation/CLBeaconRegion.cs +++ b/src/CoreLocation/CLBeaconRegion.cs @@ -2,11 +2,6 @@ #if __IOS__ || __MACCATALYST__ || __MACOS__ -using System; - -using Foundation; -using ObjCRuntime; - #nullable enable namespace CoreLocation { diff --git a/src/CoreLocation/CLEnums.cs b/src/CoreLocation/CLEnums.cs index 62d4b13ea189..60e3c155b38b 100644 --- a/src/CoreLocation/CLEnums.cs +++ b/src/CoreLocation/CLEnums.cs @@ -29,8 +29,6 @@ // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // -using System; -using ObjCRuntime; #nullable enable diff --git a/src/CoreLocation/CLLocationManager.cs b/src/CoreLocation/CLLocationManager.cs index 022fadf30655..40059665da6b 100644 --- a/src/CoreLocation/CLLocationManager.cs +++ b/src/CoreLocation/CLLocationManager.cs @@ -31,13 +31,10 @@ #nullable enable -using System; #if !MONOMAC using UIKit; #endif -using Foundation; using CoreLocation; -using ObjCRuntime; namespace CoreLocation { #if __TVOS__ diff --git a/src/CoreLocation/CoreLocation.cs b/src/CoreLocation/CoreLocation.cs index 3d95c34abd9e..9874d9fcc82e 100644 --- a/src/CoreLocation/CoreLocation.cs +++ b/src/CoreLocation/CoreLocation.cs @@ -32,10 +32,6 @@ #nullable enable -using System; -using System.Runtime.InteropServices; - -using ObjCRuntime; #if IOS && !COREBUILD using Contacts; using Intents; diff --git a/src/CoreLocation/NSValue.cs b/src/CoreLocation/NSValue.cs index 67adc65c5269..59ae175146bd 100644 --- a/src/CoreLocation/NSValue.cs +++ b/src/CoreLocation/NSValue.cs @@ -1,9 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -using System; -using System.Runtime.InteropServices; -using ObjCRuntime; using CoreLocation; #nullable enable diff --git a/src/CoreML/MLDictionaryFeatureProvider.cs b/src/CoreML/MLDictionaryFeatureProvider.cs index 5f2180945002..f496b155f846 100644 --- a/src/CoreML/MLDictionaryFeatureProvider.cs +++ b/src/CoreML/MLDictionaryFeatureProvider.cs @@ -9,10 +9,6 @@ #nullable enable -using System; -using Foundation; -using ObjCRuntime; - namespace CoreML { public partial class MLDictionaryFeatureProvider { diff --git a/src/CoreML/MLModel.cs b/src/CoreML/MLModel.cs index 811795521557..539aef822cf0 100644 --- a/src/CoreML/MLModel.cs +++ b/src/CoreML/MLModel.cs @@ -1,7 +1,3 @@ -using System; -using System.Runtime.InteropServices; -using Foundation; -using ObjCRuntime; #nullable enable diff --git a/src/CoreML/MLMultiArray.cs b/src/CoreML/MLMultiArray.cs index e7dc05f42553..a2c747cff417 100644 --- a/src/CoreML/MLMultiArray.cs +++ b/src/CoreML/MLMultiArray.cs @@ -9,10 +9,6 @@ #nullable enable -using System; -using Foundation; -using ObjCRuntime; - namespace CoreML { public partial class MLMultiArray { static NSNumber [] ConvertArray (nint [] value) diff --git a/src/CoreML/MLMultiArrayConstraint.cs b/src/CoreML/MLMultiArrayConstraint.cs index 6715247a710f..6e537e37009a 100644 --- a/src/CoreML/MLMultiArrayConstraint.cs +++ b/src/CoreML/MLMultiArrayConstraint.cs @@ -9,10 +9,6 @@ #nullable enable -using System; -using Foundation; -using ObjCRuntime; - namespace CoreML { public partial class MLMultiArrayConstraint { /// Gets an array of array dimensions for the multidimensional arrays. diff --git a/src/CoreMedia/CMAttachmentBearer.cs b/src/CoreMedia/CMAttachmentBearer.cs index c3424353a9ee..447482d87b67 100644 --- a/src/CoreMedia/CMAttachmentBearer.cs +++ b/src/CoreMedia/CMAttachmentBearer.cs @@ -1,12 +1,8 @@ #nullable enable -using System; using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using Foundation; using CoreFoundation; -using ObjCRuntime; namespace CoreMedia { diff --git a/src/CoreMedia/CMBlockBuffer.cs b/src/CoreMedia/CMBlockBuffer.cs index 2bc6d0ef2659..f44278db6066 100644 --- a/src/CoreMedia/CMBlockBuffer.cs +++ b/src/CoreMedia/CMBlockBuffer.cs @@ -11,13 +11,9 @@ #nullable enable -using System; using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using Foundation; using CoreFoundation; -using ObjCRuntime; namespace CoreMedia { diff --git a/src/CoreMedia/CMBufferQueue.cs b/src/CoreMedia/CMBufferQueue.cs index a1d20c8b28e5..95ff6a1f9113 100644 --- a/src/CoreMedia/CMBufferQueue.cs +++ b/src/CoreMedia/CMBufferQueue.cs @@ -10,13 +10,9 @@ #nullable enable -using System; using System.Collections.Generic; -using System.Runtime.InteropServices; -using Foundation; using CoreFoundation; -using ObjCRuntime; namespace CoreMedia { diff --git a/src/CoreMedia/CMCustomBlockAllocator.cs b/src/CoreMedia/CMCustomBlockAllocator.cs index 2e2babcfdbac..6eb0bfe4d893 100644 --- a/src/CoreMedia/CMCustomBlockAllocator.cs +++ b/src/CoreMedia/CMCustomBlockAllocator.cs @@ -9,12 +9,7 @@ #nullable enable -using System; -using System.Runtime.InteropServices; - -using Foundation; using CoreFoundation; -using ObjCRuntime; namespace CoreMedia { diff --git a/src/CoreMedia/CMEnums.cs b/src/CoreMedia/CMEnums.cs index ea3b3dc0645d..22817a0fd282 100644 --- a/src/CoreMedia/CMEnums.cs +++ b/src/CoreMedia/CMEnums.cs @@ -7,10 +7,6 @@ // Copyright 2010-2011 Novell Inc // Copyright 2012-2014 Xamarin Inc // -using System; -using System.Runtime.InteropServices; -using Foundation; -using ObjCRuntime; #nullable enable diff --git a/src/CoreMedia/CMFormatDescription.cs b/src/CoreMedia/CMFormatDescription.cs index 1acd7cb990fc..a366f6e70f62 100644 --- a/src/CoreMedia/CMFormatDescription.cs +++ b/src/CoreMedia/CMFormatDescription.cs @@ -13,15 +13,11 @@ #nullable enable -using System; using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; using System.Collections.Generic; -using Foundation; using CoreFoundation; using CoreGraphics; -using ObjCRuntime; using CoreVideo; using AudioToolbox; diff --git a/src/CoreMedia/CMMemoryPool.cs b/src/CoreMedia/CMMemoryPool.cs index 86525f11aa76..1e81b2aa30bf 100644 --- a/src/CoreMedia/CMMemoryPool.cs +++ b/src/CoreMedia/CMMemoryPool.cs @@ -8,12 +8,7 @@ #nullable enable -using System; -using System.Runtime.InteropServices; - -using Foundation; using CoreFoundation; -using ObjCRuntime; namespace CoreMedia { diff --git a/src/CoreMedia/CMSampleBuffer.cs b/src/CoreMedia/CMSampleBuffer.cs index 83856fffa742..7e22ceaa91a0 100644 --- a/src/CoreMedia/CMSampleBuffer.cs +++ b/src/CoreMedia/CMSampleBuffer.cs @@ -10,15 +10,11 @@ #nullable enable -using System; using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; using System.Collections.Generic; using System.ComponentModel; -using Foundation; using CoreFoundation; -using ObjCRuntime; #if !COREBUILD using AudioToolbox; diff --git a/src/CoreMedia/CMSync.cs b/src/CoreMedia/CMSync.cs index e24f91bd622e..9ec764960b26 100644 --- a/src/CoreMedia/CMSync.cs +++ b/src/CoreMedia/CMSync.cs @@ -6,13 +6,9 @@ // Copyright 2012-2014 Xamarin Inc // -using System; using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using Foundation; using CoreFoundation; -using ObjCRuntime; #nullable enable diff --git a/src/CoreMedia/CMTag.cs b/src/CoreMedia/CMTag.cs index 2cb7263cc980..f9df9a6a65c3 100644 --- a/src/CoreMedia/CMTag.cs +++ b/src/CoreMedia/CMTag.cs @@ -1,10 +1,6 @@ using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using System.Runtime.Versioning; using CoreFoundation; -using Foundation; -using ObjCRuntime; namespace CoreMedia { /// A structure that is used to add additional data (tags) to a resource. diff --git a/src/CoreMedia/CMTagCollection.cs b/src/CoreMedia/CMTagCollection.cs index bbf7c8556008..85fe384024ce 100644 --- a/src/CoreMedia/CMTagCollection.cs +++ b/src/CoreMedia/CMTagCollection.cs @@ -1,10 +1,6 @@ using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using System.Runtime.Versioning; using CoreFoundation; -using Foundation; -using ObjCRuntime; namespace CoreMedia { /// A delegate that is used to iterate over a . diff --git a/src/CoreMedia/CMTaggedBufferGroup.cs b/src/CoreMedia/CMTaggedBufferGroup.cs index 906a9b06f042..9ddd56c2ce27 100644 --- a/src/CoreMedia/CMTaggedBufferGroup.cs +++ b/src/CoreMedia/CMTaggedBufferGroup.cs @@ -1,11 +1,7 @@ using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using System.Runtime.Versioning; using CoreFoundation; using CoreVideo; -using Foundation; -using ObjCRuntime; namespace CoreMedia { /// This class contains a list of pixel buffers or sample buffers, where each buffer is associated with a . diff --git a/src/CoreMedia/CMTextMarkupAttributes.cs b/src/CoreMedia/CMTextMarkupAttributes.cs index 2251c807d47c..d32323fe5caa 100644 --- a/src/CoreMedia/CMTextMarkupAttributes.cs +++ b/src/CoreMedia/CMTextMarkupAttributes.cs @@ -28,12 +28,7 @@ #nullable enable -using System; -using System.Runtime.InteropServices; - -using Foundation; using CoreFoundation; -using ObjCRuntime; namespace CoreMedia { diff --git a/src/CoreMedia/CMTime.cs b/src/CoreMedia/CMTime.cs index 0f5bca0a078d..7ee1ea21ed88 100644 --- a/src/CoreMedia/CMTime.cs +++ b/src/CoreMedia/CMTime.cs @@ -9,11 +9,7 @@ #nullable enable -using System; -using System.Runtime.InteropServices; using CoreFoundation; -using Foundation; -using ObjCRuntime; namespace CoreMedia { diff --git a/src/CoreMedia/CoreMedia.cs b/src/CoreMedia/CoreMedia.cs index 750bbcd84437..3259ae6d7ae9 100644 --- a/src/CoreMedia/CoreMedia.cs +++ b/src/CoreMedia/CoreMedia.cs @@ -10,11 +10,7 @@ #nullable enable -using System; -using System.Runtime.InteropServices; using CoreFoundation; -using Foundation; -using ObjCRuntime; namespace CoreMedia { diff --git a/src/CoreMedia/Enums.cs b/src/CoreMedia/Enums.cs index f163bdf9be18..605bde6d77bf 100644 --- a/src/CoreMedia/Enums.cs +++ b/src/CoreMedia/Enums.cs @@ -1,7 +1,3 @@ -using System; -using System.Runtime.InteropServices; -using Foundation; -using ObjCRuntime; #nullable enable diff --git a/src/CoreMedia/ICMAttachmentBearer.cs b/src/CoreMedia/ICMAttachmentBearer.cs index 81988932b22f..819a431b5f11 100644 --- a/src/CoreMedia/ICMAttachmentBearer.cs +++ b/src/CoreMedia/ICMAttachmentBearer.cs @@ -1,7 +1,5 @@ #nullable enable -using ObjCRuntime; - namespace CoreMedia { // empty interface used as a marker to state which CM objects DO support the API diff --git a/src/CoreMedia/NSValue.cs b/src/CoreMedia/NSValue.cs index 5c7143aedd36..2893fec6297d 100644 --- a/src/CoreMedia/NSValue.cs +++ b/src/CoreMedia/NSValue.cs @@ -1,9 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -using System; -using System.Runtime.InteropServices; -using ObjCRuntime; using CoreMedia; #nullable enable diff --git a/src/CoreMidi/MidiBluetoothDriver.cs b/src/CoreMidi/MidiBluetoothDriver.cs index 4a72bf41ec88..0f7d5e058b29 100644 --- a/src/CoreMidi/MidiBluetoothDriver.cs +++ b/src/CoreMidi/MidiBluetoothDriver.cs @@ -9,12 +9,7 @@ #nullable enable -using System; -using System.Runtime.InteropServices; - -using ObjCRuntime; using CoreFoundation; -using Foundation; namespace CoreMidi { [SupportedOSPlatform ("ios16.0")] diff --git a/src/CoreMidi/MidiCIDeviceIdentification.cs b/src/CoreMidi/MidiCIDeviceIdentification.cs index bd880da3fec3..d3ed6760ee6e 100644 --- a/src/CoreMidi/MidiCIDeviceIdentification.cs +++ b/src/CoreMidi/MidiCIDeviceIdentification.cs @@ -1,12 +1,8 @@ #if !TVOS #nullable enable -using System; using System.Diagnostics; -using System.Runtime.InteropServices; -using ObjCRuntime; using CoreFoundation; -using Foundation; namespace CoreMidi { diff --git a/src/CoreMidi/MidiServices.cs b/src/CoreMidi/MidiServices.cs index 43ded24ef76b..222de3179f4c 100644 --- a/src/CoreMidi/MidiServices.cs +++ b/src/CoreMidi/MidiServices.cs @@ -39,13 +39,9 @@ #nullable enable -using System; using System.ComponentModel; using System.Diagnostics; -using System.Runtime.InteropServices; -using ObjCRuntime; using CoreFoundation; -using Foundation; using MidiObjectRef = System.Int32; using MidiClientRef = System.Int32; diff --git a/src/CoreMidi/MidiStructs.cs b/src/CoreMidi/MidiStructs.cs index 390d427287ea..96f24b7987a0 100644 --- a/src/CoreMidi/MidiStructs.cs +++ b/src/CoreMidi/MidiStructs.cs @@ -1,12 +1,7 @@ #if !TVOS #nullable enable -using System; -using System.Runtime.InteropServices; - -using ObjCRuntime; using CoreFoundation; -using Foundation; using MidiObjectRef = System.Int32; using MidiClientRef = System.Int32; diff --git a/src/CoreMidi/MidiThruConnection.cs b/src/CoreMidi/MidiThruConnection.cs index 696f4f0be814..f76f7a06508f 100644 --- a/src/CoreMidi/MidiThruConnection.cs +++ b/src/CoreMidi/MidiThruConnection.cs @@ -9,15 +9,9 @@ #nullable enable -using System; -using System.Runtime.InteropServices; - -using ObjCRuntime; using CoreFoundation; -using Foundation; using MidiThruConnectionRef = System.UInt32; -using System.Runtime.Versioning; namespace CoreMidi { #if !COREBUILD diff --git a/src/CoreMidi/MidiThruConnectionParams.cs b/src/CoreMidi/MidiThruConnectionParams.cs index 5c3312778940..73952ec67437 100644 --- a/src/CoreMidi/MidiThruConnectionParams.cs +++ b/src/CoreMidi/MidiThruConnectionParams.cs @@ -9,14 +9,9 @@ #nullable enable -using System; using System.Collections.Generic; -using System.Runtime.InteropServices; -using System.Runtime.Versioning; -using ObjCRuntime; using CoreFoundation; -using Foundation; using MidiEndpointRef = System.Int32; using MidiUniqueID = System.Int32; diff --git a/src/CoreMotion/CMDeviceMotion.cs b/src/CoreMotion/CMDeviceMotion.cs index efc7aee4ece5..49feadefb8bc 100644 --- a/src/CoreMotion/CMDeviceMotion.cs +++ b/src/CoreMotion/CMDeviceMotion.cs @@ -5,9 +5,6 @@ #nullable enable -using System; -using System.Runtime.InteropServices; - namespace CoreMotion { // CMDeviceMotion.h diff --git a/src/CoreMotion/CMMagnetometer.cs b/src/CoreMotion/CMMagnetometer.cs index d82e8656c024..cbe11a4fd3e5 100644 --- a/src/CoreMotion/CMMagnetometer.cs +++ b/src/CoreMotion/CMMagnetometer.cs @@ -9,8 +9,6 @@ #nullable enable -using System.Runtime.InteropServices; - namespace CoreMotion { // CMMagnetometer.h diff --git a/src/CoreMotion/CMSensorDataList.cs b/src/CoreMotion/CMSensorDataList.cs index a263beb8c08d..385bb0afaa5c 100644 --- a/src/CoreMotion/CMSensorDataList.cs +++ b/src/CoreMotion/CMSensorDataList.cs @@ -12,9 +12,6 @@ #if !MONOMAC using System.Collections.Generic; -using System.Runtime.InteropServices; - -using Foundation; namespace CoreMotion { public partial class CMSensorDataList : IEnumerable { diff --git a/src/CoreMotion/Defs.cs b/src/CoreMotion/Defs.cs index 4d6302bb1a8a..293cd19e1fcd 100644 --- a/src/CoreMotion/Defs.cs +++ b/src/CoreMotion/Defs.cs @@ -4,13 +4,6 @@ #nullable enable -using System; -using System.Runtime.InteropServices; -using System.Runtime.Versioning; - -using Foundation; -using ObjCRuntime; - namespace CoreMotion { // CMAccelerometer.h diff --git a/src/CoreMotion/Extras.cs b/src/CoreMotion/Extras.cs index 401edbe2caea..e1a8772f71df 100644 --- a/src/CoreMotion/Extras.cs +++ b/src/CoreMotion/Extras.cs @@ -4,9 +4,6 @@ #nullable enable -using Foundation; -using System; - namespace CoreMotion { public partial class CMAccelerometerData { diff --git a/src/CoreServices/FSEvents.cs b/src/CoreServices/FSEvents.cs index f81edd4c1554..a1b41565c675 100644 --- a/src/CoreServices/FSEvents.cs +++ b/src/CoreServices/FSEvents.cs @@ -10,13 +10,9 @@ #if MONOMAC -using System; using System.Collections.Generic; -using System.Runtime.InteropServices; -using ObjCRuntime; using CoreFoundation; -using Foundation; namespace CoreServices { // FSEvents.h: typedef UInt32 FSEventStreamCreateFlags; diff --git a/src/CoreServices/LaunchServices.cs b/src/CoreServices/LaunchServices.cs index ef0ab0f8279a..a325bbb97e59 100644 --- a/src/CoreServices/LaunchServices.cs +++ b/src/CoreServices/LaunchServices.cs @@ -23,12 +23,7 @@ #if MONOMAC -using System; -using System.Runtime.InteropServices; - using CoreFoundation; -using Foundation; -using ObjCRuntime; namespace CoreServices { /// To be added. diff --git a/src/CoreSpotlight/CSCompat.cs b/src/CoreSpotlight/CSCompat.cs index 0bf2d7d1925e..405e9acd6a15 100644 --- a/src/CoreSpotlight/CSCompat.cs +++ b/src/CoreSpotlight/CSCompat.cs @@ -1,8 +1,6 @@ // Compatibility stubs -using System; using System.ComponentModel; -using ObjCRuntime; #nullable enable diff --git a/src/CoreSpotlight/CSEnums.cs b/src/CoreSpotlight/CSEnums.cs index c70fe8690dfa..837479749382 100644 --- a/src/CoreSpotlight/CSEnums.cs +++ b/src/CoreSpotlight/CSEnums.cs @@ -7,10 +7,6 @@ // Copyright 2015, 2016 Xamarin Inc. All rights reserved. // -using System; -using ObjCRuntime; -using Foundation; - #nullable enable namespace CoreSpotlight { diff --git a/src/CoreSpotlight/CSSearchableIndex.cs b/src/CoreSpotlight/CSSearchableIndex.cs index da9f5237f541..59ba581396bc 100644 --- a/src/CoreSpotlight/CSSearchableIndex.cs +++ b/src/CoreSpotlight/CSSearchableIndex.cs @@ -11,10 +11,6 @@ #if IOS -using System; -using Foundation; -using ObjCRuntime; - namespace CoreSpotlight { public partial class CSSearchableIndex { diff --git a/src/CoreSpotlight/CSSearchableItemAttributeSet.cs b/src/CoreSpotlight/CSSearchableItemAttributeSet.cs index a417cbfd0fa3..d31cbebb1381 100644 --- a/src/CoreSpotlight/CSSearchableItemAttributeSet.cs +++ b/src/CoreSpotlight/CSSearchableItemAttributeSet.cs @@ -4,10 +4,6 @@ #if IOS || MONOMAC -using System; -using Foundation; -using ObjCRuntime; - namespace CoreSpotlight { public partial class CSSearchableItemAttributeSet { diff --git a/src/CoreTelephony/CTEnums.cs b/src/CoreTelephony/CTEnums.cs index 663a6842d4dd..1ac9b4543d02 100644 --- a/src/CoreTelephony/CTEnums.cs +++ b/src/CoreTelephony/CTEnums.cs @@ -1,5 +1,3 @@ -using ObjCRuntime; -using System; #nullable enable diff --git a/src/CoreTelephony/CoreTelephony.cs b/src/CoreTelephony/CoreTelephony.cs index de074e50c9cd..b1e286f766c1 100644 --- a/src/CoreTelephony/CoreTelephony.cs +++ b/src/CoreTelephony/CoreTelephony.cs @@ -1,9 +1,5 @@ #nullable enable -using Foundation; -using ObjCRuntime; -using System; - namespace CoreTelephony { public partial class CTCall { diff --git a/src/CoreText/Adapter.cs b/src/CoreText/Adapter.cs index 122f50716f6c..b9f9fc9ba2d8 100644 --- a/src/CoreText/Adapter.cs +++ b/src/CoreText/Adapter.cs @@ -29,12 +29,9 @@ #nullable enable -using System; using System.Collections.Generic; using CoreFoundation; -using Foundation; -using ObjCRuntime; namespace CoreText { diff --git a/src/CoreText/CTBaselineClass.cs b/src/CoreText/CTBaselineClass.cs index d1e0380457b2..560a77255733 100644 --- a/src/CoreText/CTBaselineClass.cs +++ b/src/CoreText/CTBaselineClass.cs @@ -28,11 +28,6 @@ #nullable enable -using System; - -using ObjCRuntime; -using Foundation; - namespace CoreText { // Convenience enum for string values in ObjC. diff --git a/src/CoreText/CTEnums.cs b/src/CoreText/CTEnums.cs index cabfce6547ce..efc956533475 100644 --- a/src/CoreText/CTEnums.cs +++ b/src/CoreText/CTEnums.cs @@ -24,9 +24,6 @@ // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // -using System; - -using ObjCRuntime; namespace CoreText { diff --git a/src/CoreText/CTFont.cs b/src/CoreText/CTFont.cs index 319362c5fb13..08cda95ea821 100644 --- a/src/CoreText/CTFont.cs +++ b/src/CoreText/CTFont.cs @@ -30,15 +30,11 @@ #nullable enable -using System; using System.Collections.Generic; using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using ObjCRuntime; using CoreFoundation; using CoreGraphics; -using Foundation; using CGGlyph = System.UInt16; diff --git a/src/CoreText/CTFontCollection.cs b/src/CoreText/CTFontCollection.cs index 07be5d43e7e5..6c13d291f528 100644 --- a/src/CoreText/CTFontCollection.cs +++ b/src/CoreText/CTFontCollection.cs @@ -29,11 +29,6 @@ #nullable enable -using System; -using System.Runtime.InteropServices; - -using ObjCRuntime; -using Foundation; using CoreFoundation; using CoreGraphics; diff --git a/src/CoreText/CTFontDescriptor.cs b/src/CoreText/CTFontDescriptor.cs index 136d0379bb69..bd5a1be38766 100644 --- a/src/CoreText/CTFontDescriptor.cs +++ b/src/CoreText/CTFontDescriptor.cs @@ -30,15 +30,11 @@ #nullable enable -using System; using System.Collections.Generic; using System.ComponentModel; -using System.Runtime.InteropServices; -using ObjCRuntime; using CoreFoundation; using CoreGraphics; -using Foundation; namespace CoreText { diff --git a/src/CoreText/CTFontManager.cs b/src/CoreText/CTFontManager.cs index 383d36944272..7c8e01b52079 100644 --- a/src/CoreText/CTFontManager.cs +++ b/src/CoreText/CTFontManager.cs @@ -30,15 +30,11 @@ #nullable enable -using System; using System.Collections.Generic; -using System.Runtime.InteropServices; using System.Diagnostics.CodeAnalysis; -using ObjCRuntime; using CoreFoundation; using CoreGraphics; -using Foundation; using CGGlyph = System.UInt16; diff --git a/src/CoreText/CTFontNameKey.cs b/src/CoreText/CTFontNameKey.cs index 26b682f1271a..d24eafb9a88b 100644 --- a/src/CoreText/CTFontNameKey.cs +++ b/src/CoreText/CTFontNameKey.cs @@ -29,12 +29,6 @@ #nullable enable -using System; -using System.Runtime.InteropServices; - -using ObjCRuntime; -using Foundation; - namespace CoreText { // Utility enum for constant strings in ObjC diff --git a/src/CoreText/CTFontTrait.cs b/src/CoreText/CTFontTrait.cs index 9dd922823edd..6a2abb1c2043 100644 --- a/src/CoreText/CTFontTrait.cs +++ b/src/CoreText/CTFontTrait.cs @@ -29,13 +29,7 @@ #nullable enable -using System; -using System.Runtime.InteropServices; - using CoreFoundation; -using Foundation; -using ObjCRuntime; -using System.Runtime.Versioning; namespace CoreText { /// Describes the style of a font. diff --git a/src/CoreText/CTFrame.cs b/src/CoreText/CTFrame.cs index 5a0d65ce1f5e..302b7382a7fe 100644 --- a/src/CoreText/CTFrame.cs +++ b/src/CoreText/CTFrame.cs @@ -28,12 +28,6 @@ #nullable enable -using System; -using System.Runtime.InteropServices; -using System.Runtime.Versioning; - -using ObjCRuntime; -using Foundation; using CoreFoundation; using CoreGraphics; diff --git a/src/CoreText/CTFramesetter.cs b/src/CoreText/CTFramesetter.cs index 4364a8fdd7f0..21babc4fa886 100644 --- a/src/CoreText/CTFramesetter.cs +++ b/src/CoreText/CTFramesetter.cs @@ -27,12 +27,8 @@ #nullable enable -using System; using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using ObjCRuntime; -using Foundation; using CoreFoundation; using CoreGraphics; diff --git a/src/CoreText/CTGlyphInfo.cs b/src/CoreText/CTGlyphInfo.cs index f5233eafd436..63ab9efbf3b3 100644 --- a/src/CoreText/CTGlyphInfo.cs +++ b/src/CoreText/CTGlyphInfo.cs @@ -27,11 +27,6 @@ #nullable enable -using System; -using System.Runtime.InteropServices; - -using ObjCRuntime; -using Foundation; using CoreFoundation; using CGGlyph = System.UInt16; diff --git a/src/CoreText/CTLine.cs b/src/CoreText/CTLine.cs index 9a69f208be3d..f55f0c974e24 100644 --- a/src/CoreText/CTLine.cs +++ b/src/CoreText/CTLine.cs @@ -29,11 +29,6 @@ #nullable enable -using System; -using System.Runtime.InteropServices; - -using ObjCRuntime; -using Foundation; using CoreFoundation; using CoreGraphics; diff --git a/src/CoreText/CTParagraphStyle.cs b/src/CoreText/CTParagraphStyle.cs index e8cde3005a29..e11efbec2002 100644 --- a/src/CoreText/CTParagraphStyle.cs +++ b/src/CoreText/CTParagraphStyle.cs @@ -29,12 +29,8 @@ #nullable enable -using System; using System.Collections.Generic; -using System.Runtime.InteropServices; -using ObjCRuntime; -using Foundation; using CoreFoundation; namespace CoreText { diff --git a/src/CoreText/CTRun.cs b/src/CoreText/CTRun.cs index 091f3df158bc..3b03a60a15b4 100644 --- a/src/CoreText/CTRun.cs +++ b/src/CoreText/CTRun.cs @@ -29,11 +29,6 @@ #nullable enable -using System; -using System.Runtime.InteropServices; - -using ObjCRuntime; -using Foundation; using CoreFoundation; using CoreGraphics; diff --git a/src/CoreText/CTRunDelegate.cs b/src/CoreText/CTRunDelegate.cs index b60780239669..514f9d310849 100644 --- a/src/CoreText/CTRunDelegate.cs +++ b/src/CoreText/CTRunDelegate.cs @@ -27,12 +27,6 @@ #nullable enable -using System; -using System.Runtime.InteropServices; -using System.Runtime.Versioning; - -using ObjCRuntime; -using Foundation; using CoreFoundation; using CoreGraphics; diff --git a/src/CoreText/CTStringAttributes.cs b/src/CoreText/CTStringAttributes.cs index ef6926cb7eda..f34c9431353f 100644 --- a/src/CoreText/CTStringAttributes.cs +++ b/src/CoreText/CTStringAttributes.cs @@ -30,12 +30,8 @@ #nullable enable -using System; using System.Collections.Generic; -using System.Runtime.InteropServices; -using ObjCRuntime; -using Foundation; using CoreFoundation; using CoreGraphics; diff --git a/src/CoreText/CTTextTab.cs b/src/CoreText/CTTextTab.cs index c2562060fe37..0f7199982583 100644 --- a/src/CoreText/CTTextTab.cs +++ b/src/CoreText/CTTextTab.cs @@ -27,12 +27,6 @@ #nullable enable -using System; -using System.Runtime.InteropServices; -using System.Runtime.Versioning; - -using ObjCRuntime; -using Foundation; using CoreFoundation; namespace CoreText { diff --git a/src/CoreText/CTTypesetter.cs b/src/CoreText/CTTypesetter.cs index ec4b44246cce..3429eec85215 100644 --- a/src/CoreText/CTTypesetter.cs +++ b/src/CoreText/CTTypesetter.cs @@ -29,11 +29,6 @@ #nullable enable -using System; -using System.Runtime.InteropServices; - -using ObjCRuntime; -using Foundation; using CoreFoundation; using CoreGraphics; diff --git a/src/CoreText/ConstructorError.cs b/src/CoreText/ConstructorError.cs index c5eab96241b7..d5c450a554de 100644 --- a/src/CoreText/ConstructorError.cs +++ b/src/CoreText/ConstructorError.cs @@ -26,11 +26,6 @@ // #nullable enable -using System; -using System.Runtime.InteropServices; - -using ObjCRuntime; -using Foundation; using CoreFoundation; using CoreGraphics; diff --git a/src/CoreVideo/CVBuffer.cs b/src/CoreVideo/CVBuffer.cs index 2f7041338d2a..158a44ce8596 100644 --- a/src/CoreVideo/CVBuffer.cs +++ b/src/CoreVideo/CVBuffer.cs @@ -28,13 +28,9 @@ #nullable enable -using System; using System.ComponentModel; using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; using CoreFoundation; -using ObjCRuntime; -using Foundation; #nullable enable diff --git a/src/CoreVideo/CVDisplayLink.cs b/src/CoreVideo/CVDisplayLink.cs index 3d044a29df97..82499c146067 100644 --- a/src/CoreVideo/CVDisplayLink.cs +++ b/src/CoreVideo/CVDisplayLink.cs @@ -25,14 +25,10 @@ #if MONOMAC -using System; using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; using CoreFoundation; -using ObjCRuntime; -using Foundation; using OpenGL; #nullable enable diff --git a/src/CoreVideo/CVEnums.cs b/src/CoreVideo/CVEnums.cs index 5f31ff615825..cc46ad571896 100644 --- a/src/CoreVideo/CVEnums.cs +++ b/src/CoreVideo/CVEnums.cs @@ -25,11 +25,7 @@ // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // -using System; -using System.Runtime.InteropServices; using CoreFoundation; -using Foundation; -using ObjCRuntime; #nullable enable diff --git a/src/CoreVideo/CVImageBuffer.cs b/src/CoreVideo/CVImageBuffer.cs index 6e01322de6b0..d1a213c6adfe 100644 --- a/src/CoreVideo/CVImageBuffer.cs +++ b/src/CoreVideo/CVImageBuffer.cs @@ -25,11 +25,7 @@ // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // -using System; -using System.Runtime.InteropServices; using CoreFoundation; -using ObjCRuntime; -using Foundation; using CoreGraphics; #nullable enable diff --git a/src/CoreVideo/CVMetalBuffer.cs b/src/CoreVideo/CVMetalBuffer.cs index c27698ebff33..c73a41f8158b 100644 --- a/src/CoreVideo/CVMetalBuffer.cs +++ b/src/CoreVideo/CVMetalBuffer.cs @@ -1,11 +1,7 @@ -using System; -using System.Runtime.InteropServices; using CoreFoundation; using CoreGraphics; -using Foundation; using Metal; -using ObjCRuntime; #nullable enable diff --git a/src/CoreVideo/CVMetalBufferCache.cs b/src/CoreVideo/CVMetalBufferCache.cs index e8e5ff25017f..a3aeec1a3efb 100644 --- a/src/CoreVideo/CVMetalBufferCache.cs +++ b/src/CoreVideo/CVMetalBufferCache.cs @@ -1,14 +1,10 @@ -using System; using System.ComponentModel; using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; using CoreFoundation; using CoreGraphics; -using Foundation; using Metal; -using ObjCRuntime; #nullable enable diff --git a/src/CoreVideo/CVMetalTexture.cs b/src/CoreVideo/CVMetalTexture.cs index dda9536316cc..096a173bdc71 100644 --- a/src/CoreVideo/CVMetalTexture.cs +++ b/src/CoreVideo/CVMetalTexture.cs @@ -8,12 +8,7 @@ // // -using System; -using System.Runtime.InteropServices; - -using ObjCRuntime; using CoreFoundation; -using Foundation; using Metal; #nullable enable diff --git a/src/CoreVideo/CVMetalTextureAttributes.cs b/src/CoreVideo/CVMetalTextureAttributes.cs index fce2f4eb2f32..da95a134a202 100644 --- a/src/CoreVideo/CVMetalTextureAttributes.cs +++ b/src/CoreVideo/CVMetalTextureAttributes.cs @@ -6,8 +6,6 @@ // Copyright 2017 Xamarin Inc. // -using System; -using Foundation; using Metal; #nullable enable diff --git a/src/CoreVideo/CVMetalTextureCache.cs b/src/CoreVideo/CVMetalTextureCache.cs index 50f97d4198c4..b1e9c0142293 100644 --- a/src/CoreVideo/CVMetalTextureCache.cs +++ b/src/CoreVideo/CVMetalTextureCache.cs @@ -8,11 +8,7 @@ // // -using System; -using System.Runtime.InteropServices; -using ObjCRuntime; using CoreFoundation; -using Foundation; using Metal; #nullable enable diff --git a/src/CoreVideo/CVOpenGLESTexture.cs b/src/CoreVideo/CVOpenGLESTexture.cs index a14ca0589d9b..f1d82a2a0d1e 100644 --- a/src/CoreVideo/CVOpenGLESTexture.cs +++ b/src/CoreVideo/CVOpenGLESTexture.cs @@ -10,12 +10,7 @@ #if HAS_OPENGLES && !__MACOS__ && !__MACCATALYST__ -using System; -using System.Runtime.InteropServices; - -using ObjCRuntime; using CoreFoundation; -using Foundation; using OpenGLES; #nullable enable diff --git a/src/CoreVideo/CVOpenGLESTextureCache.cs b/src/CoreVideo/CVOpenGLESTextureCache.cs index 4ee1fd045472..cea5300dfcb2 100644 --- a/src/CoreVideo/CVOpenGLESTextureCache.cs +++ b/src/CoreVideo/CVOpenGLESTextureCache.cs @@ -10,12 +10,7 @@ #if HAS_OPENGLES && !__MACOS__ && !__MACCATALYST__ -using System; -using System.Runtime.InteropServices; - -using ObjCRuntime; using CoreFoundation; -using Foundation; using OpenGLES; #nullable enable diff --git a/src/CoreVideo/CVPixelBuffer.cs b/src/CoreVideo/CVPixelBuffer.cs index 1a3302df5b03..c1c520d0f270 100644 --- a/src/CoreVideo/CVPixelBuffer.cs +++ b/src/CoreVideo/CVPixelBuffer.cs @@ -6,12 +6,8 @@ // Copyright 2010 Novell, Inc // Copyright 2011-2014 Xamarin Inc // -using System; using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; using CoreFoundation; -using ObjCRuntime; -using Foundation; using CFDictionaryRef = System.IntPtr; using CVPixelBufferRef = System.IntPtr; diff --git a/src/CoreVideo/CVPixelBufferAttributes.cs b/src/CoreVideo/CVPixelBufferAttributes.cs index 44a7475751c3..6440c46a69f4 100644 --- a/src/CoreVideo/CVPixelBufferAttributes.cs +++ b/src/CoreVideo/CVPixelBufferAttributes.cs @@ -25,10 +25,7 @@ // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // -using System; -using Foundation; using CoreFoundation; -using ObjCRuntime; #nullable enable diff --git a/src/CoreVideo/CVPixelBufferIOSurface.cs b/src/CoreVideo/CVPixelBufferIOSurface.cs index 3774b5d62c19..dfb9061c4404 100644 --- a/src/CoreVideo/CVPixelBufferIOSurface.cs +++ b/src/CoreVideo/CVPixelBufferIOSurface.cs @@ -6,11 +6,7 @@ // Copyright 2017 Xamarin Inc. // -using System; -using System.Runtime.InteropServices; using CoreFoundation; -using Foundation; -using ObjCRuntime; #nullable enable diff --git a/src/CoreVideo/CVPixelBufferPool.cs b/src/CoreVideo/CVPixelBufferPool.cs index 4937161d57e4..5952a2750675 100644 --- a/src/CoreVideo/CVPixelBufferPool.cs +++ b/src/CoreVideo/CVPixelBufferPool.cs @@ -10,11 +10,7 @@ #nullable enable -using System; -using System.Runtime.InteropServices; using CoreFoundation; -using ObjCRuntime; -using Foundation; #nullable enable diff --git a/src/CoreVideo/CVPixelBufferPoolSettings.cs b/src/CoreVideo/CVPixelBufferPoolSettings.cs index 5a03fbf9cb82..993fe8a65083 100644 --- a/src/CoreVideo/CVPixelBufferPoolSettings.cs +++ b/src/CoreVideo/CVPixelBufferPoolSettings.cs @@ -25,11 +25,7 @@ // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // -using System; - -using Foundation; using CoreFoundation; -using ObjCRuntime; #nullable enable diff --git a/src/CoreVideo/CVPixelFormatDescription.cs b/src/CoreVideo/CVPixelFormatDescription.cs index 6dacff7347f2..3ae481443e2a 100644 --- a/src/CoreVideo/CVPixelFormatDescription.cs +++ b/src/CoreVideo/CVPixelFormatDescription.cs @@ -25,12 +25,8 @@ // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // -using System; using System.ComponentModel; -using System.Runtime.InteropServices; using CoreFoundation; -using ObjCRuntime; -using Foundation; #if XAMCORE_5_0 using CVFillExtendedPixelsCallBackDataStruct = CoreVideo.CVFillExtendedPixelsCallBackData; diff --git a/src/CoreVideo/CVPixelFormatType.cs b/src/CoreVideo/CVPixelFormatType.cs index 7a39e00f1961..77d7dbabd08f 100644 --- a/src/CoreVideo/CVPixelFormatType.cs +++ b/src/CoreVideo/CVPixelFormatType.cs @@ -26,11 +26,8 @@ // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // -using System; -using System.Runtime.InteropServices; using CoreFoundation; -using ObjCRuntime; #nullable enable diff --git a/src/CoreVideo/CVTime.cs b/src/CoreVideo/CVTime.cs index 01091db89e02..7c39b994cc2b 100644 --- a/src/CoreVideo/CVTime.cs +++ b/src/CoreVideo/CVTime.cs @@ -25,10 +25,7 @@ // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // -using System; -using System.Runtime.InteropServices; using CoreFoundation; -using ObjCRuntime; #nullable enable diff --git a/src/CoreVideo/CoreVideo.cs b/src/CoreVideo/CoreVideo.cs index 452a83f127d5..ff401a9e0268 100644 --- a/src/CoreVideo/CoreVideo.cs +++ b/src/CoreVideo/CoreVideo.cs @@ -25,11 +25,7 @@ // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // -using System; -using System.Runtime.InteropServices; using CoreFoundation; -using Foundation; -using ObjCRuntime; #nullable enable diff --git a/src/CoreWlan/CWConfiguration.cs b/src/CoreWlan/CWConfiguration.cs index a9a15737b6c8..d0ce7daeee57 100644 --- a/src/CoreWlan/CWConfiguration.cs +++ b/src/CoreWlan/CWConfiguration.cs @@ -3,10 +3,7 @@ #nullable enable -using Foundation; using CoreFoundation; -using ObjCRuntime; -using System; namespace CoreWlan { /// To be added. diff --git a/src/CoreWlan/CWInterface.cs b/src/CoreWlan/CWInterface.cs index 0719772cf646..a6af652be077 100644 --- a/src/CoreWlan/CWInterface.cs +++ b/src/CoreWlan/CWInterface.cs @@ -3,10 +3,7 @@ #nullable enable -using Foundation; using CoreFoundation; -using ObjCRuntime; -using System; namespace CoreWlan { /// To be added. diff --git a/src/CoreWlan/CWKeychain.cs b/src/CoreWlan/CWKeychain.cs index d7ab66b1e073..3a84ef706d65 100644 --- a/src/CoreWlan/CWKeychain.cs +++ b/src/CoreWlan/CWKeychain.cs @@ -1,13 +1,8 @@ #if !__MACCATALYST__ -using System; -using System.Runtime.InteropServices; using CoreFoundation; -using Foundation; -using ObjCRuntime; using Security; - #nullable enable using SecIdentityRef = System.IntPtr; diff --git a/src/CoreWlan/Enums.cs b/src/CoreWlan/Enums.cs index 6fb3a0a6a0e8..c4b0a1641df2 100644 --- a/src/CoreWlan/Enums.cs +++ b/src/CoreWlan/Enums.cs @@ -1,10 +1,7 @@ // Copyright 2014 Xamarin Inc. All rights reserved. // Copyright 2019 Microsoft Corporation -using Foundation; using CoreFoundation; -using ObjCRuntime; -using System; namespace CoreWlan { diff --git a/src/CryptoTokenKit/TKTokenKeychainKey.cs b/src/CryptoTokenKit/TKTokenKeychainKey.cs index ee68378db738..9935118e4407 100644 --- a/src/CryptoTokenKit/TKTokenKeychainKey.cs +++ b/src/CryptoTokenKit/TKTokenKeychainKey.cs @@ -1,6 +1,3 @@ -using System; -using Foundation; -using ObjCRuntime; using Security; #nullable enable diff --git a/src/Darwin/KernelNotification.cs b/src/Darwin/KernelNotification.cs index 1127cffce6ef..2aaba82e098e 100644 --- a/src/Darwin/KernelNotification.cs +++ b/src/Darwin/KernelNotification.cs @@ -29,11 +29,8 @@ #if MONOMAC -using System; using CoreFoundation; -using ObjCRuntime; using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; using System.Collections.Generic; namespace Darwin { diff --git a/src/Darwin/SystemLog.cs b/src/Darwin/SystemLog.cs index 7bb36973aed7..e68877dc16c3 100644 --- a/src/Darwin/SystemLog.cs +++ b/src/Darwin/SystemLog.cs @@ -29,10 +29,6 @@ #if MONOMAC -using System; -using Foundation; -using ObjCRuntime; -using System.Runtime.InteropServices; using System.Collections.Generic; namespace Darwin { diff --git a/src/Darwin/TimeSpec.cs b/src/Darwin/TimeSpec.cs index 8161d5785a9f..6ccc4a2d520f 100644 --- a/src/Darwin/TimeSpec.cs +++ b/src/Darwin/TimeSpec.cs @@ -1,7 +1,3 @@ -using System; -using System.Runtime.InteropServices; - -using ObjCRuntime; #nullable enable diff --git a/src/DeviceDiscoveryExtension/DDDevice.cs b/src/DeviceDiscoveryExtension/DDDevice.cs index fca9a4c9e995..31945d7a4aad 100644 --- a/src/DeviceDiscoveryExtension/DDDevice.cs +++ b/src/DeviceDiscoveryExtension/DDDevice.cs @@ -10,10 +10,7 @@ #nullable enable -using ObjCRuntime; -using Foundation; using Network; -using System; using nw_endpoint_t = System.IntPtr; diff --git a/src/DeviceDiscoveryExtension/Enums.cs b/src/DeviceDiscoveryExtension/Enums.cs index 9efb7b556635..6f7b34ba1a72 100644 --- a/src/DeviceDiscoveryExtension/Enums.cs +++ b/src/DeviceDiscoveryExtension/Enums.cs @@ -8,11 +8,6 @@ // Copyright 2022, 2024 Microsoft Corporation. // -using System; - -using ObjCRuntime; -using Foundation; - namespace DeviceDiscoveryExtension { [Mac (15, 0), iOS (16, 0), MacCatalyst (18, 0), NoTV] diff --git a/src/DeviceDiscoveryUI/DDDevicePickerViewController.cs b/src/DeviceDiscoveryUI/DDDevicePickerViewController.cs index 75b3216d99ee..ffe01c67eda7 100644 --- a/src/DeviceDiscoveryUI/DDDevicePickerViewController.cs +++ b/src/DeviceDiscoveryUI/DDDevicePickerViewController.cs @@ -9,10 +9,7 @@ #nullable enable -using ObjCRuntime; -using Foundation; using Network; -using System; using OS_nw_endpoint = System.IntPtr; using OS_nw_error = System.IntPtr; diff --git a/src/DotNetGlobals.cs b/src/DotNetGlobals.cs index 6d4f5bfc8cbc..1c2b150fbf25 100644 --- a/src/DotNetGlobals.cs +++ b/src/DotNetGlobals.cs @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + global using System; global using System.Runtime.Versioning; // We need the SupportedOSPlatform/UnsupportedOSPlatform attributes pretty much everywhere global using System.Runtime.InteropServices; diff --git a/src/EventKit/EKEnums.cs b/src/EventKit/EKEnums.cs index 6ac169b001f4..a8b08d1a9d3c 100644 --- a/src/EventKit/EKEnums.cs +++ b/src/EventKit/EKEnums.cs @@ -1,6 +1,3 @@ -using System; -using ObjCRuntime; -using Foundation; using CoreGraphics; using CoreLocation; diff --git a/src/EventKitUI/Defs.cs b/src/EventKitUI/Defs.cs index a8756b9da44f..422afac4eb41 100644 --- a/src/EventKitUI/Defs.cs +++ b/src/EventKitUI/Defs.cs @@ -9,8 +9,6 @@ #nullable enable -using ObjCRuntime; - namespace EventKitUI { // untyped enum -> EKCalendarChooser.h diff --git a/src/EventKitUI/EKUIBundle.cs b/src/EventKitUI/EKUIBundle.cs index 796fa40a17ea..5fc808b31c48 100644 --- a/src/EventKitUI/EKUIBundle.cs +++ b/src/EventKitUI/EKUIBundle.cs @@ -9,11 +9,6 @@ #nullable enable -using System; -using System.Runtime.InteropServices; -using Foundation; -using ObjCRuntime; - namespace EventKitUI { /// To be added. /// To be added. diff --git a/src/ExternalAccessory/EAEnums.cs b/src/ExternalAccessory/EAEnums.cs index aeb1dc05383c..9c00fa9ba39c 100644 --- a/src/ExternalAccessory/EAEnums.cs +++ b/src/ExternalAccessory/EAEnums.cs @@ -3,9 +3,6 @@ // // Copyright 2012-2014 Xamarin Inc. All rights reserved. // -using System; -using Foundation; -using ObjCRuntime; namespace ExternalAccessory { diff --git a/src/FSKit/FSBlockDeviceResource.cs b/src/FSKit/FSBlockDeviceResource.cs index 4667b601955c..420170027ad0 100644 --- a/src/FSKit/FSBlockDeviceResource.cs +++ b/src/FSKit/FSBlockDeviceResource.cs @@ -1,10 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -using System.Runtime.InteropServices; - -using Foundation; - #nullable enable namespace FSKit { diff --git a/src/FSKit/FSFileName.cs b/src/FSKit/FSFileName.cs index dd9be1ad1e19..f24128e8e140 100644 --- a/src/FSKit/FSFileName.cs +++ b/src/FSKit/FSFileName.cs @@ -1,11 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -using System; - -using Foundation; -using ObjCRuntime; - #nullable enable namespace FSKit { diff --git a/src/FSKit/FSKitFunctions.cs b/src/FSKit/FSKitFunctions.cs index 689124801b27..acb1f83c3ec6 100644 --- a/src/FSKit/FSKitFunctions.cs +++ b/src/FSKit/FSKitFunctions.cs @@ -2,10 +2,6 @@ // Licensed under the MIT License. using System.Diagnostics.CodeAnalysis; -using System.Runtime.InteropServices; - -using Foundation; -using ObjCRuntime; #nullable enable diff --git a/src/FileProvider/Structs.cs b/src/FileProvider/Structs.cs index 8499293760db..d1a66001cc87 100644 --- a/src/FileProvider/Structs.cs +++ b/src/FileProvider/Structs.cs @@ -2,10 +2,7 @@ #nullable enable -using System; using System.ComponentModel; -using System.Runtime.InteropServices; -using ObjCRuntime; namespace FileProvider { diff --git a/src/FinderSync/Enums.cs b/src/FinderSync/Enums.cs index ca485fe81632..d01d29883ad7 100644 --- a/src/FinderSync/Enums.cs +++ b/src/FinderSync/Enums.cs @@ -1,8 +1,5 @@ #nullable enable -using System; -using ObjCRuntime; - namespace FinderSync { /// To be added. /// To be added. diff --git a/src/Foundation/Additions.cs b/src/Foundation/Additions.cs index 4acae0ec9ed4..91572232da17 100644 --- a/src/Foundation/Additions.cs +++ b/src/Foundation/Additions.cs @@ -2,8 +2,6 @@ #if !MONOMAC -using System; - namespace Foundation { // NSIndexPath UIKit Additions Reference diff --git a/src/Foundation/AdviceAttribute.cs b/src/Foundation/AdviceAttribute.cs index 982fad594eeb..204b26afa860 100644 --- a/src/Foundation/AdviceAttribute.cs +++ b/src/Foundation/AdviceAttribute.cs @@ -27,8 +27,6 @@ // // -using System; - namespace Foundation { /// An attribute that can be used to give programming advice to a user of a function or class. /// This attribute is intended to give developers some guidance as to what to do.   The contents of the attribute are displayed by the IDE when the user is using a feature like code analysis to give hints as to how to improve the code. diff --git a/src/Foundation/Compat.cs b/src/Foundation/Compat.cs index 7bd066167800..054a29c8c993 100644 --- a/src/Foundation/Compat.cs +++ b/src/Foundation/Compat.cs @@ -6,11 +6,8 @@ // // Copyright 2015 Xamarin, Inc. -using System; using System.ComponentModel; -using ObjCRuntime; - namespace Foundation { #if !XAMCORE_5_0 #if __IOS__ && !__MACCATALYST__ diff --git a/src/Foundation/ConnectAttribute.cs b/src/Foundation/ConnectAttribute.cs index b61a63d7904b..c2b1c7db0535 100644 --- a/src/Foundation/ConnectAttribute.cs +++ b/src/Foundation/ConnectAttribute.cs @@ -20,7 +20,6 @@ // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // -using System; #nullable enable diff --git a/src/Foundation/DictionaryContainer.cs b/src/Foundation/DictionaryContainer.cs index 2ac154c6b197..2957dd9cdff1 100644 --- a/src/Foundation/DictionaryContainer.cs +++ b/src/Foundation/DictionaryContainer.cs @@ -26,16 +26,10 @@ // // -using System; using System.Diagnostics.CodeAnalysis; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using System.Runtime.Versioning; #if !COREBUILD using CoreFoundation; -using ObjCRuntime; -using Foundation; using CoreGraphics; using CoreMedia; #endif diff --git a/src/Foundation/Enum.cs b/src/Foundation/Enum.cs index 316daae60216..ae1fd78e9856 100644 --- a/src/Foundation/Enum.cs +++ b/src/Foundation/Enum.cs @@ -23,8 +23,6 @@ // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // -using System; -using ObjCRuntime; namespace Foundation { diff --git a/src/Foundation/EnumDesktop.cs b/src/Foundation/EnumDesktop.cs index 5afaa228f8ba..ac5bf63a78d1 100644 --- a/src/Foundation/EnumDesktop.cs +++ b/src/Foundation/EnumDesktop.cs @@ -23,9 +23,6 @@ // // FIXME: EnumDesktop.cs should be merged into Enums.cs -using System; - -using ObjCRuntime; namespace Foundation { [NoiOS, NoTV, NoMacCatalyst] diff --git a/src/Foundation/Enums.cs b/src/Foundation/Enums.cs index 1b197f55dcb5..eb3c9f23f68b 100644 --- a/src/Foundation/Enums.cs +++ b/src/Foundation/Enums.cs @@ -1,5 +1,3 @@ -using System; -using ObjCRuntime; namespace Foundation { diff --git a/src/Foundation/ExportAttribute.cs b/src/Foundation/ExportAttribute.cs index 11e26891508f..b9ae14d74451 100644 --- a/src/Foundation/ExportAttribute.cs +++ b/src/Foundation/ExportAttribute.cs @@ -28,10 +28,8 @@ // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // // -using System; using System.Globalization; using System.Reflection; -using ObjCRuntime; using Registrar; #nullable enable diff --git a/src/Foundation/FieldAttribute.cs b/src/Foundation/FieldAttribute.cs index 8da8476a3fef..632c8abb311c 100644 --- a/src/Foundation/FieldAttribute.cs +++ b/src/Foundation/FieldAttribute.cs @@ -26,7 +26,6 @@ // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // // -using System; #nullable enable diff --git a/src/Foundation/LinkerSafeAttribute.cs b/src/Foundation/LinkerSafeAttribute.cs index 27ce0d0f3876..9150b4d3714e 100644 --- a/src/Foundation/LinkerSafeAttribute.cs +++ b/src/Foundation/LinkerSafeAttribute.cs @@ -24,7 +24,6 @@ #if !XAMCORE_5_0 -using System; using System.ComponentModel; namespace Foundation { diff --git a/src/Foundation/ModelAttribute.cs b/src/Foundation/ModelAttribute.cs index 3811f436c4c6..f90e249bb2f0 100644 --- a/src/Foundation/ModelAttribute.cs +++ b/src/Foundation/ModelAttribute.cs @@ -20,7 +20,6 @@ // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // -using System; #nullable enable diff --git a/src/Foundation/ModelNotImplementedException.cs b/src/Foundation/ModelNotImplementedException.cs index 964022ae7430..3daa5b0d7b63 100644 --- a/src/Foundation/ModelNotImplementedException.cs +++ b/src/Foundation/ModelNotImplementedException.cs @@ -20,7 +20,6 @@ // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // -using System; namespace Foundation { /// An convenience exception used in Model method implementations. diff --git a/src/Foundation/NSAction.cs b/src/Foundation/NSAction.cs index 78e79eaf0f45..8e6a0c0e12f9 100644 --- a/src/Foundation/NSAction.cs +++ b/src/Foundation/NSAction.cs @@ -22,10 +22,7 @@ // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // -using System; -using System.Runtime.InteropServices; using System.Threading; -using ObjCRuntime; // Disable until we get around to enable + fix any issues. #nullable disable diff --git a/src/Foundation/NSAppleEventDescriptor.cs b/src/Foundation/NSAppleEventDescriptor.cs index 4086200b9864..6567947585fe 100644 --- a/src/Foundation/NSAppleEventDescriptor.cs +++ b/src/Foundation/NSAppleEventDescriptor.cs @@ -5,8 +5,6 @@ #if MONOMAC -using System; - using AppKit; namespace Foundation { diff --git a/src/Foundation/NSArray.cs b/src/Foundation/NSArray.cs index 993addd29436..245dad2a4218 100644 --- a/src/Foundation/NSArray.cs +++ b/src/Foundation/NSArray.cs @@ -21,16 +21,12 @@ // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // -using System; using System.Reflection; using System.Collections; using System.Collections.Generic; using System.ComponentModel; -using System.Runtime.InteropServices; -using System.Runtime.Versioning; using CoreFoundation; -using ObjCRuntime; // Disable until we get around to enable + fix any issues. #nullable disable diff --git a/src/Foundation/NSArray_1.cs b/src/Foundation/NSArray_1.cs index f6861aaf06f1..53526538c666 100644 --- a/src/Foundation/NSArray_1.cs +++ b/src/Foundation/NSArray_1.cs @@ -9,13 +9,8 @@ #nullable enable -using System; using System.Collections.Generic; using System.Collections; -using System.Runtime.InteropServices; -using System.Runtime.Versioning; - -using ObjCRuntime; namespace Foundation { #if false // https://github.com/dotnet/macios/issues/15577 diff --git a/src/Foundation/NSAttributedString.cs b/src/Foundation/NSAttributedString.cs index a5f65faedf5a..aa6f2f4b3269 100644 --- a/src/Foundation/NSAttributedString.cs +++ b/src/Foundation/NSAttributedString.cs @@ -27,12 +27,10 @@ #nullable enable -using System; using System.ComponentModel; using CoreFoundation; using CoreText; -using ObjCRuntime; #if MONOMAC || __MACCATALYST__ using AppKit; #endif diff --git a/src/Foundation/NSAttributedString.mac.cs b/src/Foundation/NSAttributedString.mac.cs index 1b3d45269d05..54eae0dfea6e 100644 --- a/src/Foundation/NSAttributedString.mac.cs +++ b/src/Foundation/NSAttributedString.mac.cs @@ -10,10 +10,7 @@ #if MONOMAC -using System; - using AppKit; -using ObjCRuntime; using WebKit; //using CoreText; diff --git a/src/Foundation/NSAttributedStringDocumentAttributes.cs b/src/Foundation/NSAttributedStringDocumentAttributes.cs index 4a5f7dca1752..7ab7a254e820 100644 --- a/src/Foundation/NSAttributedStringDocumentAttributes.cs +++ b/src/Foundation/NSAttributedStringDocumentAttributes.cs @@ -8,21 +8,18 @@ #nullable enable -using System; using System.ComponentModel; #if HAS_APPKIT using AppKit; #endif using CoreGraphics; -using Foundation; #if HAS_UIKIT using UIKit; #endif #if !COREBUILD && HAS_WEBKIT using WebKit; #endif -using ObjCRuntime; #if !COREBUILD #if __MACOS__ diff --git a/src/Foundation/NSBundle.cs b/src/Foundation/NSBundle.cs index 7bfcf48a54e8..d26cd8b94dc0 100644 --- a/src/Foundation/NSBundle.cs +++ b/src/Foundation/NSBundle.cs @@ -1,10 +1,6 @@ -using System; using System.ComponentModel; using System.Reflection; using System.Collections; -using System.Runtime.InteropServices; - -using ObjCRuntime; #nullable enable diff --git a/src/Foundation/NSBundleResourceRequest.cs b/src/Foundation/NSBundleResourceRequest.cs index 570705526abc..6a335b380223 100644 --- a/src/Foundation/NSBundleResourceRequest.cs +++ b/src/Foundation/NSBundleResourceRequest.cs @@ -1,9 +1,5 @@ -using System; using System.Reflection; using System.Collections; -using System.Runtime.InteropServices; - -using ObjCRuntime; #if !MONOMAC diff --git a/src/Foundation/NSCoder.cs b/src/Foundation/NSCoder.cs index 00e5ea892176..3a8c4c0d4483 100644 --- a/src/Foundation/NSCoder.cs +++ b/src/Foundation/NSCoder.cs @@ -25,10 +25,7 @@ // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // -using System; using System.Collections.Generic; -using System.Runtime.InteropServices; -using ObjCRuntime; // Disable until we get around to enable + fix any issues. #nullable disable diff --git a/src/Foundation/NSConnection.cs b/src/Foundation/NSConnection.cs index 2b316f90ff3e..b75c7bb177c7 100644 --- a/src/Foundation/NSConnection.cs +++ b/src/Foundation/NSConnection.cs @@ -28,11 +28,8 @@ #if MONOMAC -using System; using System.Diagnostics.CodeAnalysis; -using ObjCRuntime; - // Disable until we get around to enable + fix any issues. #nullable disable diff --git a/src/Foundation/NSData.cs b/src/Foundation/NSData.cs index ce086bcaddd1..8ed950f07fe0 100644 --- a/src/Foundation/NSData.cs +++ b/src/Foundation/NSData.cs @@ -29,14 +29,10 @@ #nullable enable -using ObjCRuntime; - -using System; using System.Buffers; using System.Collections; using System.Collections.Generic; using System.IO; -using System.Runtime.InteropServices; namespace Foundation { public partial class NSData : IEnumerable, IEnumerable { diff --git a/src/Foundation/NSDate.cs b/src/Foundation/NSDate.cs index 3cd0b5552eed..6349486d8d11 100644 --- a/src/Foundation/NSDate.cs +++ b/src/Foundation/NSDate.cs @@ -25,14 +25,10 @@ // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // // -using System; using System.Reflection; using System.Collections.Generic; -using System.Runtime.InteropServices; using System.Threading; -using ObjCRuntime; - #nullable enable namespace Foundation { diff --git a/src/Foundation/NSDateComponents.cs b/src/Foundation/NSDateComponents.cs index 2dfaf84311f9..0d4e735c2b6b 100644 --- a/src/Foundation/NSDateComponents.cs +++ b/src/Foundation/NSDateComponents.cs @@ -1,4 +1,3 @@ -using System; namespace Foundation { public partial class NSDateComponents { diff --git a/src/Foundation/NSDecimal.cs b/src/Foundation/NSDecimal.cs index 15388c41eb2d..4cac1e76eed4 100644 --- a/src/Foundation/NSDecimal.cs +++ b/src/Foundation/NSDecimal.cs @@ -26,13 +26,8 @@ // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // // -using System; using System.Globalization; using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using System.Runtime.Versioning; - -using ObjCRuntime; // Disable until we get around to enable + fix any issues. #nullable disable diff --git a/src/Foundation/NSDictionary.cs b/src/Foundation/NSDictionary.cs index 82546617616f..166ca912ebc9 100644 --- a/src/Foundation/NSDictionary.cs +++ b/src/Foundation/NSDictionary.cs @@ -21,10 +21,8 @@ // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // -using System; using System.Collections; using System.Collections.Generic; -using ObjCRuntime; // Disable until we get around to enable + fix any issues. #nullable disable diff --git a/src/Foundation/NSDictionary_2.cs b/src/Foundation/NSDictionary_2.cs index b60b9e0db5a3..5faa76d0dc01 100644 --- a/src/Foundation/NSDictionary_2.cs +++ b/src/Foundation/NSDictionary_2.cs @@ -23,11 +23,8 @@ // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // -using System; using System.Collections; using System.Collections.Generic; -using System.Runtime.Versioning; -using ObjCRuntime; // Disable until we get around to enable + fix any issues. #nullable disable diff --git a/src/Foundation/NSDimension.cs b/src/Foundation/NSDimension.cs index 01483a0cdab6..9561fdb9e72c 100644 --- a/src/Foundation/NSDimension.cs +++ b/src/Foundation/NSDimension.cs @@ -1,4 +1,3 @@ -using System; namespace Foundation { diff --git a/src/Foundation/NSDirectoryEnumerator.cs b/src/Foundation/NSDirectoryEnumerator.cs index 0e10e61eecdc..276d7924673b 100644 --- a/src/Foundation/NSDirectoryEnumerator.cs +++ b/src/Foundation/NSDirectoryEnumerator.cs @@ -5,8 +5,6 @@ // // Copyright 2011 - 2014 Xamarin Inc // -using ObjCRuntime; -using System; using System.Collections.Generic; using System.Collections; diff --git a/src/Foundation/NSEnumerator_1.cs b/src/Foundation/NSEnumerator_1.cs index ed4322a5ae35..af1c10df479a 100644 --- a/src/Foundation/NSEnumerator_1.cs +++ b/src/Foundation/NSEnumerator_1.cs @@ -24,12 +24,9 @@ // // -using System; using System.Collections; using System.Collections.Generic; -using ObjCRuntime; - namespace Foundation { [Register ("NSEnumerator", SkipRegistration = true)] public sealed class NSEnumerator : NSEnumerator diff --git a/src/Foundation/NSError.cs b/src/Foundation/NSError.cs index 9da01e919e55..411a6644cbc7 100644 --- a/src/Foundation/NSError.cs +++ b/src/Foundation/NSError.cs @@ -24,10 +24,7 @@ // // Simple class for passing NSErrors as EventArgs // -using System; using System.Diagnostics; -using ObjCRuntime; -using System.Runtime.Versioning; // Disable until we get around to enable + fix any issues. #nullable disable diff --git a/src/Foundation/NSErrorException.cs b/src/Foundation/NSErrorException.cs index 365e2704ffcd..2e0cf48f92a0 100644 --- a/src/Foundation/NSErrorException.cs +++ b/src/Foundation/NSErrorException.cs @@ -23,8 +23,6 @@ // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // -using System; -using System.Runtime.Versioning; namespace Foundation { /// Exception that wraps an Objective-C NSError. diff --git a/src/Foundation/NSExceptionError.cs b/src/Foundation/NSExceptionError.cs index d92e1dda7dbf..901b8cbd1ae3 100644 --- a/src/Foundation/NSExceptionError.cs +++ b/src/Foundation/NSExceptionError.cs @@ -1,5 +1,3 @@ -using System; -using System.Runtime.Versioning; #nullable enable diff --git a/src/Foundation/NSExpression.cs b/src/Foundation/NSExpression.cs index b63eaf08a15d..472a4327c93d 100644 --- a/src/Foundation/NSExpression.cs +++ b/src/Foundation/NSExpression.cs @@ -1,9 +1,6 @@ // TODO: The NSExpression class is a cluster class in cocoa. This means that now all the properties are supported by all the types of NSExpressions. // At the point of this written all the properties have been tested with all types EXCEPT NSExpressionType.Subquery and NSExpressionType.Conditional because writting // tests for those was not possible. The properties for these two types have been deduced from the other types yet bugs are possible and an objc exception will be thrown. -using System; -using System.Runtime.InteropServices; -using ObjCRuntime; namespace Foundation { diff --git a/src/Foundation/NSFastEnumerationState.cs b/src/Foundation/NSFastEnumerationState.cs index 85f617cea27e..67ad86a3987b 100644 --- a/src/Foundation/NSFastEnumerationState.cs +++ b/src/Foundation/NSFastEnumerationState.cs @@ -9,11 +9,7 @@ #nullable enable -using System; using System.Collections.Generic; -using System.Runtime.InteropServices; - -using ObjCRuntime; namespace Foundation { [StructLayout (LayoutKind.Sequential)] diff --git a/src/Foundation/NSFastEnumerator.cs b/src/Foundation/NSFastEnumerator.cs index 0e9178c04a6b..f13f8f000ca2 100644 --- a/src/Foundation/NSFastEnumerator.cs +++ b/src/Foundation/NSFastEnumerator.cs @@ -7,12 +7,8 @@ // Copyright 2015, Xamarin Inc. // -using System; using System.Collections; using System.Collections.Generic; -using System.Runtime.InteropServices; - -using ObjCRuntime; // Disable until we get around to enable + fix any issues. #nullable disable diff --git a/src/Foundation/NSFileManager.cs b/src/Foundation/NSFileManager.cs index d18dd8bc0f5c..0286df101840 100644 --- a/src/Foundation/NSFileManager.cs +++ b/src/Foundation/NSFileManager.cs @@ -27,11 +27,6 @@ // // using CoreFoundation; -using ObjCRuntime; - -using System; -using System.Runtime.InteropServices; -using System.Runtime.Versioning; #nullable enable diff --git a/src/Foundation/NSFileManagerDelegate.cs b/src/Foundation/NSFileManagerDelegate.cs index 176149bd8194..ed25019c14cd 100644 --- a/src/Foundation/NSFileManagerDelegate.cs +++ b/src/Foundation/NSFileManagerDelegate.cs @@ -7,9 +7,6 @@ // Copyright 2015, Xamarin Inc // -using System; -using Foundation; - namespace Foundation { /// A delegate that, when overridden, allows the application developer fine-grained control over events relating to common file discovery and manipulation actions. /// To be added. diff --git a/src/Foundation/NSHost.cs b/src/Foundation/NSHost.cs index f77792e9afc8..86cfdb5a693d 100644 --- a/src/Foundation/NSHost.cs +++ b/src/Foundation/NSHost.cs @@ -12,7 +12,6 @@ #nullable enable -using System; using System.Net; using System.Collections; using System.Collections.Generic; diff --git a/src/Foundation/NSHttpCookie.cs b/src/Foundation/NSHttpCookie.cs index 087cb6c46c31..ec2862dcb7fe 100644 --- a/src/Foundation/NSHttpCookie.cs +++ b/src/Foundation/NSHttpCookie.cs @@ -19,8 +19,6 @@ // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // // Copyright 2011, 2012 Xamarin Inc -using ObjCRuntime; -using System; using System.Net; #nullable enable diff --git a/src/Foundation/NSIndexPath.cs b/src/Foundation/NSIndexPath.cs index 45d65e03289e..a05edb016eb3 100644 --- a/src/Foundation/NSIndexPath.cs +++ b/src/Foundation/NSIndexPath.cs @@ -7,12 +7,8 @@ // Copyright 2009, Novell, Inc. // Copyright 2014, Xamarin Inc. // -using System; using System.Reflection; using System.Collections.Generic; -using System.Runtime.InteropServices; - -using ObjCRuntime; namespace Foundation { diff --git a/src/Foundation/NSIndexSet.cs b/src/Foundation/NSIndexSet.cs index 64d92d5a5d23..5a617ba6f213 100644 --- a/src/Foundation/NSIndexSet.cs +++ b/src/Foundation/NSIndexSet.cs @@ -22,13 +22,9 @@ // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // -using System; using System.Reflection; using System.Collections; using System.Collections.Generic; -using System.Runtime.InteropServices; - -using ObjCRuntime; namespace Foundation { diff --git a/src/Foundation/NSInputStream.cs b/src/Foundation/NSInputStream.cs index e765c4e0c7dc..23d821cf7bdf 100644 --- a/src/Foundation/NSInputStream.cs +++ b/src/Foundation/NSInputStream.cs @@ -19,11 +19,7 @@ // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // -using System; -using System.Runtime.InteropServices; using CoreFoundation; -using Foundation; -using ObjCRuntime; namespace Foundation { public partial class NSInputStream : NSStream { diff --git a/src/Foundation/NSItemProvider.cs b/src/Foundation/NSItemProvider.cs index 0f4496000e29..82ae015a715f 100644 --- a/src/Foundation/NSItemProvider.cs +++ b/src/Foundation/NSItemProvider.cs @@ -1,7 +1,5 @@ -using System; using System.Threading.Tasks; using CloudKit; -using ObjCRuntime; // Disable until we get around to enable + fix any issues. #nullable disable diff --git a/src/Foundation/NSKeyedArchiver.cs b/src/Foundation/NSKeyedArchiver.cs index d7c816ad1271..695d77d4d86c 100644 --- a/src/Foundation/NSKeyedArchiver.cs +++ b/src/Foundation/NSKeyedArchiver.cs @@ -20,11 +20,7 @@ // // Copyright 2011, 2012 Xamarin Inc // -using System; -using System.Runtime.InteropServices; using CoreFoundation; -using Foundation; -using ObjCRuntime; // Disable until we get around to enable + fix any issues. #nullable disable diff --git a/src/Foundation/NSKeyedUnarchiver.cs b/src/Foundation/NSKeyedUnarchiver.cs index 33e15437bca3..091b03bf2662 100644 --- a/src/Foundation/NSKeyedUnarchiver.cs +++ b/src/Foundation/NSKeyedUnarchiver.cs @@ -19,10 +19,7 @@ // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // // Copyright 2011, 2012 Xamarin Inc -using System; using CoreFoundation; -using Foundation; -using ObjCRuntime; namespace Foundation { diff --git a/src/Foundation/NSLayoutConstraint.cs b/src/Foundation/NSLayoutConstraint.cs index 09ab1d08e41a..0361bd73c801 100644 --- a/src/Foundation/NSLayoutConstraint.cs +++ b/src/Foundation/NSLayoutConstraint.cs @@ -7,10 +7,6 @@ // Copyright 2014 Xamarin INc // -using System; -using Foundation; -using ObjCRuntime; - #if MONOMAC using View = AppKit.NSView; #else diff --git a/src/Foundation/NSLocale.cs b/src/Foundation/NSLocale.cs index 081ed3b5f4a1..fd51e99efb29 100644 --- a/src/Foundation/NSLocale.cs +++ b/src/Foundation/NSLocale.cs @@ -27,9 +27,6 @@ // // -using System; -using ObjCRuntime; - // Disable until we get around to enable + fix any issues. #nullable disable diff --git a/src/Foundation/NSMetadataItem.cs b/src/Foundation/NSMetadataItem.cs index ff65b3ddc83e..b4fd6934196e 100644 --- a/src/Foundation/NSMetadataItem.cs +++ b/src/Foundation/NSMetadataItem.cs @@ -6,9 +6,7 @@ // Author: // Miguel de Icaza // -using System; using CoreFoundation; -using ObjCRuntime; #nullable enable diff --git a/src/Foundation/NSMutableArray_1.cs b/src/Foundation/NSMutableArray_1.cs index 8d945b649270..e379b7178b58 100644 --- a/src/Foundation/NSMutableArray_1.cs +++ b/src/Foundation/NSMutableArray_1.cs @@ -22,11 +22,7 @@ // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // -using System; using System.Collections.Generic; -using System.Runtime.Versioning; - -using ObjCRuntime; namespace Foundation { [SupportedOSPlatform ("ios")] diff --git a/src/Foundation/NSMutableAttributedString.cs b/src/Foundation/NSMutableAttributedString.cs index 91c75c6e645f..84e2ecb9f64a 100644 --- a/src/Foundation/NSMutableAttributedString.cs +++ b/src/Foundation/NSMutableAttributedString.cs @@ -27,7 +27,6 @@ // // -using System; #if !MONOMAC using UIKit; #endif diff --git a/src/Foundation/NSMutableData.cs b/src/Foundation/NSMutableData.cs index d2feed419531..ad502bfa8a60 100644 --- a/src/Foundation/NSMutableData.cs +++ b/src/Foundation/NSMutableData.cs @@ -8,8 +8,6 @@ #nullable enable -using System; -using System.Runtime.InteropServices; using System.Collections; using System.Collections.Generic; diff --git a/src/Foundation/NSMutableDictionary.cs b/src/Foundation/NSMutableDictionary.cs index b55a8da7e0bf..a6cebeb5b520 100644 --- a/src/Foundation/NSMutableDictionary.cs +++ b/src/Foundation/NSMutableDictionary.cs @@ -20,13 +20,11 @@ // // Copyright 2011 - 2014 Xamarin Inc (http://www.xamarin.com) // -using System; using System.Collections; using System.Collections.Generic; using System.ComponentModel; using CoreFoundation; -using ObjCRuntime; // Disable until we get around to enable + fix any issues. #nullable disable diff --git a/src/Foundation/NSMutableDictionary_2.cs b/src/Foundation/NSMutableDictionary_2.cs index 124b8a50e93a..e34bd7c49a4c 100644 --- a/src/Foundation/NSMutableDictionary_2.cs +++ b/src/Foundation/NSMutableDictionary_2.cs @@ -23,13 +23,9 @@ // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // -using System; using System.Collections; using System.Collections.Generic; using System.ComponentModel; -using System.Runtime.Versioning; - -using ObjCRuntime; // Disable until we get around to enable + fix any issues. #nullable disable diff --git a/src/Foundation/NSMutableOrderedSet_1.cs b/src/Foundation/NSMutableOrderedSet_1.cs index 3aa5b13d19d2..d927ffe626fc 100644 --- a/src/Foundation/NSMutableOrderedSet_1.cs +++ b/src/Foundation/NSMutableOrderedSet_1.cs @@ -7,12 +7,8 @@ // Copyright 2015, Xamarin Inc. // -using System; using System.Collections.Generic; using System.Collections; -using System.Runtime.Versioning; - -using ObjCRuntime; // Disable until we get around to enable + fix any issues. #nullable disable diff --git a/src/Foundation/NSMutableSet.cs b/src/Foundation/NSMutableSet.cs index 8527db4c3f5a..a81434cc2d9f 100644 --- a/src/Foundation/NSMutableSet.cs +++ b/src/Foundation/NSMutableSet.cs @@ -27,12 +27,9 @@ // // -using System; using System.Collections; using System.Collections.Generic; -using ObjCRuntime; - // Disable until we get around to enable + fix any issues. #nullable disable diff --git a/src/Foundation/NSMutableSet_1.cs b/src/Foundation/NSMutableSet_1.cs index 6117823ad45f..e83c185b8f29 100644 --- a/src/Foundation/NSMutableSet_1.cs +++ b/src/Foundation/NSMutableSet_1.cs @@ -24,12 +24,8 @@ // // -using System; using System.Collections; using System.Collections.Generic; -using System.Runtime.Versioning; - -using ObjCRuntime; // Disable until we get around to enable + fix any issues. #nullable disable diff --git a/src/Foundation/NSMutableString.cs b/src/Foundation/NSMutableString.cs index c5cfa5bc329b..7ada3625fcbc 100644 --- a/src/Foundation/NSMutableString.cs +++ b/src/Foundation/NSMutableString.cs @@ -1,7 +1,5 @@ // Copyright 2013 Xamarin Inc. All rights reserved. -using System; - namespace Foundation { public partial class NSMutableString { diff --git a/src/Foundation/NSNetService.cs b/src/Foundation/NSNetService.cs index 865d186fecb5..0617ab0e79c6 100644 --- a/src/Foundation/NSNetService.cs +++ b/src/Foundation/NSNetService.cs @@ -21,8 +21,6 @@ // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // -using System; - // Disable until we get around to enable + fix any issues. #nullable disable diff --git a/src/Foundation/NSNotificationCenter.cs b/src/Foundation/NSNotificationCenter.cs index ffbfe2963f77..0d292987dcda 100644 --- a/src/Foundation/NSNotificationCenter.cs +++ b/src/Foundation/NSNotificationCenter.cs @@ -22,11 +22,7 @@ // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // // -using ObjCRuntime; -using Foundation; -using System; using System.Collections.Generic; -using System.Runtime.Versioning; // Disable until we get around to enable + fix any issues. #nullable disable diff --git a/src/Foundation/NSNull.cs b/src/Foundation/NSNull.cs index e2437302589b..183981ef677f 100644 --- a/src/Foundation/NSNull.cs +++ b/src/Foundation/NSNull.cs @@ -1,4 +1,3 @@ -using System; // Disable until we get around to enable + fix any issues. #nullable disable diff --git a/src/Foundation/NSNumber.mac.cs b/src/Foundation/NSNumber.mac.cs index 4130c9159882..0df0e7622d62 100644 --- a/src/Foundation/NSNumber.mac.cs +++ b/src/Foundation/NSNumber.mac.cs @@ -8,9 +8,6 @@ #if MONOMAC -using System; -using ObjCRuntime; - // Disable until we get around to enable + fix any issues. #nullable disable diff --git a/src/Foundation/NSNumber2.cs b/src/Foundation/NSNumber2.cs index 41e3031cf33d..dedb132be2e0 100644 --- a/src/Foundation/NSNumber2.cs +++ b/src/Foundation/NSNumber2.cs @@ -3,12 +3,8 @@ // Copyright 2014 Xamarin Inc. All rights reserved. // -using System; using System.Reflection; using System.Collections; -using System.Runtime.InteropServices; - -using ObjCRuntime; // Disable until we get around to enable + fix any issues. #nullable disable diff --git a/src/Foundation/NSObject.mac.cs b/src/Foundation/NSObject.mac.cs index 65e3ae3e3ef7..c7cbdc146c11 100644 --- a/src/Foundation/NSObject.mac.cs +++ b/src/Foundation/NSObject.mac.cs @@ -24,11 +24,8 @@ #if MONOMAC -using System; using System.Reflection; -using ObjCRuntime; - namespace Foundation { /// public partial class NSObject { diff --git a/src/Foundation/NSObject2.cs b/src/Foundation/NSObject2.cs index b29708b2635f..b93f509d7761 100644 --- a/src/Foundation/NSObject2.cs +++ b/src/Foundation/NSObject2.cs @@ -19,23 +19,19 @@ // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // -using System; using System.Diagnostics.CodeAnalysis; using System.Reflection; using System.Collections.Generic; using System.ComponentModel; using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; using System.Threading; #if !NO_SYSTEM_DRAWING using System.Drawing; #endif -using System.Runtime.Versioning; using System.Diagnostics; using System.Runtime.InteropServices.ObjectiveC; -using ObjCRuntime; #if !COREBUILD using Xamarin.Bundler; #if HAS_UIKIT diff --git a/src/Foundation/NSOperatingSystemVersion.cs b/src/Foundation/NSOperatingSystemVersion.cs index 99c26d75212c..2d947d9d41d5 100644 --- a/src/Foundation/NSOperatingSystemVersion.cs +++ b/src/Foundation/NSOperatingSystemVersion.cs @@ -23,9 +23,6 @@ // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // -using System; -using System.Runtime.Versioning; -using ObjCRuntime; #nullable enable namespace Foundation { diff --git a/src/Foundation/NSOrderedCollectionChange.cs b/src/Foundation/NSOrderedCollectionChange.cs index 5725679731a1..e0cb1bf8aa7f 100644 --- a/src/Foundation/NSOrderedCollectionChange.cs +++ b/src/Foundation/NSOrderedCollectionChange.cs @@ -1,10 +1,5 @@ -using System; using System.Collections.Generic; using System.Collections; -using System.Runtime.InteropServices; -using System.Runtime.Versioning; - -using ObjCRuntime; #nullable enable diff --git a/src/Foundation/NSOrderedCollectionChange_1.cs b/src/Foundation/NSOrderedCollectionChange_1.cs index 97e866da44c8..b34aa02d83bb 100644 --- a/src/Foundation/NSOrderedCollectionChange_1.cs +++ b/src/Foundation/NSOrderedCollectionChange_1.cs @@ -1,10 +1,5 @@ -using System; using System.Collections.Generic; using System.Collections; -using System.Runtime.InteropServices; -using System.Runtime.Versioning; - -using ObjCRuntime; #nullable enable diff --git a/src/Foundation/NSOrderedCollectionDifference.cs b/src/Foundation/NSOrderedCollectionDifference.cs index ce178c0b1e0a..3b5bfe5defb6 100644 --- a/src/Foundation/NSOrderedCollectionDifference.cs +++ b/src/Foundation/NSOrderedCollectionDifference.cs @@ -1,11 +1,6 @@ #nullable enable -using System; using System.Collections.Generic; using System.Collections; -using System.Runtime.InteropServices; -using System.Runtime.Versioning; - -using ObjCRuntime; namespace Foundation { #if false // https://github.com/dotnet/macios/issues/15577 diff --git a/src/Foundation/NSOrderedCollectionDifference_1.cs b/src/Foundation/NSOrderedCollectionDifference_1.cs index 09e5194a8e39..c1b6ee6ac870 100644 --- a/src/Foundation/NSOrderedCollectionDifference_1.cs +++ b/src/Foundation/NSOrderedCollectionDifference_1.cs @@ -2,13 +2,8 @@ // This file contains a generic version of NSOrderedCollectionDifference // #nullable enable -using System; using System.Collections.Generic; using System.Collections; -using System.Runtime.InteropServices; -using System.Runtime.Versioning; - -using ObjCRuntime; namespace Foundation { #if false // https://github.com/dotnet/macios/issues/15577 diff --git a/src/Foundation/NSOrderedSet.cs b/src/Foundation/NSOrderedSet.cs index 105edf873842..2dbba1cda998 100644 --- a/src/Foundation/NSOrderedSet.cs +++ b/src/Foundation/NSOrderedSet.cs @@ -27,12 +27,8 @@ // // -using System; using System.Collections; using System.Collections.Generic; -using System.Runtime.Versioning; - -using ObjCRuntime; // Disable until we get around to enable + fix any issues. #nullable disable diff --git a/src/Foundation/NSOrderedSet_1.cs b/src/Foundation/NSOrderedSet_1.cs index e48a4ea7cade..6dc3411dd498 100644 --- a/src/Foundation/NSOrderedSet_1.cs +++ b/src/Foundation/NSOrderedSet_1.cs @@ -8,12 +8,8 @@ // #nullable enable -using System; using System.Collections.Generic; using System.Collections; -using System.Runtime.Versioning; - -using ObjCRuntime; namespace Foundation { [SupportedOSPlatform ("ios")] diff --git a/src/Foundation/NSOutputStream.cs b/src/Foundation/NSOutputStream.cs index abe176f76bf6..cc9c0e196a74 100644 --- a/src/Foundation/NSOutputStream.cs +++ b/src/Foundation/NSOutputStream.cs @@ -1,7 +1,3 @@ -using System; -using System.Runtime.InteropServices; -using Foundation; -using ObjCRuntime; namespace Foundation { public partial class NSOutputStream : NSStream { diff --git a/src/Foundation/NSProgress.cs b/src/Foundation/NSProgress.cs index 40e56e37f363..93a59e42fea5 100644 --- a/src/Foundation/NSProgress.cs +++ b/src/Foundation/NSProgress.cs @@ -1,7 +1,4 @@ #if !COREBUILD -using System; -using Foundation; -using ObjCRuntime; namespace Foundation { public partial class NSProgress { diff --git a/src/Foundation/NSPropertyListSerialization.cs b/src/Foundation/NSPropertyListSerialization.cs index 9359c67a30d5..fc5f5ea5e8ea 100644 --- a/src/Foundation/NSPropertyListSerialization.cs +++ b/src/Foundation/NSPropertyListSerialization.cs @@ -28,8 +28,6 @@ #if MONOMAC -using System; - namespace Foundation { public partial class NSPropertyListSerialization { /// To be added. diff --git a/src/Foundation/NSProxy.cs b/src/Foundation/NSProxy.cs index 2395ee0e0c16..f46ad35f5339 100644 --- a/src/Foundation/NSProxy.cs +++ b/src/Foundation/NSProxy.cs @@ -14,10 +14,7 @@ // NSProxy responds to far less selectors hence doing it internal so it is not a breaking change // when we provide the correct fix. -using System; using System.ComponentModel; -using Foundation; -using ObjCRuntime; namespace Foundation { [EditorBrowsable (EditorBrowsableState.Never)] diff --git a/src/Foundation/NSRange.cs b/src/Foundation/NSRange.cs index ca76c30c3928..e4886a21a17d 100644 --- a/src/Foundation/NSRange.cs +++ b/src/Foundation/NSRange.cs @@ -21,8 +21,6 @@ // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // -using System; -using System.Runtime.Versioning; // Disable until we get around to enable + fix any issues. #nullable disable diff --git a/src/Foundation/NSRunLoop.cs b/src/Foundation/NSRunLoop.cs index 13dd9b8d2587..8a21910f079f 100644 --- a/src/Foundation/NSRunLoop.cs +++ b/src/Foundation/NSRunLoop.cs @@ -22,9 +22,6 @@ #nullable enable -using System; -using System.Runtime.InteropServices; - namespace Foundation { public partial class NSRunLoop { diff --git a/src/Foundation/NSScriptCommandArgumentDescription.cs b/src/Foundation/NSScriptCommandArgumentDescription.cs index c1bd7e7a24b4..774e006b2bf0 100644 --- a/src/Foundation/NSScriptCommandArgumentDescription.cs +++ b/src/Foundation/NSScriptCommandArgumentDescription.cs @@ -1,7 +1,4 @@ // Copyright 2015 Xamarin, Inc. -using System; -using Foundation; -using ObjCRuntime; // Disable until we get around to enable + fix any issues. #nullable disable diff --git a/src/Foundation/NSScriptCommandDescription.cs b/src/Foundation/NSScriptCommandDescription.cs index 95433d6c6cc9..4d6bc0a0b281 100644 --- a/src/Foundation/NSScriptCommandDescription.cs +++ b/src/Foundation/NSScriptCommandDescription.cs @@ -1,9 +1,5 @@ // Copyright 2015 Xamarin, Inc. -using System; -using Foundation; -using ObjCRuntime; - // Disable until we get around to enable + fix any issues. #nullable disable diff --git a/src/Foundation/NSScriptCommandDescriptionDictionary.cs b/src/Foundation/NSScriptCommandDescriptionDictionary.cs index ade1f7f0b5ee..a35545e99735 100644 --- a/src/Foundation/NSScriptCommandDescriptionDictionary.cs +++ b/src/Foundation/NSScriptCommandDescriptionDictionary.cs @@ -1,7 +1,4 @@ // Copyright 2015 Xamarin, Inc. -using System; -using Foundation; -using ObjCRuntime; namespace Foundation { diff --git a/src/Foundation/NSSearchPath.cs b/src/Foundation/NSSearchPath.cs index 31aedde720c6..35b8d495bfb4 100644 --- a/src/Foundation/NSSearchPath.cs +++ b/src/Foundation/NSSearchPath.cs @@ -26,12 +26,7 @@ // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // -using System; -using System.Runtime.InteropServices; - using CoreFoundation; -using ObjCRuntime; -using System.Runtime.Versioning; // Disable until we get around to enable + fix any issues. #nullable disable diff --git a/src/Foundation/NSSecureCoding.cs b/src/Foundation/NSSecureCoding.cs index 78bf157ca02e..79774e027963 100644 --- a/src/Foundation/NSSecureCoding.cs +++ b/src/Foundation/NSSecureCoding.cs @@ -1,8 +1,5 @@ // NSSecureCoding support -using System; -using ObjCRuntime; - #nullable enable namespace Foundation { diff --git a/src/Foundation/NSSet.cs b/src/Foundation/NSSet.cs index 2aaea6347c2f..34957ee33728 100644 --- a/src/Foundation/NSSet.cs +++ b/src/Foundation/NSSet.cs @@ -29,12 +29,9 @@ // // -using System; using System.Collections; using System.Collections.Generic; -using ObjCRuntime; - // Disable until we get around to enable + fix any issues. #nullable disable diff --git a/src/Foundation/NSSet_1.cs b/src/Foundation/NSSet_1.cs index 105570fdbdc6..07bdd25c503e 100644 --- a/src/Foundation/NSSet_1.cs +++ b/src/Foundation/NSSet_1.cs @@ -24,13 +24,9 @@ // // -using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; -using System.Runtime.Versioning; - -using ObjCRuntime; // Disable until we get around to enable + fix any issues. #nullable disable diff --git a/src/Foundation/NSStream.cs b/src/Foundation/NSStream.cs index bbfee0bf674d..5ba35a546ad5 100644 --- a/src/Foundation/NSStream.cs +++ b/src/Foundation/NSStream.cs @@ -28,12 +28,9 @@ // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // -using System; -using System.Runtime.Versioning; using CoreFoundation; using System.Net; using System.Net.Sockets; -using ObjCRuntime; using CFNetwork; // Disable until we get around to enable + fix any issues. diff --git a/src/Foundation/NSString.cs b/src/Foundation/NSString.cs index 23dd535d5d89..b918dd5cd818 100644 --- a/src/Foundation/NSString.cs +++ b/src/Foundation/NSString.cs @@ -21,18 +21,15 @@ // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // -using System; using System.Reflection; using System.Collections; using System.ComponentModel; using System.Diagnostics.CodeAnalysis; -using System.Runtime.InteropServices; #if !COREBUILD using CoreFoundation; using CoreGraphics; #endif -using ObjCRuntime; #nullable enable diff --git a/src/Foundation/NSString2.cs b/src/Foundation/NSString2.cs index 6487aa0acb5d..42554f1135ad 100644 --- a/src/Foundation/NSString2.cs +++ b/src/Foundation/NSString2.cs @@ -23,9 +23,6 @@ // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // -using System; -using System.Runtime.InteropServices; -using ObjCRuntime; #nullable enable diff --git a/src/Foundation/NSThread.cs b/src/Foundation/NSThread.cs index 1d38240647c1..02105c44692c 100644 --- a/src/Foundation/NSThread.cs +++ b/src/Foundation/NSThread.cs @@ -21,11 +21,6 @@ // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // -using System; -using System.Runtime.InteropServices; - -using ObjCRuntime; - #nullable enable namespace Foundation { diff --git a/src/Foundation/NSThread.mac.cs b/src/Foundation/NSThread.mac.cs index 99f65cf6cffa..4017f06756f0 100644 --- a/src/Foundation/NSThread.mac.cs +++ b/src/Foundation/NSThread.mac.cs @@ -8,8 +8,6 @@ #if MONOMAC -using System; - namespace Foundation { public partial class NSThread { class ActionThread : NSThread { diff --git a/src/Foundation/NSTimeZone.cs b/src/Foundation/NSTimeZone.cs index e1fb0fb8d43b..e1fb89313784 100644 --- a/src/Foundation/NSTimeZone.cs +++ b/src/Foundation/NSTimeZone.cs @@ -1,4 +1,3 @@ -using System; using System.Collections.ObjectModel; // Disable until we get around to enable + fix any issues. diff --git a/src/Foundation/NSTimer.cs b/src/Foundation/NSTimer.cs index a3566cd4886c..8f624f2db963 100644 --- a/src/Foundation/NSTimer.cs +++ b/src/Foundation/NSTimer.cs @@ -20,12 +20,8 @@ // // Copyright 2011-2014 Xamarin Inc. // -using System; using System.Reflection; using System.Collections; -using System.Runtime.InteropServices; - -using ObjCRuntime; namespace Foundation { diff --git a/src/Foundation/NSUbiquitousKeyValueStore.cs b/src/Foundation/NSUbiquitousKeyValueStore.cs index 3542510c1b59..f89b9e4c2cf1 100644 --- a/src/Foundation/NSUbiquitousKeyValueStore.cs +++ b/src/Foundation/NSUbiquitousKeyValueStore.cs @@ -20,12 +20,8 @@ // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // -using System; using System.Reflection; using System.Collections; -using System.Runtime.InteropServices; - -using ObjCRuntime; // Disable until we get around to enable + fix any issues. #nullable disable diff --git a/src/Foundation/NSUndoManager.cs b/src/Foundation/NSUndoManager.cs index a28b558623b6..0a9f2e44ec9b 100644 --- a/src/Foundation/NSUndoManager.cs +++ b/src/Foundation/NSUndoManager.cs @@ -10,10 +10,6 @@ #nullable enable -using System; -using Foundation; -using ObjCRuntime; - namespace Foundation { public partial class NSUndoManager { /// Returns the modes governing the types of input handled during a cycle of the run loop. diff --git a/src/Foundation/NSUrl.cs b/src/Foundation/NSUrl.cs index 902713c25e03..8a8094036084 100644 --- a/src/Foundation/NSUrl.cs +++ b/src/Foundation/NSUrl.cs @@ -19,7 +19,6 @@ // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // -using System; #nullable enable diff --git a/src/Foundation/NSUrlComponents.cs b/src/Foundation/NSUrlComponents.cs index bc568a34020c..90050100b2d9 100644 --- a/src/Foundation/NSUrlComponents.cs +++ b/src/Foundation/NSUrlComponents.cs @@ -1,7 +1,6 @@ // Copyright 2014 Xamarin Inc // // -using System; namespace Foundation { diff --git a/src/Foundation/NSUrlCredential.cs b/src/Foundation/NSUrlCredential.cs index f9e0609749ae..57dcd2b67c65 100644 --- a/src/Foundation/NSUrlCredential.cs +++ b/src/Foundation/NSUrlCredential.cs @@ -1,11 +1,8 @@ // Copyright 2013 Xamarin Inc. -using System; using System.Reflection; using System.Collections; -using System.Runtime.InteropServices; -using ObjCRuntime; using Security; // Disable until we get around to enable + fix any issues. diff --git a/src/Foundation/NSUrlProtectionSpace.cs b/src/Foundation/NSUrlProtectionSpace.cs index 764abfd51799..7739d72de51b 100644 --- a/src/Foundation/NSUrlProtectionSpace.cs +++ b/src/Foundation/NSUrlProtectionSpace.cs @@ -1,8 +1,5 @@ // Copyright 2013 Xamarin Inc. -using System; - -using ObjCRuntime; using Security; #nullable enable diff --git a/src/Foundation/NSUrlSession.cs b/src/Foundation/NSUrlSession.cs index a695462af253..8a9b6f3407bb 100644 --- a/src/Foundation/NSUrlSession.cs +++ b/src/Foundation/NSUrlSession.cs @@ -1,5 +1,4 @@ -using System; using System.IO; // Disable until we get around to enable + fix any issues. diff --git a/src/Foundation/NSUrlSessionConfiguration.cs b/src/Foundation/NSUrlSessionConfiguration.cs index 9a83a8d95732..b6bcb2ba8441 100644 --- a/src/Foundation/NSUrlSessionConfiguration.cs +++ b/src/Foundation/NSUrlSessionConfiguration.cs @@ -3,12 +3,8 @@ // // Authors: // Manuel de la Pena -using System; -using ObjCRuntime; using Network; -using Foundation; - namespace Foundation { // the following was added to make the use of the configuration easier for the NUrlSessionHandler. diff --git a/src/Foundation/NSUrlSessionHandler.cs b/src/Foundation/NSUrlSessionHandler.cs index 5d1dc5ee165d..3bedeeff688f 100644 --- a/src/Foundation/NSUrlSessionHandler.cs +++ b/src/Foundation/NSUrlSessionHandler.cs @@ -25,7 +25,6 @@ // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // -using System; using System.Collections.Generic; using System.ComponentModel; using System.Globalization; @@ -34,7 +33,6 @@ using System.Net.Http; using System.Net.Http.Headers; using System.Net.Security; -using System.Runtime.InteropServices; using System.Security.Authentication; using System.Security.Cryptography.X509Certificates; using System.Threading; @@ -43,8 +41,6 @@ using System.Diagnostics.CodeAnalysis; using CoreFoundation; -using Foundation; -using ObjCRuntime; using Security; #if !MONOMAC diff --git a/src/Foundation/NSUserDefaults.cs b/src/Foundation/NSUserDefaults.cs index 2e25b4a20b75..5bfe00375a54 100644 --- a/src/Foundation/NSUserDefaults.cs +++ b/src/Foundation/NSUserDefaults.cs @@ -1,5 +1,3 @@ -using System; -using ObjCRuntime; #nullable enable diff --git a/src/Foundation/NSUuid.cs b/src/Foundation/NSUuid.cs index b128e5f678ef..e21c0c9a93fc 100644 --- a/src/Foundation/NSUuid.cs +++ b/src/Foundation/NSUuid.cs @@ -6,9 +6,6 @@ // // Copyright 2012-2013 Xamarin Inc // -using System; -using System.Runtime.InteropServices; -using ObjCRuntime; namespace Foundation { partial class NSUuid { diff --git a/src/Foundation/NSValue.cs b/src/Foundation/NSValue.cs index 1e33abc5029c..9ea2670466bc 100644 --- a/src/Foundation/NSValue.cs +++ b/src/Foundation/NSValue.cs @@ -23,11 +23,9 @@ // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // -using System; #if !NO_SYSTEM_DRAWING using System.Drawing; #endif -using System.Runtime.InteropServices; // Disable until we get around to enable + fix any issues. #nullable disable diff --git a/src/Foundation/NSXpcConnection.cs b/src/Foundation/NSXpcConnection.cs index c2101cb6a0e1..6fc9ad175956 100644 --- a/src/Foundation/NSXpcConnection.cs +++ b/src/Foundation/NSXpcConnection.cs @@ -19,9 +19,6 @@ // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // -using System; -using ObjCRuntime; - // Disable until we get around to enable + fix any issues. #nullable disable diff --git a/src/Foundation/NSXpcInterface.cs b/src/Foundation/NSXpcInterface.cs index 979554a18082..3c0a65e4cee4 100644 --- a/src/Foundation/NSXpcInterface.cs +++ b/src/Foundation/NSXpcInterface.cs @@ -19,9 +19,7 @@ // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // -using System; using System.Reflection; -using ObjCRuntime; // Disable until we get around to enable + fix any issues. #nullable disable diff --git a/src/Foundation/NSZone.cs b/src/Foundation/NSZone.cs index c8805c64f6c0..f7e374bf14bf 100644 --- a/src/Foundation/NSZone.cs +++ b/src/Foundation/NSZone.cs @@ -2,12 +2,7 @@ #nullable enable -using System; -using System.Runtime.InteropServices; -using System.Runtime.Versioning; - using CoreFoundation; -using ObjCRuntime; namespace Foundation { diff --git a/src/Foundation/NotImplementedAttribute.cs b/src/Foundation/NotImplementedAttribute.cs index 5f12c6051efe..5eac3a0bb562 100644 --- a/src/Foundation/NotImplementedAttribute.cs +++ b/src/Foundation/NotImplementedAttribute.cs @@ -7,8 +7,6 @@ // Copyright 2017 Xamarin Inc. // -using System; - #nullable enable namespace Foundation { diff --git a/src/Foundation/ObjCException.cs b/src/Foundation/ObjCException.cs index 71e20739fafd..4212282c7f06 100644 --- a/src/Foundation/ObjCException.cs +++ b/src/Foundation/ObjCException.cs @@ -21,11 +21,8 @@ // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // -using System; using System.Text; -using Foundation; - #nullable enable namespace ObjCRuntime { diff --git a/src/Foundation/PreserveAttribute.cs b/src/Foundation/PreserveAttribute.cs index 0327331abeed..ba2478f094e2 100644 --- a/src/Foundation/PreserveAttribute.cs +++ b/src/Foundation/PreserveAttribute.cs @@ -28,8 +28,6 @@ // // -using System; - namespace Foundation { /// diff --git a/src/Foundation/ProtocolAttribute.cs b/src/Foundation/ProtocolAttribute.cs index 20d39723032b..2b22ce42d415 100644 --- a/src/Foundation/ProtocolAttribute.cs +++ b/src/Foundation/ProtocolAttribute.cs @@ -20,9 +20,6 @@ // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // -using System; - -using ObjCRuntime; #nullable enable diff --git a/src/Foundation/RegisterAttribute.cs b/src/Foundation/RegisterAttribute.cs index c0cedc4701f2..6305649c1907 100644 --- a/src/Foundation/RegisterAttribute.cs +++ b/src/Foundation/RegisterAttribute.cs @@ -21,7 +21,6 @@ // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // -using System; #nullable enable diff --git a/src/Foundation/XpcInterfaceAttribute.cs b/src/Foundation/XpcInterfaceAttribute.cs index 2364f588a64d..6f9b6ce839b7 100644 --- a/src/Foundation/XpcInterfaceAttribute.cs +++ b/src/Foundation/XpcInterfaceAttribute.cs @@ -21,9 +21,6 @@ // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // -using System; -using ObjCRuntime; - namespace Foundation { #if !COREBUILD /// diff --git a/src/GLKit/Defs.cs b/src/GLKit/Defs.cs index e596eb9256ac..91548b1dfef3 100644 --- a/src/GLKit/Defs.cs +++ b/src/GLKit/Defs.cs @@ -26,11 +26,7 @@ // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // -using System; -using System.Runtime.InteropServices; -using Foundation; using ModelIO; -using ObjCRuntime; #nullable enable diff --git a/src/GLKit/GLKMesh.cs b/src/GLKit/GLKMesh.cs index 218e62fffff0..a31fcfa2ae57 100644 --- a/src/GLKit/GLKMesh.cs +++ b/src/GLKit/GLKMesh.cs @@ -1,6 +1,5 @@ // Copyright 2015 Xamarin Inc. -using Foundation; using ModelIO; #nullable enable diff --git a/src/GLKit/GLTextureLoader.cs b/src/GLKit/GLTextureLoader.cs index 9009d393ee07..52f4e583243b 100644 --- a/src/GLKit/GLTextureLoader.cs +++ b/src/GLKit/GLTextureLoader.cs @@ -26,12 +26,8 @@ // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // -using System; -using System.Runtime.InteropServices; -using Foundation; using CoreFoundation; using CoreGraphics; -using ObjCRuntime; #nullable enable diff --git a/src/GameController/Enums.cs b/src/GameController/Enums.cs index 37abeb235e87..2e601abc8d76 100644 --- a/src/GameController/Enums.cs +++ b/src/GameController/Enums.cs @@ -7,11 +7,6 @@ // // Copyright 2019, 2020 Microsoft Corporation -using System; - -using ObjCRuntime; -using Foundation; - namespace GameController { [Deprecated (PlatformName.MacOSX, 10, 15, message: "Use 'GCController.GetMicroGamepadController()' instead.")] [Deprecated (PlatformName.iOS, 13, 0, message: "Use 'GCController.GetMicroGamepadController()' instead.")] diff --git a/src/GameController/GCExtendedGamepadSnapshot.cs b/src/GameController/GCExtendedGamepadSnapshot.cs index 25d92fe802b9..841e308a5c75 100644 --- a/src/GameController/GCExtendedGamepadSnapshot.cs +++ b/src/GameController/GCExtendedGamepadSnapshot.cs @@ -10,12 +10,7 @@ #nullable enable -using System; using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -using ObjCRuntime; -using Foundation; namespace GameController { // GCExtendedGamepadSnapshot.h diff --git a/src/GameController/GCGamepadSnapshot.cs b/src/GameController/GCGamepadSnapshot.cs index aee713657e32..25d45309bdd2 100644 --- a/src/GameController/GCGamepadSnapshot.cs +++ b/src/GameController/GCGamepadSnapshot.cs @@ -8,12 +8,7 @@ #nullable enable -using System; using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -using ObjCRuntime; -using Foundation; namespace GameController { // GCGamepadSnapshot.h diff --git a/src/GameController/GCInput.cs b/src/GameController/GCInput.cs index f9e7ed96d1a5..fc0fb79658f3 100644 --- a/src/GameController/GCInput.cs +++ b/src/GameController/GCInput.cs @@ -3,16 +3,11 @@ #nullable enable -using System; using System.Globalization; using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using System.Runtime.Versioning; using CoreFoundation; using CoreGraphics; -using Foundation; -using ObjCRuntime; namespace GameController { public partial class GCInput { diff --git a/src/GameController/GCMicroGamepadSnapshot.cs b/src/GameController/GCMicroGamepadSnapshot.cs index a79cc4b61a7b..38353502930d 100644 --- a/src/GameController/GCMicroGamepadSnapshot.cs +++ b/src/GameController/GCMicroGamepadSnapshot.cs @@ -2,12 +2,7 @@ #nullable enable -using System; using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -using ObjCRuntime; -using Foundation; namespace GameController { diff --git a/src/GameController/GCMotion.cs b/src/GameController/GCMotion.cs index 134afeb31b1f..e217b5e72a36 100644 --- a/src/GameController/GCMotion.cs +++ b/src/GameController/GCMotion.cs @@ -8,13 +8,6 @@ #nullable enable -using System; -using System.Runtime.Versioning; -using System.Runtime.InteropServices; - -using ObjCRuntime; -using Foundation; - namespace GameController { [SupportedOSPlatform ("ios13.0")] [SupportedOSPlatform ("macos")] diff --git a/src/GameController/GCMouse.cs b/src/GameController/GCMouse.cs index dd0dfd62c675..1238b59171b5 100644 --- a/src/GameController/GCMouse.cs +++ b/src/GameController/GCMouse.cs @@ -1,12 +1,8 @@ #nullable enable -using System; using System.ComponentModel; using System.Diagnostics.CodeAnalysis; -using ObjCRuntime; -using Foundation; - namespace GameController { #if !XAMCORE_5_0 diff --git a/src/GameController/GCPhysicalInputElementCollection.cs b/src/GameController/GCPhysicalInputElementCollection.cs index 60ab33856486..85f3fccf3214 100644 --- a/src/GameController/GCPhysicalInputElementCollection.cs +++ b/src/GameController/GCPhysicalInputElementCollection.cs @@ -1,13 +1,9 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -using System; using System.Collections; using System.Collections.Generic; -using Foundation; -using ObjCRuntime; - #nullable enable namespace GameController { diff --git a/src/GameController/GCPoint2.cs b/src/GameController/GCPoint2.cs index a7ede5ca6445..c6398cdb5779 100644 --- a/src/GameController/GCPoint2.cs +++ b/src/GameController/GCPoint2.cs @@ -3,16 +3,11 @@ #nullable enable -using System; using System.Globalization; using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using System.Runtime.Versioning; using CoreFoundation; using CoreGraphics; -using Foundation; -using ObjCRuntime; namespace GameController { /// Represents an ordered pair of floating-point x- and y-coordinates that defines a point in a two-dimensional plane. diff --git a/src/GameKit/GKCompat.cs b/src/GameKit/GKCompat.cs index 4c7acdd85451..c9e262d7fe5c 100644 --- a/src/GameKit/GKCompat.cs +++ b/src/GameKit/GKCompat.cs @@ -1,9 +1,6 @@ // Copyright 2016 Xamarin Inc. All rights reserved. -using System; using System.ComponentModel; -using Foundation; -using ObjCRuntime; #nullable enable diff --git a/src/GameKit/GKGameCenterViewController.cs b/src/GameKit/GKGameCenterViewController.cs index 393394918b1c..37fa646f31d1 100644 --- a/src/GameKit/GKGameCenterViewController.cs +++ b/src/GameKit/GKGameCenterViewController.cs @@ -1,7 +1,3 @@ -using System; - -using Foundation; -using ObjCRuntime; #nullable enable diff --git a/src/GameKit/GameKit.cs b/src/GameKit/GameKit.cs index 3de59ff47e31..a55e6a008126 100644 --- a/src/GameKit/GameKit.cs +++ b/src/GameKit/GameKit.cs @@ -9,9 +9,6 @@ // Copyright 2012-2014 Xamarin Inc. All rights reserved // -using System; -using ObjCRuntime; -using Foundation; using CoreFoundation; #nullable enable diff --git a/src/GameKit/GameKit2.cs b/src/GameKit/GameKit2.cs index 66c1d0621068..568fe02a3fd0 100644 --- a/src/GameKit/GameKit2.cs +++ b/src/GameKit/GameKit2.cs @@ -8,9 +8,6 @@ // Copyright 2014 Xamarin Inc. All rights reserved // -using System; -using ObjCRuntime; -using Foundation; using CoreFoundation; #nullable enable diff --git a/src/GameplayKit/GKBehavior.cs b/src/GameplayKit/GKBehavior.cs index a9bfd55aff76..ac7cd932ed3d 100644 --- a/src/GameplayKit/GKBehavior.cs +++ b/src/GameplayKit/GKBehavior.cs @@ -9,9 +9,6 @@ #nullable enable -using System; -using Foundation; - namespace GameplayKit { public partial class GKBehavior { diff --git a/src/GameplayKit/GKComponentSystem.cs b/src/GameplayKit/GKComponentSystem.cs index 5688ab52039c..c045d9024b57 100644 --- a/src/GameplayKit/GKComponentSystem.cs +++ b/src/GameplayKit/GKComponentSystem.cs @@ -9,10 +9,6 @@ #nullable enable -using System; -using Foundation; -using ObjCRuntime; - namespace GameplayKit { public partial class GKComponentSystem { diff --git a/src/GameplayKit/GKCompositeBehavior.cs b/src/GameplayKit/GKCompositeBehavior.cs index 8905013b3990..2383a54d7a9c 100644 --- a/src/GameplayKit/GKCompositeBehavior.cs +++ b/src/GameplayKit/GKCompositeBehavior.cs @@ -9,9 +9,6 @@ #nullable enable -using System; -using Foundation; - namespace GameplayKit { public partial class GKCompositeBehavior { diff --git a/src/GameplayKit/GKEntity.cs b/src/GameplayKit/GKEntity.cs index 57017912bbfb..e6c839594d48 100644 --- a/src/GameplayKit/GKEntity.cs +++ b/src/GameplayKit/GKEntity.cs @@ -9,10 +9,6 @@ #nullable enable -using System; -using Foundation; -using ObjCRuntime; - namespace GameplayKit { public partial class GKEntity { diff --git a/src/GameplayKit/GKGameModel.cs b/src/GameplayKit/GKGameModel.cs index fd37b76e1e45..031ca493f75d 100644 --- a/src/GameplayKit/GKGameModel.cs +++ b/src/GameplayKit/GKGameModel.cs @@ -1,7 +1,5 @@ #nullable enable -using System; - namespace GameplayKit { /// Describes gameplay in a way that can be optimized with a . diff --git a/src/GameplayKit/GKGridGraph.cs b/src/GameplayKit/GKGridGraph.cs index 11a295d4cefd..15d699a38a70 100644 --- a/src/GameplayKit/GKGridGraph.cs +++ b/src/GameplayKit/GKGridGraph.cs @@ -9,9 +9,6 @@ #nullable enable -using System; -using ObjCRuntime; - using Vector2i = global::CoreGraphics.NVector2i; namespace GameplayKit { diff --git a/src/GameplayKit/GKHybridStrategist.cs b/src/GameplayKit/GKHybridStrategist.cs index a38bf12a0cf0..053ac320a92c 100644 --- a/src/GameplayKit/GKHybridStrategist.cs +++ b/src/GameplayKit/GKHybridStrategist.cs @@ -1,9 +1,4 @@ -using System; using System.ComponentModel; -using System.Runtime.Versioning; - -using Foundation; -using ObjCRuntime; #nullable enable diff --git a/src/GameplayKit/GKObstacleGraph.cs b/src/GameplayKit/GKObstacleGraph.cs index 9df8dc5ba4d8..9d8a600d7833 100644 --- a/src/GameplayKit/GKObstacleGraph.cs +++ b/src/GameplayKit/GKObstacleGraph.cs @@ -9,10 +9,6 @@ #nullable enable -using System; -using Foundation; -using ObjCRuntime; - namespace GameplayKit { public partial class GKObstacleGraph { diff --git a/src/GameplayKit/GKPath.cs b/src/GameplayKit/GKPath.cs index 40e7cd2c9995..49850e1f2a87 100644 --- a/src/GameplayKit/GKPath.cs +++ b/src/GameplayKit/GKPath.cs @@ -9,12 +9,7 @@ #nullable enable -using System; using System.Numerics; -using Foundation; -using ObjCRuntime; - -using System.Runtime.InteropServices; namespace GameplayKit { public partial class GKPath { diff --git a/src/GameplayKit/GKPolygonObstacle.cs b/src/GameplayKit/GKPolygonObstacle.cs index a6659d8dde59..0dca918ba136 100644 --- a/src/GameplayKit/GKPolygonObstacle.cs +++ b/src/GameplayKit/GKPolygonObstacle.cs @@ -9,11 +9,7 @@ #nullable enable -using System; using System.Numerics; -using Foundation; -using ObjCRuntime; -using System.Runtime.InteropServices; namespace GameplayKit { public partial class GKPolygonObstacle { diff --git a/src/GameplayKit/GKPrimitives.cs b/src/GameplayKit/GKPrimitives.cs index 9532873d3eda..cdc790d2eeda 100644 --- a/src/GameplayKit/GKPrimitives.cs +++ b/src/GameplayKit/GKPrimitives.cs @@ -9,10 +9,7 @@ #nullable enable -using System; using System.Numerics; -using System.Runtime.InteropServices; -using ObjCRuntime; namespace GameplayKit { /// An axis-aligned rectangular three-dimensional box. diff --git a/src/GameplayKit/GKState.cs b/src/GameplayKit/GKState.cs index 20a5d39870d2..2b63aa8a2d92 100644 --- a/src/GameplayKit/GKState.cs +++ b/src/GameplayKit/GKState.cs @@ -9,10 +9,6 @@ #nullable enable -using System; -using Foundation; -using ObjCRuntime; - namespace GameplayKit { public partial class GKState { diff --git a/src/GameplayKit/GKStateMachine.cs b/src/GameplayKit/GKStateMachine.cs index 51c76d95f138..7e7ae94dce50 100644 --- a/src/GameplayKit/GKStateMachine.cs +++ b/src/GameplayKit/GKStateMachine.cs @@ -9,10 +9,6 @@ #nullable enable -using System; -using Foundation; -using ObjCRuntime; - namespace GameplayKit { public partial class GKStateMachine : NSObject { diff --git a/src/GameplayKit/NSArray_GameplayKit.cs b/src/GameplayKit/NSArray_GameplayKit.cs index a5a3ba810dc1..056969c23394 100644 --- a/src/GameplayKit/NSArray_GameplayKit.cs +++ b/src/GameplayKit/NSArray_GameplayKit.cs @@ -9,10 +9,6 @@ #nullable enable -using System; -using Foundation; -using ObjCRuntime; - namespace GameplayKit { /// To be added. /// To be added. diff --git a/src/HealthKit/Enums.cs b/src/HealthKit/Enums.cs index dacbc0411ff3..ff9f55569f9d 100644 --- a/src/HealthKit/Enums.cs +++ b/src/HealthKit/Enums.cs @@ -1,7 +1,4 @@ using CoreFoundation; -using ObjCRuntime; -using Foundation; -using System; namespace HealthKit { // NSInteger -> HKDefines.h diff --git a/src/HealthKit/HKAnchoredObjectQuery.cs b/src/HealthKit/HKAnchoredObjectQuery.cs index 2484e5f25616..a59598a1afb5 100644 --- a/src/HealthKit/HKAnchoredObjectQuery.cs +++ b/src/HealthKit/HKAnchoredObjectQuery.cs @@ -1,7 +1,5 @@ #nullable enable -using System; - namespace HealthKit { public partial class HKAnchoredObjectQuery { diff --git a/src/HealthKit/HKAppleSleepingBreathingDisturbances.cs b/src/HealthKit/HKAppleSleepingBreathingDisturbances.cs index 91bcb63001fa..08d74702c96a 100644 --- a/src/HealthKit/HKAppleSleepingBreathingDisturbances.cs +++ b/src/HealthKit/HKAppleSleepingBreathingDisturbances.cs @@ -1,7 +1,3 @@ -using System; -using System.Runtime.InteropServices; -using ObjCRuntime; -using Foundation; using HKQuantityRef = System.IntPtr; using NSErrorRef = System.IntPtr; diff --git a/src/HealthKit/HKAppleWalkingSteadiness.cs b/src/HealthKit/HKAppleWalkingSteadiness.cs index 1f929616ed5a..551c1c437755 100644 --- a/src/HealthKit/HKAppleWalkingSteadiness.cs +++ b/src/HealthKit/HKAppleWalkingSteadiness.cs @@ -1,7 +1,3 @@ -using System; -using System.Runtime.InteropServices; -using ObjCRuntime; -using Foundation; using HKQuantityRef = System.IntPtr; using NSErrorRef = System.IntPtr; diff --git a/src/HealthKit/HKCategoryValueSleepAnalysisAsleep.cs b/src/HealthKit/HKCategoryValueSleepAnalysisAsleep.cs index a89014c91738..75a6b31d60d8 100644 --- a/src/HealthKit/HKCategoryValueSleepAnalysisAsleep.cs +++ b/src/HealthKit/HKCategoryValueSleepAnalysisAsleep.cs @@ -13,10 +13,6 @@ #if !TVOS -using System; -using Foundation; -using ObjCRuntime; -using System.Runtime.InteropServices; using System.Collections.Generic; namespace HealthKit { diff --git a/src/HealthKit/HKObjectType.cs b/src/HealthKit/HKObjectType.cs index 3daca3fa7694..568a0f93b6a7 100644 --- a/src/HealthKit/HKObjectType.cs +++ b/src/HealthKit/HKObjectType.cs @@ -12,8 +12,6 @@ #nullable enable -using System; -using Foundation; namespace HealthKit { #pragma warning disable CS0618 // Type or member is obsolete public partial class HKQuantityType { diff --git a/src/HealthKit/HKSampleQuery.cs b/src/HealthKit/HKSampleQuery.cs index ebe7595d022d..320b0bc5276f 100644 --- a/src/HealthKit/HKSampleQuery.cs +++ b/src/HealthKit/HKSampleQuery.cs @@ -1,7 +1,5 @@ #nullable enable -using System; - namespace HealthKit { public partial class HKSampleQuery { // #define HKObjectQueryNoLimit (0) diff --git a/src/HealthKit/HKSupportFunctions.cs b/src/HealthKit/HKSupportFunctions.cs index 6bfed2549c96..878aeba8dd79 100644 --- a/src/HealthKit/HKSupportFunctions.cs +++ b/src/HealthKit/HKSupportFunctions.cs @@ -1,11 +1,5 @@ #nullable enable -using System; -using System.Runtime.InteropServices; - -using Foundation; -using ObjCRuntime; - namespace HealthKit { /// This class contains helper functions for the enum. [SupportedOSPlatform ("ios18.0")] diff --git a/src/HealthKit/HKUnit.cs b/src/HealthKit/HKUnit.cs index b55b793f8b76..638a86474cf4 100644 --- a/src/HealthKit/HKUnit.cs +++ b/src/HealthKit/HKUnit.cs @@ -1,7 +1,5 @@ #nullable enable -using System; - namespace HealthKit { public partial class HKUnit { /// The molecular mass of blood glucose. Read-only. diff --git a/src/HomeKit/HMActionSet.cs b/src/HomeKit/HMActionSet.cs index 5223eb5ad21d..749a0d8b1f05 100644 --- a/src/HomeKit/HMActionSet.cs +++ b/src/HomeKit/HMActionSet.cs @@ -1,9 +1,5 @@ #nullable enable -using System; -using ObjCRuntime; -using Foundation; - namespace HomeKit { partial class HMActionSet { diff --git a/src/HomeKit/HMCharacteristic.cs b/src/HomeKit/HMCharacteristic.cs index 4f6b989c3cc9..fe06f59dc6b2 100644 --- a/src/HomeKit/HMCharacteristic.cs +++ b/src/HomeKit/HMCharacteristic.cs @@ -1,9 +1,5 @@ #nullable enable -using System; -using ObjCRuntime; -using Foundation; - namespace HomeKit { partial class HMCharacteristic { diff --git a/src/HomeKit/HMCharacteristicMetadata.cs b/src/HomeKit/HMCharacteristicMetadata.cs index de1b1ec438f9..df4de81839b9 100644 --- a/src/HomeKit/HMCharacteristicMetadata.cs +++ b/src/HomeKit/HMCharacteristicMetadata.cs @@ -1,10 +1,5 @@ #nullable enable -using System; - -using ObjCRuntime; -using Foundation; - namespace HomeKit { public partial class HMCharacteristicMetadata { diff --git a/src/HomeKit/HMCharacteristicProperties.cs b/src/HomeKit/HMCharacteristicProperties.cs index 47f9c242c984..c96d90bd8411 100644 --- a/src/HomeKit/HMCharacteristicProperties.cs +++ b/src/HomeKit/HMCharacteristicProperties.cs @@ -1,10 +1,5 @@ #nullable enable -using System; - -using ObjCRuntime; -using Foundation; - namespace HomeKit { /// Common capabilities of an , such as whether it's writable or supports events. /// To be added. diff --git a/src/HomeKit/HMCompat.cs b/src/HomeKit/HMCompat.cs index ff0f903329a0..0e72d18d8fd6 100644 --- a/src/HomeKit/HMCompat.cs +++ b/src/HomeKit/HMCompat.cs @@ -7,12 +7,9 @@ // Copyright (C) Microsoft Corporation. All rights reserved. // -using System; using System.ComponentModel; using System.Threading.Tasks; -using Foundation; using CoreFoundation; -using ObjCRuntime; #nullable enable namespace HomeKit { diff --git a/src/HomeKit/HMEnums.cs b/src/HomeKit/HMEnums.cs index 53236242c96e..a9c7dd55e791 100644 --- a/src/HomeKit/HMEnums.cs +++ b/src/HomeKit/HMEnums.cs @@ -1,6 +1,3 @@ -using System; -using ObjCRuntime; -using Foundation; namespace HomeKit { diff --git a/src/HomeKit/HMEventTrigger.cs b/src/HomeKit/HMEventTrigger.cs index c48734ba9dc1..956b84d52a1f 100644 --- a/src/HomeKit/HMEventTrigger.cs +++ b/src/HomeKit/HMEventTrigger.cs @@ -1,9 +1,5 @@ #nullable enable -using System; -using ObjCRuntime; -using Foundation; - namespace HomeKit { partial class HMEventTrigger { diff --git a/src/HomeKit/HMHome.cs b/src/HomeKit/HMHome.cs index 73d6ba6b0889..0d737f185701 100644 --- a/src/HomeKit/HMHome.cs +++ b/src/HomeKit/HMHome.cs @@ -1,10 +1,7 @@ #nullable enable -using System; using System.Collections.Generic; using System.Threading.Tasks; -using ObjCRuntime; -using Foundation; namespace HomeKit { diff --git a/src/HomeKit/HMService.cs b/src/HomeKit/HMService.cs index 9e060b3b167c..f036aa32a268 100644 --- a/src/HomeKit/HMService.cs +++ b/src/HomeKit/HMService.cs @@ -1,11 +1,7 @@ #nullable enable -using System; using System.Threading.Tasks; -using ObjCRuntime; -using Foundation; - namespace HomeKit { public partial class HMService { diff --git a/src/IOSurface/IODefs.cs b/src/IOSurface/IODefs.cs index bf6a8a7e19ea..d043809dead5 100644 --- a/src/IOSurface/IODefs.cs +++ b/src/IOSurface/IODefs.cs @@ -9,9 +9,6 @@ #nullable enable -using System; -using ObjCRuntime; - namespace IOSurface { /// To be added. diff --git a/src/IOSurface/IOSurface.cs b/src/IOSurface/IOSurface.cs index 2cb6e1bf912f..665e75858310 100644 --- a/src/IOSurface/IOSurface.cs +++ b/src/IOSurface/IOSurface.cs @@ -25,10 +25,7 @@ #nullable enable -using System; -using System.Runtime.InteropServices; using CoreFoundation; -using ObjCRuntime; namespace IOSurface { public partial class IOSurface { diff --git a/src/IOSurface/IOSurfacePropertyKey.cs b/src/IOSurface/IOSurfacePropertyKey.cs index 1703c2d0d994..f3d80efbf094 100644 --- a/src/IOSurface/IOSurfacePropertyKey.cs +++ b/src/IOSurface/IOSurfacePropertyKey.cs @@ -25,10 +25,6 @@ #nullable enable -using System; -using Foundation; -using ObjCRuntime; - namespace IOSurface { internal static partial class IOSurfacePropertyKey { diff --git a/src/ImageCaptureCore/Defs.cs b/src/ImageCaptureCore/Defs.cs index 5fbf692a4372..114fdbcd1a3c 100644 --- a/src/ImageCaptureCore/Defs.cs +++ b/src/ImageCaptureCore/Defs.cs @@ -24,10 +24,6 @@ // // Defs.cs: Enumerations and definitions for ImageCaptureCore // -using System; - -using Foundation; -using ObjCRuntime; namespace ImageCaptureCore { diff --git a/src/ImageCaptureCore/ICCameraDevice.cs b/src/ImageCaptureCore/ICCameraDevice.cs index 30e008f891b5..f52d77a78568 100644 --- a/src/ImageCaptureCore/ICCameraDevice.cs +++ b/src/ImageCaptureCore/ICCameraDevice.cs @@ -1,6 +1,3 @@ -using System; -using Foundation; -using ObjCRuntime; #nullable enable namespace ImageCaptureCore { diff --git a/src/ImageIO/CGImageAnimation.cs b/src/ImageIO/CGImageAnimation.cs index c2d57b1ed03e..bd8bd6f402f1 100644 --- a/src/ImageIO/CGImageAnimation.cs +++ b/src/ImageIO/CGImageAnimation.cs @@ -9,12 +9,8 @@ #nullable enable -using System; -using System.Runtime.InteropServices; using CoreFoundation; using CoreGraphics; -using Foundation; -using ObjCRuntime; namespace ImageIO { [SupportedOSPlatform ("ios")] diff --git a/src/ImageIO/CGImageDestination.cs b/src/ImageIO/CGImageDestination.cs index fd7e0f72d65b..40051103ed3b 100644 --- a/src/ImageIO/CGImageDestination.cs +++ b/src/ImageIO/CGImageDestination.cs @@ -26,12 +26,8 @@ #nullable enable -using System; using System.ComponentModel; -using System.Runtime.InteropServices; -using ObjCRuntime; -using Foundation; using CoreFoundation; using CoreGraphics; diff --git a/src/ImageIO/CGImageMetadata.cs b/src/ImageIO/CGImageMetadata.cs index 4d9fc5b0d54e..ba8540daea86 100644 --- a/src/ImageIO/CGImageMetadata.cs +++ b/src/ImageIO/CGImageMetadata.cs @@ -9,11 +9,6 @@ #nullable enable -using System; -using System.Runtime.InteropServices; - -using ObjCRuntime; -using Foundation; using CoreFoundation; namespace ImageIO { diff --git a/src/ImageIO/CGImageMetadataTag.cs b/src/ImageIO/CGImageMetadataTag.cs index 23072e4fe1db..779f9cc11c5d 100644 --- a/src/ImageIO/CGImageMetadataTag.cs +++ b/src/ImageIO/CGImageMetadataTag.cs @@ -9,12 +9,7 @@ #nullable enable -using System; -using System.Runtime.InteropServices; - using CoreFoundation; -using ObjCRuntime; -using Foundation; namespace ImageIO { diff --git a/src/ImageIO/CGImageSource.cs b/src/ImageIO/CGImageSource.cs index 38d289a953d4..eb602f3cce78 100644 --- a/src/ImageIO/CGImageSource.cs +++ b/src/ImageIO/CGImageSource.cs @@ -28,12 +28,8 @@ #nullable enable -using System; using System.ComponentModel; -using System.Runtime.InteropServices; -using ObjCRuntime; -using Foundation; using CoreFoundation; using CoreGraphics; diff --git a/src/ImageIO/CGImageSource.iOS.cs b/src/ImageIO/CGImageSource.iOS.cs index be045742d82e..c6f9a5bd39e8 100644 --- a/src/ImageIO/CGImageSource.iOS.cs +++ b/src/ImageIO/CGImageSource.iOS.cs @@ -9,12 +9,7 @@ #if !MONOMAC -using System; using System.ComponentModel; -using System.Runtime.InteropServices; - -using ObjCRuntime; -using Foundation; namespace ImageIO { diff --git a/src/ImageIO/CGMutableImageMetadata.cs b/src/ImageIO/CGMutableImageMetadata.cs index 0f2974107afb..ab001fe3505a 100644 --- a/src/ImageIO/CGMutableImageMetadata.cs +++ b/src/ImageIO/CGMutableImageMetadata.cs @@ -9,12 +9,7 @@ #nullable enable -using System; -using System.Runtime.InteropServices; - using CoreFoundation; -using Foundation; -using ObjCRuntime; namespace ImageIO { /// A mutable container of metadata. (See .) diff --git a/src/ImageIO/Enums.cs b/src/ImageIO/Enums.cs index 95212bb47558..454931ccfb9f 100644 --- a/src/ImageIO/Enums.cs +++ b/src/ImageIO/Enums.cs @@ -8,9 +8,6 @@ // Copyright 2020, Microsoft Corp. // -using System; -using ObjCRuntime; - namespace ImageIO { // untyped enum -> CGImageMetadata.h diff --git a/src/ImageKit/Enums.cs b/src/ImageKit/Enums.cs index 714d4127c9e6..515f684eb1ef 100644 --- a/src/ImageKit/Enums.cs +++ b/src/ImageKit/Enums.cs @@ -29,10 +29,6 @@ #nullable enable -using System; - -using ObjCRuntime; - namespace ImageKit { /// To be added. diff --git a/src/Intents/INCallRecord.cs b/src/Intents/INCallRecord.cs index 88e62c9870ec..ccde8c43edc1 100644 --- a/src/Intents/INCallRecord.cs +++ b/src/Intents/INCallRecord.cs @@ -8,9 +8,6 @@ // #if !TVOS -using System; -using Foundation; -using ObjCRuntime; #nullable enable diff --git a/src/Intents/INIntentResolutionResult.cs b/src/Intents/INIntentResolutionResult.cs index aba6188e1d75..16fe83c4c00a 100644 --- a/src/Intents/INIntentResolutionResult.cs +++ b/src/Intents/INIntentResolutionResult.cs @@ -7,10 +7,6 @@ // Copyright 2016 Xamarin Inc. All rights reserved. // -using System; -using Foundation; -using ObjCRuntime; - #nullable enable namespace Intents { diff --git a/src/Intents/INInteraction.cs b/src/Intents/INInteraction.cs index 1c5f97d47f4a..47873463a88d 100644 --- a/src/Intents/INInteraction.cs +++ b/src/Intents/INInteraction.cs @@ -8,9 +8,6 @@ // #if IOS -using System; -using Foundation; -using ObjCRuntime; #nullable enable diff --git a/src/Intents/INPerson.cs b/src/Intents/INPerson.cs index e1370aca2438..cbf85368c76a 100644 --- a/src/Intents/INPerson.cs +++ b/src/Intents/INPerson.cs @@ -1,7 +1,4 @@ -using System; using CoreGraphics; -using Foundation; -using ObjCRuntime; #nullable enable diff --git a/src/Intents/INPlayMediaIntentResponse.cs b/src/Intents/INPlayMediaIntentResponse.cs index 9a69ce1ec378..048f4420a92e 100644 --- a/src/Intents/INPlayMediaIntentResponse.cs +++ b/src/Intents/INPlayMediaIntentResponse.cs @@ -8,9 +8,6 @@ // #if !MONOMAC -using System; -using Foundation; -using ObjCRuntime; using MediaPlayer; #nullable enable diff --git a/src/Intents/INPriceRange.cs b/src/Intents/INPriceRange.cs index 28761aeffed7..2c8ea831c471 100644 --- a/src/Intents/INPriceRange.cs +++ b/src/Intents/INPriceRange.cs @@ -8,8 +8,6 @@ // #if IOS -using System; -using Foundation; #nullable enable diff --git a/src/Intents/INSearchCallHistoryIntent.cs b/src/Intents/INSearchCallHistoryIntent.cs index 2b82b2bf4781..1b3bc9b196b0 100644 --- a/src/Intents/INSearchCallHistoryIntent.cs +++ b/src/Intents/INSearchCallHistoryIntent.cs @@ -9,9 +9,6 @@ #if !__MACOS__ #if !TVOS -using System; -using Foundation; -using ObjCRuntime; #nullable enable diff --git a/src/Intents/INSetCarLockStatusIntent.cs b/src/Intents/INSetCarLockStatusIntent.cs index c065290119eb..d928ee731fa5 100644 --- a/src/Intents/INSetCarLockStatusIntent.cs +++ b/src/Intents/INSetCarLockStatusIntent.cs @@ -9,9 +9,7 @@ #if IOS -using Foundation; using Intents; -using ObjCRuntime; namespace Intents { diff --git a/src/Intents/INSetClimateSettingsInCarIntent.cs b/src/Intents/INSetClimateSettingsInCarIntent.cs index aea61a9ec391..fb23e8d45631 100644 --- a/src/Intents/INSetClimateSettingsInCarIntent.cs +++ b/src/Intents/INSetClimateSettingsInCarIntent.cs @@ -1,8 +1,5 @@ #if IOS -using System; -using Foundation; using Intents; -using ObjCRuntime; #nullable enable diff --git a/src/Intents/INSetDefrosterSettingsInCarIntent.cs b/src/Intents/INSetDefrosterSettingsInCarIntent.cs index f76d024c874e..ed2e3879e7b7 100644 --- a/src/Intents/INSetDefrosterSettingsInCarIntent.cs +++ b/src/Intents/INSetDefrosterSettingsInCarIntent.cs @@ -1,8 +1,5 @@ #if IOS -using System; -using Foundation; using Intents; -using ObjCRuntime; #nullable enable diff --git a/src/Intents/INSetProfileInCarIntent.cs b/src/Intents/INSetProfileInCarIntent.cs index 7c06b6059ca2..599240ac3a58 100644 --- a/src/Intents/INSetProfileInCarIntent.cs +++ b/src/Intents/INSetProfileInCarIntent.cs @@ -1,8 +1,5 @@ #if IOS -using System; -using Foundation; using Intents; -using ObjCRuntime; using UIKit; #nullable enable diff --git a/src/Intents/INSetSeatSettingsInCarIntent.cs b/src/Intents/INSetSeatSettingsInCarIntent.cs index 9480a8aa40bc..c035412f7403 100644 --- a/src/Intents/INSetSeatSettingsInCarIntent.cs +++ b/src/Intents/INSetSeatSettingsInCarIntent.cs @@ -1,8 +1,5 @@ #if IOS -using System; -using Foundation; using Intents; -using ObjCRuntime; #nullable enable diff --git a/src/Intents/INStartWorkoutIntent.cs b/src/Intents/INStartWorkoutIntent.cs index f5bb1c09ca0d..86e7ccbdefc6 100644 --- a/src/Intents/INStartWorkoutIntent.cs +++ b/src/Intents/INStartWorkoutIntent.cs @@ -1,9 +1,7 @@ #if IOS #if !__MACOS__ -using Foundation; using Intents; -using ObjCRuntime; #nullable enable diff --git a/src/JavaScriptCore/Enums.cs b/src/JavaScriptCore/Enums.cs index 2277683fce8c..ec3809f11422 100644 --- a/src/JavaScriptCore/Enums.cs +++ b/src/JavaScriptCore/Enums.cs @@ -6,10 +6,6 @@ // // Copyright 2013-2014 Xamarin Inc. -using System; - -using ObjCRuntime; - namespace JavaScriptCore { // untyped enum -> JSValueRef.h /// An enumeration whose values specify JavaScript types, including Object and undefined. diff --git a/src/JavaScriptCore/Extensions.cs b/src/JavaScriptCore/Extensions.cs index 47d6600a3549..9cd79f739eb0 100644 --- a/src/JavaScriptCore/Extensions.cs +++ b/src/JavaScriptCore/Extensions.cs @@ -8,9 +8,6 @@ #nullable enable -using System; -using Foundation; - namespace JavaScriptCore { public partial class JSContext { diff --git a/src/LocalAuthentication/LADomainStateCompanion.cs b/src/LocalAuthentication/LADomainStateCompanion.cs index cf87dbd7c1dc..5c1247d27726 100644 --- a/src/LocalAuthentication/LADomainStateCompanion.cs +++ b/src/LocalAuthentication/LADomainStateCompanion.cs @@ -1,5 +1,4 @@ #if !TV -using Foundation; namespace LocalAuthentication { public partial class LADomainStateCompanion { diff --git a/src/LocalAuthentication/LAEnums.cs b/src/LocalAuthentication/LAEnums.cs index 70993569d022..4952b7c0078f 100644 --- a/src/LocalAuthentication/LAEnums.cs +++ b/src/LocalAuthentication/LAEnums.cs @@ -1,9 +1,3 @@ -using System; -using System.ComponentModel; - -using ObjCRuntime; -using Foundation; - namespace LocalAuthentication { /// Authentication policies. diff --git a/src/MLCompute/MLHelpers.cs b/src/MLCompute/MLHelpers.cs index 1fb7ae734813..8c18ed336c83 100644 --- a/src/MLCompute/MLHelpers.cs +++ b/src/MLCompute/MLHelpers.cs @@ -1,11 +1,6 @@ #nullable enable -using System; -using System.Runtime.InteropServices; - using CoreFoundation; -using Foundation; -using ObjCRuntime; namespace MLCompute { [SupportedOSPlatform ("ios14.0")] diff --git a/src/Makefile.generator b/src/Makefile.generator index b7ffc65b888c..339ee1e79870 100644 --- a/src/Makefile.generator +++ b/src/Makefile.generator @@ -71,6 +71,6 @@ $(RSP_DIR)/dotnet/%-defines-dotnet.rsp: frameworks.sources Makefile.generator $( $(Q) $(GENERATE_DEFINES_EXEC) $@.tmp '$(filter-out $(DOTNET_REMOVED_$(shell echo $* | tr a-z A-Z)_FRAMEWORKS),$($(shell echo $* | tr a-z A-Z)_FRAMEWORKS))' $(Q) mv $@.tmp $@ -$(DOTNET_BUILD_DIR)/Xamarin.Apple.BindingAttributes.dll: bgen/Attributes.cs bgen/PlatformName.cs Makefile.generator | $(DOTNET_BUILD_DIR) - $(Q_DOTNET_BUILD) $(DOTNET_CSC) $(DOTNET_FLAGS) -out:$@ bgen/Attributes.cs bgen/PlatformName.cs +$(DOTNET_BUILD_DIR)/Xamarin.Apple.BindingAttributes.dll: bgen/Attributes.cs bgen/PlatformName.cs bgen/DotnetGlobals.cs Makefile.generator | $(DOTNET_BUILD_DIR) + $(Q_DOTNET_BUILD) $(DOTNET_CSC) $(DOTNET_FLAGS) -d:BINDING_ATTRIBUTES_DLL -out:$@ bgen/Attributes.cs bgen/PlatformName.cs bgen/DotnetGlobals.cs diff --git a/src/MapKit/MKAddressFilter.cs b/src/MapKit/MKAddressFilter.cs index a83c311efe03..a5da3af09fa4 100644 --- a/src/MapKit/MKAddressFilter.cs +++ b/src/MapKit/MKAddressFilter.cs @@ -1,7 +1,3 @@ -using System; -using System.Runtime.InteropServices; -using Foundation; -using ObjCRuntime; using MapKit; #nullable enable diff --git a/src/MapKit/MKEnums.cs b/src/MapKit/MKEnums.cs index 95f6a212c6e6..fd6d5faaaf7d 100644 --- a/src/MapKit/MKEnums.cs +++ b/src/MapKit/MKEnums.cs @@ -8,12 +8,8 @@ // Copyright 2014-2016 Xamarin Inc. // -using System; -using System.Runtime.InteropServices; using CoreGraphics; using CoreLocation; -using Foundation; -using ObjCRuntime; #nullable enable diff --git a/src/MapKit/MKFeatureDisplayPriority.cs b/src/MapKit/MKFeatureDisplayPriority.cs index c36449176c86..8e51c58cc9e5 100644 --- a/src/MapKit/MKFeatureDisplayPriority.cs +++ b/src/MapKit/MKFeatureDisplayPriority.cs @@ -1,5 +1,3 @@ -using System; -using ObjCRuntime; #nullable enable diff --git a/src/MapKit/MKGeodesicPolyline.cs b/src/MapKit/MKGeodesicPolyline.cs index 8eb314f11905..c668d8a3e00a 100644 --- a/src/MapKit/MKGeodesicPolyline.cs +++ b/src/MapKit/MKGeodesicPolyline.cs @@ -24,12 +24,9 @@ // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // -using System; using System.Threading.Tasks; using System.Threading; -using Foundation; -using ObjCRuntime; using CoreLocation; #nullable enable diff --git a/src/MapKit/MKLocalSearch.cs b/src/MapKit/MKLocalSearch.cs index a192e37c86e3..bb08e9ed7133 100644 --- a/src/MapKit/MKLocalSearch.cs +++ b/src/MapKit/MKLocalSearch.cs @@ -25,10 +25,8 @@ // #pragma warning disable 414 -using System; using System.Threading.Tasks; using System.Threading; -using Foundation; #nullable enable diff --git a/src/MapKit/MKMapCameraZoomRange.cs b/src/MapKit/MKMapCameraZoomRange.cs index 930d15d4980c..ded64ea31eaf 100644 --- a/src/MapKit/MKMapCameraZoomRange.cs +++ b/src/MapKit/MKMapCameraZoomRange.cs @@ -1,7 +1,3 @@ -using System; - -using Foundation; -using ObjCRuntime; #nullable enable diff --git a/src/MapKit/MKMapItem.cs b/src/MapKit/MKMapItem.cs index 220c3041eb4c..e468bb92d5b8 100644 --- a/src/MapKit/MKMapItem.cs +++ b/src/MapKit/MKMapItem.cs @@ -7,10 +7,7 @@ #if !TVOS - -using Foundation; using CoreLocation; -using ObjCRuntime; #nullable enable diff --git a/src/MapKit/MKMultiPoint.cs b/src/MapKit/MKMultiPoint.cs index 7fc47c2fa952..bd9ebe94faef 100644 --- a/src/MapKit/MKMultiPoint.cs +++ b/src/MapKit/MKMultiPoint.cs @@ -1,8 +1,4 @@ -using System; -using System.Runtime.InteropServices; -using Foundation; using CoreLocation; -using ObjCRuntime; #nullable enable diff --git a/src/MapKit/MKOverlayRenderer.cs b/src/MapKit/MKOverlayRenderer.cs index 1a919d1097c3..95c3b396ae50 100644 --- a/src/MapKit/MKOverlayRenderer.cs +++ b/src/MapKit/MKOverlayRenderer.cs @@ -1,7 +1,3 @@ -using System; -using System.Runtime.InteropServices; -using Foundation; -using ObjCRuntime; using MapKit; #nullable enable diff --git a/src/MapKit/MKOverlayView.cs b/src/MapKit/MKOverlayView.cs index 33fedfc8a5dd..5756f0cd7e69 100644 --- a/src/MapKit/MKOverlayView.cs +++ b/src/MapKit/MKOverlayView.cs @@ -4,10 +4,6 @@ #if !XAMCORE_5_0 -using System; -using System.Runtime.InteropServices; -using Foundation; -using ObjCRuntime; using MapKit; #nullable enable diff --git a/src/MapKit/MKPointOfInterestFilter.cs b/src/MapKit/MKPointOfInterestFilter.cs index c5d41185a1a8..733a81d82933 100644 --- a/src/MapKit/MKPointOfInterestFilter.cs +++ b/src/MapKit/MKPointOfInterestFilter.cs @@ -1,7 +1,3 @@ -using System; - -using Foundation; -using ObjCRuntime; #nullable enable diff --git a/src/MapKit/MKPolygon.cs b/src/MapKit/MKPolygon.cs index 8f80f889fc04..071d21aa5780 100644 --- a/src/MapKit/MKPolygon.cs +++ b/src/MapKit/MKPolygon.cs @@ -1,8 +1,4 @@ -using System; -using System.Runtime.InteropServices; -using Foundation; using CoreLocation; -using ObjCRuntime; #nullable enable diff --git a/src/MapKit/MKPolyline.cs b/src/MapKit/MKPolyline.cs index f2d3c5c73d88..469dd9dfb200 100644 --- a/src/MapKit/MKPolyline.cs +++ b/src/MapKit/MKPolyline.cs @@ -1,8 +1,4 @@ -using System; -using System.Runtime.InteropServices; -using Foundation; using CoreLocation; -using ObjCRuntime; #nullable enable diff --git a/src/MapKit/MapKit.cs b/src/MapKit/MapKit.cs index c4ff0a14162e..e790af57103d 100644 --- a/src/MapKit/MapKit.cs +++ b/src/MapKit/MapKit.cs @@ -8,13 +8,9 @@ // Copyright 2014-2015 Xamarin Inc. // -using System; using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; using CoreGraphics; using CoreLocation; -using Foundation; -using ObjCRuntime; #nullable enable diff --git a/src/MapKit/NSValue.cs b/src/MapKit/NSValue.cs index d6173559e896..debe49dd5781 100644 --- a/src/MapKit/NSValue.cs +++ b/src/MapKit/NSValue.cs @@ -1,9 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -using System; -using System.Runtime.InteropServices; -using ObjCRuntime; using MapKit; #nullable enable diff --git a/src/MediaAccessibility/MAEnums.cs b/src/MediaAccessibility/MAEnums.cs index 1dd41b6ce4a3..2c08feac9044 100644 --- a/src/MediaAccessibility/MAEnums.cs +++ b/src/MediaAccessibility/MAEnums.cs @@ -6,14 +6,9 @@ // // Copyright 2013, 2015 Xamarin Inc. -using System; -using System.Runtime.InteropServices; - -using ObjCRuntime; using CoreFoundation; using CoreGraphics; using CoreText; -using Foundation; namespace MediaAccessibility { diff --git a/src/MediaAccessibility/MAImageCaptioning.cs b/src/MediaAccessibility/MAImageCaptioning.cs index 6d1d94a58037..e431848613e3 100644 --- a/src/MediaAccessibility/MAImageCaptioning.cs +++ b/src/MediaAccessibility/MAImageCaptioning.cs @@ -1,13 +1,8 @@ #nullable enable -using System; -using System.Runtime.InteropServices; - -using ObjCRuntime; using CoreFoundation; using CoreGraphics; using CoreText; -using Foundation; namespace MediaAccessibility { [SupportedOSPlatform ("tvos13.0")] diff --git a/src/MediaAccessibility/MediaAccessibility.cs b/src/MediaAccessibility/MediaAccessibility.cs index 449e99921397..b6dcc8cf8757 100644 --- a/src/MediaAccessibility/MediaAccessibility.cs +++ b/src/MediaAccessibility/MediaAccessibility.cs @@ -8,14 +8,9 @@ #nullable enable -using System; -using System.Runtime.InteropServices; - -using ObjCRuntime; using CoreFoundation; using CoreGraphics; using CoreText; -using Foundation; namespace MediaAccessibility { [SupportedOSPlatform ("ios")] diff --git a/src/MediaExtension/MEByteSource.cs b/src/MediaExtension/MEByteSource.cs index 38aea7a2c1d0..588b0fa029be 100644 --- a/src/MediaExtension/MEByteSource.cs +++ b/src/MediaExtension/MEByteSource.cs @@ -1,8 +1,4 @@ #if MONOMAC -using System; - -using Foundation; -using ObjCRuntime; namespace MediaExtension { public partial class MEByteSource { diff --git a/src/MediaExtension/MERawProcessingBooleanParameter.cs b/src/MediaExtension/MERawProcessingBooleanParameter.cs index 9dc65dd8dbf6..d366eb0a20fb 100644 --- a/src/MediaExtension/MERawProcessingBooleanParameter.cs +++ b/src/MediaExtension/MERawProcessingBooleanParameter.cs @@ -1,8 +1,4 @@ #if MONOMAC -using System; - -using Foundation; -using ObjCRuntime; namespace MediaExtension { /// This enum is used to select how to initialize a new instance of a . diff --git a/src/MediaExtension/MERawProcessingFloatParameter.cs b/src/MediaExtension/MERawProcessingFloatParameter.cs index 36b61f85daa1..f0b73bcc0df6 100644 --- a/src/MediaExtension/MERawProcessingFloatParameter.cs +++ b/src/MediaExtension/MERawProcessingFloatParameter.cs @@ -1,8 +1,4 @@ #if MONOMAC -using System; - -using Foundation; -using ObjCRuntime; namespace MediaExtension { /// This enum is used to select how to initialize a new instance of a . diff --git a/src/MediaExtension/MERawProcessingIntegerParameter.cs b/src/MediaExtension/MERawProcessingIntegerParameter.cs index 650051f417cb..0999826e940a 100644 --- a/src/MediaExtension/MERawProcessingIntegerParameter.cs +++ b/src/MediaExtension/MERawProcessingIntegerParameter.cs @@ -1,8 +1,4 @@ #if MONOMAC -using System; - -using Foundation; -using ObjCRuntime; namespace MediaExtension { /// This enum is used to select how to initialize a new instance of a . diff --git a/src/MediaExtension/MERawProcessingListParameter.cs b/src/MediaExtension/MERawProcessingListParameter.cs index da5bc0e97a8a..78faa8ab80b1 100644 --- a/src/MediaExtension/MERawProcessingListParameter.cs +++ b/src/MediaExtension/MERawProcessingListParameter.cs @@ -1,8 +1,4 @@ #if MONOMAC -using System; - -using Foundation; -using ObjCRuntime; namespace MediaExtension { /// This enum is used to select how to initialize a new instance of a . diff --git a/src/MediaExtension/MESampleCursor.cs b/src/MediaExtension/MESampleCursor.cs index b387c1aa8dc7..5ea10f2d6bfe 100644 --- a/src/MediaExtension/MESampleCursor.cs +++ b/src/MediaExtension/MESampleCursor.cs @@ -1,9 +1,6 @@ #if MONOMAC -using System; using AVFoundation; -using Foundation; -using ObjCRuntime; namespace MediaExtension { public partial interface IMESampleCursor { diff --git a/src/MediaLibrary/Enums.cs b/src/MediaLibrary/Enums.cs index c3173d84b3f6..aadacc6ced1d 100644 --- a/src/MediaLibrary/Enums.cs +++ b/src/MediaLibrary/Enums.cs @@ -20,8 +20,6 @@ // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // -using System; -using ObjCRuntime; namespace MediaLibrary { [Native] diff --git a/src/MediaPlayer/MPMediaItem.cs b/src/MediaPlayer/MPMediaItem.cs index 963606c54f05..03e6501fea8f 100644 --- a/src/MediaPlayer/MPMediaItem.cs +++ b/src/MediaPlayer/MPMediaItem.cs @@ -11,10 +11,7 @@ #if !MONOMAC -using System; using System.Collections; -using Foundation; -using ObjCRuntime; using CoreGraphics; #nullable enable diff --git a/src/MediaPlayer/MPMediaItemArtwork.cs b/src/MediaPlayer/MPMediaItemArtwork.cs index 779da7f5d39e..e6bb39bd9262 100644 --- a/src/MediaPlayer/MPMediaItemArtwork.cs +++ b/src/MediaPlayer/MPMediaItemArtwork.cs @@ -9,10 +9,7 @@ #if !TVOS && !MONOMAC -using System; using System.Collections; -using Foundation; -using ObjCRuntime; using CoreGraphics; #nullable enable diff --git a/src/MediaPlayer/MPMediaQuery.cs b/src/MediaPlayer/MPMediaQuery.cs index 91494c653bb7..6f974376d383 100644 --- a/src/MediaPlayer/MPMediaQuery.cs +++ b/src/MediaPlayer/MPMediaQuery.cs @@ -11,10 +11,6 @@ #if !TVOS && !MONOMAC -using System; -using Foundation; -using ObjCRuntime; - #nullable enable namespace MediaPlayer { diff --git a/src/MediaPlayer/MPNowPlayingInfoCenter.cs b/src/MediaPlayer/MPNowPlayingInfoCenter.cs index fddf3bf29132..9f86b3696296 100644 --- a/src/MediaPlayer/MPNowPlayingInfoCenter.cs +++ b/src/MediaPlayer/MPNowPlayingInfoCenter.cs @@ -9,9 +9,6 @@ using System.Diagnostics.CodeAnalysis; -using Foundation; -using ObjCRuntime; - #nullable enable namespace MediaPlayer { diff --git a/src/MediaPlayer/MPSkipIntervalCommand.cs b/src/MediaPlayer/MPSkipIntervalCommand.cs index e180d12ada7f..bfdafeadc59f 100644 --- a/src/MediaPlayer/MPSkipIntervalCommand.cs +++ b/src/MediaPlayer/MPSkipIntervalCommand.cs @@ -7,10 +7,6 @@ // Copyright 2013 Xamarin Inc. All rights reserved. // -using System; -using Foundation; -using ObjCRuntime; - #nullable enable namespace MediaPlayer { diff --git a/src/MediaPlayer/MPVolumeSettings.cs b/src/MediaPlayer/MPVolumeSettings.cs index 11289bacf984..cd0eb9da7496 100644 --- a/src/MediaPlayer/MPVolumeSettings.cs +++ b/src/MediaPlayer/MPVolumeSettings.cs @@ -8,11 +8,6 @@ #if !TVOS && !MONOMAC -using System; -using System.Runtime.InteropServices; -using Foundation; -using ObjCRuntime; - #nullable enable namespace MediaPlayer { diff --git a/src/MediaPlayer/MediaPlayer.cs b/src/MediaPlayer/MediaPlayer.cs index d2b1b97a9279..0a083c99f6d0 100644 --- a/src/MediaPlayer/MediaPlayer.cs +++ b/src/MediaPlayer/MediaPlayer.cs @@ -8,9 +8,6 @@ // Copyright 2011-2015 Xamarin, Inc. // -using System; -using Foundation; -using ObjCRuntime; #nullable enable diff --git a/src/MediaToolbox/MTAudioProcessingTap.cs b/src/MediaToolbox/MTAudioProcessingTap.cs index c56e917d3de0..c8c58e2e20ac 100644 --- a/src/MediaToolbox/MTAudioProcessingTap.cs +++ b/src/MediaToolbox/MTAudioProcessingTap.cs @@ -34,13 +34,9 @@ #nullable enable -using System; using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; using System.Collections.Generic; -using Foundation; using CoreFoundation; -using ObjCRuntime; using AudioToolbox; using CoreMedia; diff --git a/src/MediaToolbox/MTFormatNames.cs b/src/MediaToolbox/MTFormatNames.cs index 735cdd9b968a..7c0af5f9909c 100644 --- a/src/MediaToolbox/MTFormatNames.cs +++ b/src/MediaToolbox/MTFormatNames.cs @@ -2,11 +2,8 @@ #nullable enable -using System; -using System.Runtime.InteropServices; using CoreFoundation; using CoreMedia; -using ObjCRuntime; namespace MediaToolbox { /// To be added. diff --git a/src/MediaToolbox/MTProfessionalVideoWorkflow.cs b/src/MediaToolbox/MTProfessionalVideoWorkflow.cs index 159ca5a0781a..4da47459b3dd 100644 --- a/src/MediaToolbox/MTProfessionalVideoWorkflow.cs +++ b/src/MediaToolbox/MTProfessionalVideoWorkflow.cs @@ -2,11 +2,6 @@ #if MONOMAC -using System; -using System.Runtime.InteropServices; - -using ObjCRuntime; - namespace MediaToolbox { /// To be added. /// To be added. diff --git a/src/MessageUI/MessageUI.cs b/src/MessageUI/MessageUI.cs index f61d51d046a0..49681c5aef1c 100644 --- a/src/MessageUI/MessageUI.cs +++ b/src/MessageUI/MessageUI.cs @@ -8,8 +8,6 @@ // Copyright 2014 Xamarin, Inc. // -using ObjCRuntime; - namespace MessageUI { /// The result from composing an email message. [Native] diff --git a/src/MessageUI/MessageUI2.cs b/src/MessageUI/MessageUI2.cs index 0c5a2568dcc5..a38b457632db 100644 --- a/src/MessageUI/MessageUI2.cs +++ b/src/MessageUI/MessageUI2.cs @@ -9,9 +9,6 @@ #nullable enable -using System; -using ObjCRuntime; -using Foundation; using CoreFoundation; namespace MessageUI { diff --git a/src/Metal/Defs.cs b/src/Metal/Defs.cs index 1ad11b289168..b99e58758a15 100644 --- a/src/Metal/Defs.cs +++ b/src/Metal/Defs.cs @@ -6,13 +6,9 @@ // // Copyrigh 2014, Xamarin Inc. // -using System; using System.ComponentModel; -using System.Runtime.InteropServices; -using Foundation; using ModelIO; -using ObjCRuntime; #nullable enable diff --git a/src/Metal/MTLArgumentEncoder.cs b/src/Metal/MTLArgumentEncoder.cs index 9dbba9588e05..fc4a98352f67 100644 --- a/src/Metal/MTLArgumentEncoder.cs +++ b/src/Metal/MTLArgumentEncoder.cs @@ -1,7 +1,3 @@ -using System; -using System.Runtime.InteropServices; -using Foundation; -using ObjCRuntime; #nullable enable diff --git a/src/Metal/MTLArrays.cs b/src/Metal/MTLArrays.cs index 04bc430d7041..67d33fd32054 100644 --- a/src/Metal/MTLArrays.cs +++ b/src/Metal/MTLArrays.cs @@ -7,12 +7,7 @@ // Copyrigh 2014, Xamarin Inc. // -using System; using System.ComponentModel; -using System.Runtime.InteropServices; - -using Foundation; -using ObjCRuntime; #nullable enable diff --git a/src/Metal/MTLBlitPassSampleBufferAttachmentDescriptorArray.cs b/src/Metal/MTLBlitPassSampleBufferAttachmentDescriptorArray.cs index 1ea55e8c6513..99420b3245a5 100644 --- a/src/Metal/MTLBlitPassSampleBufferAttachmentDescriptorArray.cs +++ b/src/Metal/MTLBlitPassSampleBufferAttachmentDescriptorArray.cs @@ -1,4 +1,3 @@ -using System; #nullable enable diff --git a/src/Metal/MTLCommandBuffer.cs b/src/Metal/MTLCommandBuffer.cs index 5ac68194d1fa..1a86ee6ff011 100644 --- a/src/Metal/MTLCommandBuffer.cs +++ b/src/Metal/MTLCommandBuffer.cs @@ -1,6 +1,3 @@ -using System; - -using ObjCRuntime; #nullable enable diff --git a/src/Metal/MTLCommandQueue.cs b/src/Metal/MTLCommandQueue.cs index fccf608bd2ae..8df33343b6b8 100644 --- a/src/Metal/MTLCommandQueue.cs +++ b/src/Metal/MTLCommandQueue.cs @@ -1,6 +1,3 @@ -using System; - -using ObjCRuntime; #nullable enable diff --git a/src/Metal/MTLComputeCommandEncoder.cs b/src/Metal/MTLComputeCommandEncoder.cs index 40c621f58e80..c19a1fe48871 100644 --- a/src/Metal/MTLComputeCommandEncoder.cs +++ b/src/Metal/MTLComputeCommandEncoder.cs @@ -1,7 +1,3 @@ -using System; -using System.Runtime.InteropServices; -using Foundation; -using ObjCRuntime; #nullable enable diff --git a/src/Metal/MTLComputePassSampleBufferAttachmentDescriptorArray.cs b/src/Metal/MTLComputePassSampleBufferAttachmentDescriptorArray.cs index 0505cdf91b95..511f3291ab70 100644 --- a/src/Metal/MTLComputePassSampleBufferAttachmentDescriptorArray.cs +++ b/src/Metal/MTLComputePassSampleBufferAttachmentDescriptorArray.cs @@ -1,4 +1,3 @@ -using System; #nullable enable diff --git a/src/Metal/MTLDevice.cs b/src/Metal/MTLDevice.cs index 02ba3768c48a..453a1f30daac 100644 --- a/src/Metal/MTLDevice.cs +++ b/src/Metal/MTLDevice.cs @@ -7,12 +7,7 @@ // Copyrigh 2014-2015, Xamarin Inc. // -using System; using System.ComponentModel; -using System.Runtime.InteropServices; - -using Foundation; -using ObjCRuntime; #nullable enable diff --git a/src/Metal/MTLEnums.cs b/src/Metal/MTLEnums.cs index 19132bee9bbd..0be1e6863b37 100644 --- a/src/Metal/MTLEnums.cs +++ b/src/Metal/MTLEnums.cs @@ -6,13 +6,9 @@ // // Copyrigh 2014, Xamarin Inc. // -using System; using System.ComponentModel; -using System.Runtime.InteropServices; using CoreFoundation; -using Foundation; using ModelIO; -using ObjCRuntime; #nullable enable diff --git a/src/Metal/MTLIOCompression.cs b/src/Metal/MTLIOCompression.cs index 8d3c62215983..79643cb49fea 100644 --- a/src/Metal/MTLIOCompression.cs +++ b/src/Metal/MTLIOCompression.cs @@ -1,10 +1,6 @@ -using System; using System.ComponentModel; -using System.Runtime.InteropServices; using CoreFoundation; -using Foundation; -using ObjCRuntime; #nullable enable diff --git a/src/Metal/MTLIntersectionFunctionTable.cs b/src/Metal/MTLIntersectionFunctionTable.cs index c8d08d697bf3..8c8755432918 100644 --- a/src/Metal/MTLIntersectionFunctionTable.cs +++ b/src/Metal/MTLIntersectionFunctionTable.cs @@ -1,8 +1,4 @@ #if !TVOS -using System; -using System.Runtime.InteropServices; -using Foundation; -using ObjCRuntime; #nullable enable diff --git a/src/Metal/MTLRasterizationRateLayerDescriptor.cs b/src/Metal/MTLRasterizationRateLayerDescriptor.cs index 4515f217d4a7..39b262edc8ce 100644 --- a/src/Metal/MTLRasterizationRateLayerDescriptor.cs +++ b/src/Metal/MTLRasterizationRateLayerDescriptor.cs @@ -1,9 +1,4 @@ -using System; using System.ComponentModel; -using System.Runtime.InteropServices; - -using Foundation; -using ObjCRuntime; #nullable enable diff --git a/src/Metal/MTLRenderCommandEncoder.cs b/src/Metal/MTLRenderCommandEncoder.cs index f6b63a4e4e38..a59260245e95 100644 --- a/src/Metal/MTLRenderCommandEncoder.cs +++ b/src/Metal/MTLRenderCommandEncoder.cs @@ -1,9 +1,4 @@ -using System; using System.ComponentModel; -using System.Runtime.InteropServices; - -using Foundation; -using ObjCRuntime; #nullable enable diff --git a/src/Metal/MTLRenderPassDescriptor.cs b/src/Metal/MTLRenderPassDescriptor.cs index 8d742a7b742d..f6723e8acbaf 100644 --- a/src/Metal/MTLRenderPassDescriptor.cs +++ b/src/Metal/MTLRenderPassDescriptor.cs @@ -1,5 +1,4 @@ #if !COREBUILD -using System; #nullable enable diff --git a/src/Metal/MTLRenderPassSampleBufferAttachmentDescriptorArray.cs b/src/Metal/MTLRenderPassSampleBufferAttachmentDescriptorArray.cs index d1ba024c4aa8..eb1cb5e19e02 100644 --- a/src/Metal/MTLRenderPassSampleBufferAttachmentDescriptorArray.cs +++ b/src/Metal/MTLRenderPassSampleBufferAttachmentDescriptorArray.cs @@ -1,4 +1,3 @@ -using System; #nullable enable diff --git a/src/Metal/MTLResidencySet.cs b/src/Metal/MTLResidencySet.cs index 741ed898fd63..19ab0bdbbf97 100644 --- a/src/Metal/MTLResidencySet.cs +++ b/src/Metal/MTLResidencySet.cs @@ -1,6 +1,3 @@ -using System; - -using ObjCRuntime; #nullable enable diff --git a/src/Metal/MTLResourceStateCommandEncoder.cs b/src/Metal/MTLResourceStateCommandEncoder.cs index 78855a4c0091..5986e7d21668 100644 --- a/src/Metal/MTLResourceStateCommandEncoder.cs +++ b/src/Metal/MTLResourceStateCommandEncoder.cs @@ -5,12 +5,7 @@ // Manuel de la Pena // #if IOS -using System; using System.ComponentModel; -using System.Runtime.InteropServices; - -using Foundation; -using ObjCRuntime; #nullable enable diff --git a/src/Metal/MTLResourceStatePassSampleBufferAttachmentDescriptorArray.cs b/src/Metal/MTLResourceStatePassSampleBufferAttachmentDescriptorArray.cs index 658ce71aea1e..88ffaf1d4d2b 100644 --- a/src/Metal/MTLResourceStatePassSampleBufferAttachmentDescriptorArray.cs +++ b/src/Metal/MTLResourceStatePassSampleBufferAttachmentDescriptorArray.cs @@ -1,4 +1,3 @@ -using System; #nullable enable diff --git a/src/Metal/MTLVertexDescriptor.cs b/src/Metal/MTLVertexDescriptor.cs index 6c0310850da4..b8be926217af 100644 --- a/src/Metal/MTLVertexDescriptor.cs +++ b/src/Metal/MTLVertexDescriptor.cs @@ -1,9 +1,5 @@ -using System; -using System.Runtime.InteropServices; -using Foundation; using ModelIO; -using ObjCRuntime; using Metal; #nullable enable diff --git a/src/MetalKit/MTKMesh.cs b/src/MetalKit/MTKMesh.cs index 26178ed74f35..6186cb436987 100644 --- a/src/MetalKit/MTKMesh.cs +++ b/src/MetalKit/MTKMesh.cs @@ -6,7 +6,6 @@ using ModelIO; using Metal; -using Foundation; namespace MetalKit { public partial class MTKMesh { diff --git a/src/MetalKit/MTKTextureLoaderOptions.cs b/src/MetalKit/MTKTextureLoaderOptions.cs index 776ba14736ee..3a37244ed1a2 100644 --- a/src/MetalKit/MTKTextureLoaderOptions.cs +++ b/src/MetalKit/MTKTextureLoaderOptions.cs @@ -9,10 +9,7 @@ #nullable enable -using System; -using Foundation; using Metal; -using ObjCRuntime; namespace MetalKit { #if !COREBUILD diff --git a/src/MetalPerformanceShaders/MPSCnnConvolutionDescriptor.cs b/src/MetalPerformanceShaders/MPSCnnConvolutionDescriptor.cs index 7bc775db8a53..3430a2bcd845 100644 --- a/src/MetalPerformanceShaders/MPSCnnConvolutionDescriptor.cs +++ b/src/MetalPerformanceShaders/MPSCnnConvolutionDescriptor.cs @@ -1,8 +1,5 @@ #nullable enable -using System; -using ObjCRuntime; - namespace MetalPerformanceShaders { public partial class MPSCnnConvolutionDescriptor { /// To be added. diff --git a/src/MetalPerformanceShaders/MPSCnnKernel.cs b/src/MetalPerformanceShaders/MPSCnnKernel.cs index 84826b23ec32..053d5a71ac08 100644 --- a/src/MetalPerformanceShaders/MPSCnnKernel.cs +++ b/src/MetalPerformanceShaders/MPSCnnKernel.cs @@ -1,8 +1,6 @@ #nullable enable -using System; using Metal; -using Foundation; namespace MetalPerformanceShaders { public partial class MPSCnnBinaryConvolution { diff --git a/src/MetalPerformanceShaders/MPSCnnNeuron.cs b/src/MetalPerformanceShaders/MPSCnnNeuron.cs index 89780432dd69..10bdf320422f 100644 --- a/src/MetalPerformanceShaders/MPSCnnNeuron.cs +++ b/src/MetalPerformanceShaders/MPSCnnNeuron.cs @@ -1,9 +1,6 @@ #nullable enable -using System; using Metal; -using Foundation; -using ObjCRuntime; namespace MetalPerformanceShaders { public partial class MPSCnnNeuronPReLU { diff --git a/src/MetalPerformanceShaders/MPSDefs.cs b/src/MetalPerformanceShaders/MPSDefs.cs index 4b5d0f948d39..ad78ebec98a2 100644 --- a/src/MetalPerformanceShaders/MPSDefs.cs +++ b/src/MetalPerformanceShaders/MPSDefs.cs @@ -1,11 +1,7 @@ #nullable enable -using System; using System.Numerics; -using System.Runtime.InteropServices; -using Foundation; -using ObjCRuntime; using Metal; namespace MetalPerformanceShaders { diff --git a/src/MetalPerformanceShaders/MPSEnums.cs b/src/MetalPerformanceShaders/MPSEnums.cs index 19e9a927a113..bd9abd6ff762 100644 --- a/src/MetalPerformanceShaders/MPSEnums.cs +++ b/src/MetalPerformanceShaders/MPSEnums.cs @@ -1,8 +1,4 @@ -using System; -using System.Runtime.InteropServices; -using Foundation; -using ObjCRuntime; using Metal; namespace MetalPerformanceShaders { diff --git a/src/MetalPerformanceShaders/MPSImageBatch.cs b/src/MetalPerformanceShaders/MPSImageBatch.cs index 084843d06d78..e7024247ab30 100644 --- a/src/MetalPerformanceShaders/MPSImageBatch.cs +++ b/src/MetalPerformanceShaders/MPSImageBatch.cs @@ -9,10 +9,6 @@ #nullable enable -using System; -using System.Runtime.InteropServices; -using ObjCRuntime; -using Foundation; using Metal; namespace MetalPerformanceShaders { diff --git a/src/MetalPerformanceShaders/MPSImageScale.cs b/src/MetalPerformanceShaders/MPSImageScale.cs index 38a354adf185..6fa0ce3cc324 100644 --- a/src/MetalPerformanceShaders/MPSImageScale.cs +++ b/src/MetalPerformanceShaders/MPSImageScale.cs @@ -2,11 +2,7 @@ #nullable enable -using System; -using System.Runtime.InteropServices; -using Foundation; using Metal; -using ObjCRuntime; namespace MetalPerformanceShaders { diff --git a/src/MetalPerformanceShaders/MPSKernel.cs b/src/MetalPerformanceShaders/MPSKernel.cs index c8db2cbddc69..25c7b4f07590 100644 --- a/src/MetalPerformanceShaders/MPSKernel.cs +++ b/src/MetalPerformanceShaders/MPSKernel.cs @@ -2,12 +2,8 @@ #nullable enable -using System; -using System.Runtime.InteropServices; using CoreGraphics; -using Foundation; using Metal; -using ObjCRuntime; namespace MetalPerformanceShaders { public partial class MPSKernel : NSObject { diff --git a/src/MetalPerformanceShaders/MPSNDArray.cs b/src/MetalPerformanceShaders/MPSNDArray.cs index f48ab57223fb..6d3887636f42 100644 --- a/src/MetalPerformanceShaders/MPSNDArray.cs +++ b/src/MetalPerformanceShaders/MPSNDArray.cs @@ -1,10 +1,6 @@ #nullable enable -using System; - using Metal; -using Foundation; -using ObjCRuntime; namespace MetalPerformanceShaders { public partial class MPSNDArray { diff --git a/src/MetalPerformanceShaders/MPSNDArrayDescriptor.cs b/src/MetalPerformanceShaders/MPSNDArrayDescriptor.cs index 03d851aca8c3..88714cbd0c40 100644 --- a/src/MetalPerformanceShaders/MPSNDArrayDescriptor.cs +++ b/src/MetalPerformanceShaders/MPSNDArrayDescriptor.cs @@ -1,10 +1,6 @@ #nullable enable -using System; - using Metal; -using Foundation; -using ObjCRuntime; namespace MetalPerformanceShaders { public partial class MPSNDArrayDescriptor { diff --git a/src/MetalPerformanceShaders/MPSNDArrayIdentity.cs b/src/MetalPerformanceShaders/MPSNDArrayIdentity.cs index 33856d22b3d7..740bcd5de702 100644 --- a/src/MetalPerformanceShaders/MPSNDArrayIdentity.cs +++ b/src/MetalPerformanceShaders/MPSNDArrayIdentity.cs @@ -1,9 +1,6 @@ #nullable enable -using System; using Metal; -using Foundation; -using ObjCRuntime; namespace MetalPerformanceShaders { public partial class MPSNDArrayIdentity { diff --git a/src/MetalPerformanceShaders/MPSNNGraph.cs b/src/MetalPerformanceShaders/MPSNNGraph.cs index a9f674ff3156..3c1a1fa2f618 100644 --- a/src/MetalPerformanceShaders/MPSNNGraph.cs +++ b/src/MetalPerformanceShaders/MPSNNGraph.cs @@ -3,12 +3,8 @@ #nullable enable -using System; -using System.Runtime.InteropServices; using CoreGraphics; -using Foundation; using Metal; -using ObjCRuntime; namespace MetalPerformanceShaders { public partial class MPSNNGraph { diff --git a/src/MetalPerformanceShaders/MPSStateBatch.cs b/src/MetalPerformanceShaders/MPSStateBatch.cs index 30179aedbbb8..6f0b761d270a 100644 --- a/src/MetalPerformanceShaders/MPSStateBatch.cs +++ b/src/MetalPerformanceShaders/MPSStateBatch.cs @@ -9,10 +9,6 @@ #nullable enable -using System; -using System.Runtime.InteropServices; -using ObjCRuntime; -using Foundation; using Metal; namespace MetalPerformanceShaders { diff --git a/src/MetalPerformanceShaders/MPSStateResourceList.cs b/src/MetalPerformanceShaders/MPSStateResourceList.cs index f5244c010b2a..22b4482a1fcc 100644 --- a/src/MetalPerformanceShaders/MPSStateResourceList.cs +++ b/src/MetalPerformanceShaders/MPSStateResourceList.cs @@ -9,11 +9,7 @@ #nullable enable -using System; -using System.Runtime.InteropServices; -using Foundation; using Metal; -using ObjCRuntime; namespace MetalPerformanceShaders { /// To be added. diff --git a/src/MetalPerformanceShadersGraph/MPSGraphEnums.cs b/src/MetalPerformanceShadersGraph/MPSGraphEnums.cs index 61fbf8bb481d..6933dec6b30e 100644 --- a/src/MetalPerformanceShadersGraph/MPSGraphEnums.cs +++ b/src/MetalPerformanceShadersGraph/MPSGraphEnums.cs @@ -1,8 +1,4 @@ -using System; -using System.Runtime.InteropServices; -using Foundation; -using ObjCRuntime; using Metal; namespace MetalPerformanceShadersGraph { diff --git a/src/MetalPerformanceShadersGraph/MPSGraphExecutable.cs b/src/MetalPerformanceShadersGraph/MPSGraphExecutable.cs index d6fdd819fdbe..05ccccc732f4 100644 --- a/src/MetalPerformanceShadersGraph/MPSGraphExecutable.cs +++ b/src/MetalPerformanceShadersGraph/MPSGraphExecutable.cs @@ -1,11 +1,7 @@ #nullable enable -using System; using System.Buffers; -using System.Runtime.InteropServices; -using Foundation; -using ObjCRuntime; using Metal; using MetalPerformanceShaders; diff --git a/src/MetalPerformanceShadersGraph/MPSGraphExtensions.cs b/src/MetalPerformanceShadersGraph/MPSGraphExtensions.cs index 278c1d7a3ce7..ec55a074d36e 100644 --- a/src/MetalPerformanceShadersGraph/MPSGraphExtensions.cs +++ b/src/MetalPerformanceShadersGraph/MPSGraphExtensions.cs @@ -1,11 +1,7 @@ #nullable enable -using System; using System.Buffers; -using System.Runtime.InteropServices; -using Foundation; -using ObjCRuntime; using Metal; using MetalPerformanceShaders; diff --git a/src/MetalPerformanceShadersGraph/MPSGraphTensorData.cs b/src/MetalPerformanceShadersGraph/MPSGraphTensorData.cs index 1909eb43d5fd..8b44be58afb1 100644 --- a/src/MetalPerformanceShadersGraph/MPSGraphTensorData.cs +++ b/src/MetalPerformanceShadersGraph/MPSGraphTensorData.cs @@ -1,11 +1,7 @@ #nullable enable -using System; using System.Buffers; -using System.Runtime.InteropServices; -using Foundation; -using ObjCRuntime; using Metal; using MetalPerformanceShaders; diff --git a/src/MetricKit/MXEnums.cs b/src/MetricKit/MXEnums.cs index 672a497b808e..8a604b7d25c7 100644 --- a/src/MetricKit/MXEnums.cs +++ b/src/MetricKit/MXEnums.cs @@ -4,12 +4,8 @@ // Copyright 2022 Microsoft Inc. // -using System; using System.ComponentModel; -using System.Runtime.InteropServices; using CoreFoundation; -using Foundation; -using ObjCRuntime; namespace MetricKit { [NoMac, iOS (16, 0), MacCatalyst (16, 0), NoTV] diff --git a/src/MetricKit/MXMetaData.cs b/src/MetricKit/MXMetaData.cs index 6729f8db5603..57e2145806a8 100644 --- a/src/MetricKit/MXMetaData.cs +++ b/src/MetricKit/MXMetaData.cs @@ -1,10 +1,5 @@ #nullable enable -using System; - -using Foundation; -using ObjCRuntime; - namespace MetricKit { public partial class MXMetaData { diff --git a/src/MetricKit/MXMetric.cs b/src/MetricKit/MXMetric.cs index da64cec7c811..197c52d4f8e3 100644 --- a/src/MetricKit/MXMetric.cs +++ b/src/MetricKit/MXMetric.cs @@ -1,10 +1,5 @@ #nullable enable -using System; - -using Foundation; -using ObjCRuntime; - namespace MetricKit { public partial class MXMetric { diff --git a/src/MetricKit/MXMetricManager.cs b/src/MetricKit/MXMetricManager.cs index ddf541df4812..2e6b653221e4 100644 --- a/src/MetricKit/MXMetricManager.cs +++ b/src/MetricKit/MXMetricManager.cs @@ -1,10 +1,6 @@ #nullable enable -using System; - using CoreFoundation; -using Foundation; -using ObjCRuntime; namespace MetricKit { diff --git a/src/MetricKit/MXMetricPayload.cs b/src/MetricKit/MXMetricPayload.cs index d082ec2c5e76..06f4b17bd83a 100644 --- a/src/MetricKit/MXMetricPayload.cs +++ b/src/MetricKit/MXMetricPayload.cs @@ -1,10 +1,5 @@ #nullable enable -using System; - -using Foundation; -using ObjCRuntime; - namespace MetricKit { public partial class MXMetricPayload { diff --git a/src/MobileCoreServices/UTType.cs b/src/MobileCoreServices/UTType.cs index ada0f02f9209..8c5092977a26 100644 --- a/src/MobileCoreServices/UTType.cs +++ b/src/MobileCoreServices/UTType.cs @@ -27,11 +27,7 @@ #nullable enable -using System; -using System.Runtime.InteropServices; -using ObjCRuntime; using CoreFoundation; -using Foundation; namespace MobileCoreServices { diff --git a/src/ModelIO/MDLAnimatedQuaternion.cs b/src/ModelIO/MDLAnimatedQuaternion.cs index ccdcf7f701ad..86ff4e9ed976 100644 --- a/src/ModelIO/MDLAnimatedQuaternion.cs +++ b/src/ModelIO/MDLAnimatedQuaternion.cs @@ -7,12 +7,7 @@ // Copyright 2019 Microsoft Corp. All rights reserved. // -using System; using System.Numerics; -using System.Runtime.InteropServices; - -using Foundation; -using ObjCRuntime; using Vector2d = global::CoreGraphics.NVector2d; using Vector3 = global::CoreGraphics.NVector3; diff --git a/src/ModelIO/MDLAnimatedValueTypes.cs b/src/ModelIO/MDLAnimatedValueTypes.cs index b25f53417500..595db2b5b50f 100644 --- a/src/ModelIO/MDLAnimatedValueTypes.cs +++ b/src/ModelIO/MDLAnimatedValueTypes.cs @@ -7,11 +7,6 @@ // Copyright 2017 Xamarin Inc. All rights reserved. // -using System; -using System.Runtime.InteropServices; -using Foundation; -using ObjCRuntime; - using Vector2 = global::System.Numerics.Vector2; using Vector2d = global::CoreGraphics.NVector2d; using Vector3 = global::CoreGraphics.NVector3; diff --git a/src/ModelIO/MDLAsset.cs b/src/ModelIO/MDLAsset.cs index a82f65ab9f07..51e63064e3aa 100644 --- a/src/ModelIO/MDLAsset.cs +++ b/src/ModelIO/MDLAsset.cs @@ -1,6 +1,5 @@ #nullable enable -using System; namespace ModelIO { public partial class MDLAsset { /// To be added. diff --git a/src/ModelIO/MDLMaterial.cs b/src/ModelIO/MDLMaterial.cs index 21eb344874a5..cf35f8695de4 100644 --- a/src/ModelIO/MDLMaterial.cs +++ b/src/ModelIO/MDLMaterial.cs @@ -1,4 +1,3 @@ -using System; #nullable enable diff --git a/src/ModelIO/MDLMesh.cs b/src/ModelIO/MDLMesh.cs index 51ff0feb36b3..0fd472dbc6e6 100644 --- a/src/ModelIO/MDLMesh.cs +++ b/src/ModelIO/MDLMesh.cs @@ -7,13 +7,9 @@ // Copyright 2015 Xamarin, Inc. // // -using System; using System.Numerics; -using System.Runtime.InteropServices; -using Foundation; using CoreFoundation; using CoreGraphics; -using ObjCRuntime; using Vector2i = global::CoreGraphics.NVector2i; using Vector3i = global::CoreGraphics.NVector3i; diff --git a/src/ModelIO/MDLNoiseTexture.cs b/src/ModelIO/MDLNoiseTexture.cs index 9124820af48e..af840a14baaa 100644 --- a/src/ModelIO/MDLNoiseTexture.cs +++ b/src/ModelIO/MDLNoiseTexture.cs @@ -1,6 +1,3 @@ -using System; -using Foundation; -using ObjCRuntime; using Vector2i = global::CoreGraphics.NVector2i; diff --git a/src/ModelIO/MDLStructs.cs b/src/ModelIO/MDLStructs.cs index f7fbf0882740..ff296222a67d 100644 --- a/src/ModelIO/MDLStructs.cs +++ b/src/ModelIO/MDLStructs.cs @@ -7,14 +7,10 @@ // Copyright 2015 Xamarin, Inc. // // -using System; using System.Numerics; -using System.Runtime.InteropServices; -using Foundation; using CoreFoundation; using CoreGraphics; using Metal; -using ObjCRuntime; using VectorInt4 = global::CoreGraphics.NVector4i; diff --git a/src/ModelIO/MDLVertexDescriptor.cs b/src/ModelIO/MDLVertexDescriptor.cs index 95a0810a4f81..4fca30f1913d 100644 --- a/src/ModelIO/MDLVertexDescriptor.cs +++ b/src/ModelIO/MDLVertexDescriptor.cs @@ -1,9 +1,5 @@ -using System; -using System.Runtime.InteropServices; -using Foundation; using ModelIO; -using ObjCRuntime; using Metal; #nullable enable diff --git a/src/ModelIO/MIEnums.cs b/src/ModelIO/MIEnums.cs index 93d241398d60..5a4fe3bc704c 100644 --- a/src/ModelIO/MIEnums.cs +++ b/src/ModelIO/MIEnums.cs @@ -7,13 +7,9 @@ // Copyright 2015 Xamarin, Inc. // // -using System; -using System.Runtime.InteropServices; -using Foundation; using CoreFoundation; using CoreGraphics; using Metal; -using ObjCRuntime; #nullable enable diff --git a/src/MonoNativeFunctionWrapperAttribute.cs b/src/MonoNativeFunctionWrapperAttribute.cs index 407813c332a5..765bbb15428b 100644 --- a/src/MonoNativeFunctionWrapperAttribute.cs +++ b/src/MonoNativeFunctionWrapperAttribute.cs @@ -21,7 +21,6 @@ // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // -using System; namespace ObjCRuntime { /// diff --git a/src/MonoPInvokeCallbackAttribute.cs b/src/MonoPInvokeCallbackAttribute.cs index c3ad6847196e..9539dc536e7f 100644 --- a/src/MonoPInvokeCallbackAttribute.cs +++ b/src/MonoPInvokeCallbackAttribute.cs @@ -20,7 +20,6 @@ // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // -using System; namespace ObjCRuntime { /// diff --git a/src/MultipeerConnectivity/Enums.cs b/src/MultipeerConnectivity/Enums.cs index b72a353e6a82..e7eab5eb40b7 100644 --- a/src/MultipeerConnectivity/Enums.cs +++ b/src/MultipeerConnectivity/Enums.cs @@ -7,8 +7,6 @@ // // Copyright 2013-2014, 2016 Xamarin, Inc. -using ObjCRuntime; - namespace MultipeerConnectivity { // NSInteger -> MCSession.h diff --git a/src/MultipeerConnectivity/MCSession.cs b/src/MultipeerConnectivity/MCSession.cs index 801e0c49e4a6..75f4a04ab6d6 100644 --- a/src/MultipeerConnectivity/MCSession.cs +++ b/src/MultipeerConnectivity/MCSession.cs @@ -9,11 +9,8 @@ #nullable enable -using System; using System.Collections.Generic; -using Foundation; -using ObjCRuntime; using Security; namespace MultipeerConnectivity { diff --git a/src/NativeTypes/NMath.cs b/src/NativeTypes/NMath.cs index a66531ad7e3f..d57e727c9d1d 100644 --- a/src/NativeTypes/NMath.cs +++ b/src/NativeTypes/NMath.cs @@ -9,9 +9,7 @@ #nullable enable -using System; using System.Runtime.CompilerServices; -using System.Runtime.Versioning; namespace ObjCRuntime { [SupportedOSPlatform ("ios")] diff --git a/src/NaturalLanguage/Enums.cs b/src/NaturalLanguage/Enums.cs index 22122cb19e9a..411802723c4e 100644 --- a/src/NaturalLanguage/Enums.cs +++ b/src/NaturalLanguage/Enums.cs @@ -20,9 +20,6 @@ // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // // -using System; -using Foundation; -using ObjCRuntime; namespace NaturalLanguage { diff --git a/src/NaturalLanguage/NLEmbedding.cs b/src/NaturalLanguage/NLEmbedding.cs index fe07de997d82..133a3d7fd358 100644 --- a/src/NaturalLanguage/NLEmbedding.cs +++ b/src/NaturalLanguage/NLEmbedding.cs @@ -1,9 +1,6 @@ #nullable enable -using System; - using CoreFoundation; -using Foundation; namespace NaturalLanguage { diff --git a/src/NaturalLanguage/NLLanguage.cs b/src/NaturalLanguage/NLLanguage.cs index 4e24e4a85b2d..05eb9847c4ba 100644 --- a/src/NaturalLanguage/NLLanguage.cs +++ b/src/NaturalLanguage/NLLanguage.cs @@ -1,11 +1,8 @@ #nullable enable -using System; using System.Linq; using System.Collections.Generic; -using Foundation; - namespace NaturalLanguage { public partial class NLLanguageExtensions { diff --git a/src/NaturalLanguage/NLLanguageRecognizer.cs b/src/NaturalLanguage/NLLanguageRecognizer.cs index 057eb1a45168..0fbca84ecacf 100644 --- a/src/NaturalLanguage/NLLanguageRecognizer.cs +++ b/src/NaturalLanguage/NLLanguageRecognizer.cs @@ -22,10 +22,8 @@ #nullable enable -using System; using System.Collections.Generic; using CoreFoundation; -using Foundation; namespace NaturalLanguage { diff --git a/src/NaturalLanguage/NLModel.cs b/src/NaturalLanguage/NLModel.cs index b35409f7c39b..6e9e95c77d95 100644 --- a/src/NaturalLanguage/NLModel.cs +++ b/src/NaturalLanguage/NLModel.cs @@ -1,11 +1,7 @@ #nullable enable -using System; using System.Collections.Generic; -using Foundation; -using ObjCRuntime; - namespace NaturalLanguage { public partial class NLModel { diff --git a/src/NaturalLanguage/NLStrongDictionary.cs b/src/NaturalLanguage/NLStrongDictionary.cs index 98e59b38fe53..103397870fb0 100644 --- a/src/NaturalLanguage/NLStrongDictionary.cs +++ b/src/NaturalLanguage/NLStrongDictionary.cs @@ -1,10 +1,6 @@ #nullable enable -using System; -using System.Runtime.Versioning; - using CoreFoundation; -using Foundation; namespace NaturalLanguage { [SupportedOSPlatform ("ios")] diff --git a/src/NaturalLanguage/NLTagger.cs b/src/NaturalLanguage/NLTagger.cs index d2b07f0bbf23..dc7cbd8244e2 100644 --- a/src/NaturalLanguage/NLTagger.cs +++ b/src/NaturalLanguage/NLTagger.cs @@ -1,10 +1,7 @@ #nullable enable -using System; using System.Collections.Generic; -using Foundation; - namespace NaturalLanguage { public partial class NLTagger { diff --git a/src/NaturalLanguage/NLVectorDictionary.cs b/src/NaturalLanguage/NLVectorDictionary.cs index ab660e23584e..5a1854db5b10 100644 --- a/src/NaturalLanguage/NLVectorDictionary.cs +++ b/src/NaturalLanguage/NLVectorDictionary.cs @@ -1,10 +1,6 @@ #nullable enable -using System; -using System.Runtime.Versioning; - using CoreFoundation; -using Foundation; namespace NaturalLanguage { [SupportedOSPlatform ("ios")] diff --git a/src/NearbyInteraction/Enums.cs b/src/NearbyInteraction/Enums.cs index 452d3cede0d5..652c1157621b 100644 --- a/src/NearbyInteraction/Enums.cs +++ b/src/NearbyInteraction/Enums.cs @@ -7,10 +7,6 @@ // Copyright 2020 Microsoft Inc. // -using ObjCRuntime; -using Foundation; -using System; - namespace NearbyInteraction { [NoTV, Mac (12, 0), iOS (14, 0)] diff --git a/src/NearbyInteraction/NIAlgorithmConvergenceStatusReasonValues.cs b/src/NearbyInteraction/NIAlgorithmConvergenceStatusReasonValues.cs index d51e2c315295..4a15dcb8133c 100644 --- a/src/NearbyInteraction/NIAlgorithmConvergenceStatusReasonValues.cs +++ b/src/NearbyInteraction/NIAlgorithmConvergenceStatusReasonValues.cs @@ -11,11 +11,7 @@ #nullable enable -using System; -using System.Runtime.InteropServices; using CoreFoundation; -using Foundation; -using ObjCRuntime; namespace NearbyInteraction { public partial class NIAlgorithmConvergenceStatusReasonValues { diff --git a/src/NearbyInteraction/NICompat.cs b/src/NearbyInteraction/NICompat.cs index 7c68d1009b18..107be0a427f7 100644 --- a/src/NearbyInteraction/NICompat.cs +++ b/src/NearbyInteraction/NICompat.cs @@ -6,13 +6,10 @@ #if !XAMCORE_5_0 -using System; using System.ComponentModel; using System.Numerics; using System.Threading.Tasks; -using Foundation; using CoreFoundation; -using ObjCRuntime; #if __MACCATALYST__ || !IOS using ARSession = Foundation.NSObject; diff --git a/src/NearbyInteraction/NINearbyObject.cs b/src/NearbyInteraction/NINearbyObject.cs index 5993c131d716..e20b4db063bb 100644 --- a/src/NearbyInteraction/NINearbyObject.cs +++ b/src/NearbyInteraction/NINearbyObject.cs @@ -9,13 +9,9 @@ #nullable enable -using System; using System.Numerics; -using System.Runtime.InteropServices; using CoreFoundation; -using Foundation; -using ObjCRuntime; using MatrixFloat4x4 = global::CoreGraphics.NMatrix4; diff --git a/src/Network/NWAdvertiseDescriptor.cs b/src/Network/NWAdvertiseDescriptor.cs index 413d55755dfc..ea14cb0ca470 100644 --- a/src/Network/NWAdvertiseDescriptor.cs +++ b/src/Network/NWAdvertiseDescriptor.cs @@ -8,10 +8,6 @@ // #nullable enable -using System; -using System.Runtime.InteropServices; -using ObjCRuntime; -using Foundation; using CoreFoundation; using nw_advertise_descriptor_t = System.IntPtr; diff --git a/src/Network/NWBrowseResult.cs b/src/Network/NWBrowseResult.cs index 06fed70ea376..c6e4333dfb47 100644 --- a/src/Network/NWBrowseResult.cs +++ b/src/Network/NWBrowseResult.cs @@ -8,11 +8,7 @@ // #nullable enable -using System; -using System.Runtime.InteropServices; using System.Runtime.CompilerServices; -using ObjCRuntime; -using Foundation; using CoreFoundation; using OS_nw_browse_result = System.IntPtr; diff --git a/src/Network/NWBrowser.cs b/src/Network/NWBrowser.cs index 12989e7a5252..e26911c827d1 100644 --- a/src/Network/NWBrowser.cs +++ b/src/Network/NWBrowser.cs @@ -8,12 +8,8 @@ // #nullable enable -using System; using System.Collections.Generic; -using System.Runtime.InteropServices; using System.Runtime.CompilerServices; -using ObjCRuntime; -using Foundation; using CoreFoundation; using OS_nw_browser = System.IntPtr; diff --git a/src/Network/NWBrowserDescriptor.cs b/src/Network/NWBrowserDescriptor.cs index dbb82fbd9373..4d291cb11d3a 100644 --- a/src/Network/NWBrowserDescriptor.cs +++ b/src/Network/NWBrowserDescriptor.cs @@ -8,11 +8,7 @@ // #nullable enable -using System; -using System.Runtime.InteropServices; using System.Runtime.CompilerServices; -using ObjCRuntime; -using Foundation; using CoreFoundation; using OS_nw_browse_descriptor = System.IntPtr; diff --git a/src/Network/NWConnection.cs b/src/Network/NWConnection.cs index a8314a3e95e4..b42b452eab0f 100644 --- a/src/Network/NWConnection.cs +++ b/src/Network/NWConnection.cs @@ -8,11 +8,7 @@ // #nullable enable -using System; using System.ComponentModel; -using System.Runtime.InteropServices; -using ObjCRuntime; -using Foundation; using CoreFoundation; using nw_connection_t = System.IntPtr; using nw_endpoint_t = System.IntPtr; diff --git a/src/Network/NWConnectionGroup.cs b/src/Network/NWConnectionGroup.cs index 8a9860296580..906c68727e97 100644 --- a/src/Network/NWConnectionGroup.cs +++ b/src/Network/NWConnectionGroup.cs @@ -1,7 +1,3 @@ -using System; -using System.Runtime.InteropServices; -using ObjCRuntime; -using Foundation; using CoreFoundation; using OS_nw_connection = System.IntPtr; using OS_nw_connection_group = System.IntPtr; diff --git a/src/Network/NWContentContext.cs b/src/Network/NWContentContext.cs index 55f37407a8db..445273dcb55f 100644 --- a/src/Network/NWContentContext.cs +++ b/src/Network/NWContentContext.cs @@ -9,10 +9,6 @@ #nullable enable -using System; -using System.Runtime.InteropServices; -using ObjCRuntime; -using Foundation; using CoreFoundation; namespace Network { diff --git a/src/Network/NWDataTransferReport.cs b/src/Network/NWDataTransferReport.cs index 7ccba7a98490..79b4c5e22ad6 100644 --- a/src/Network/NWDataTransferReport.cs +++ b/src/Network/NWDataTransferReport.cs @@ -9,12 +9,8 @@ #nullable enable -using System; using System.ComponentModel; -using System.Runtime.InteropServices; using System.Runtime.CompilerServices; -using ObjCRuntime; -using Foundation; using CoreFoundation; using OS_nw_data_transfer_report = System.IntPtr; diff --git a/src/Network/NWEndpoint.cs b/src/Network/NWEndpoint.cs index 08c492be9bc3..98669b67138f 100644 --- a/src/Network/NWEndpoint.cs +++ b/src/Network/NWEndpoint.cs @@ -9,11 +9,7 @@ #nullable enable -using System; -using System.Runtime.InteropServices; using System.Runtime.CompilerServices; -using ObjCRuntime; -using Foundation; using CoreFoundation; using OS_nw_endpoint = System.IntPtr; diff --git a/src/Network/NWEnums.cs b/src/Network/NWEnums.cs index ac6f9a5e5fad..877dabc8c4fa 100644 --- a/src/Network/NWEnums.cs +++ b/src/Network/NWEnums.cs @@ -8,11 +8,7 @@ // #nullable enable -using System; -using System.Runtime.InteropServices; using System.Runtime.CompilerServices; -using ObjCRuntime; -using Foundation; using CoreFoundation; using OS_nw_browse_result = System.IntPtr; diff --git a/src/Network/NWError.cs b/src/Network/NWError.cs index a3bb2bfb58f9..7e90757ce9ba 100644 --- a/src/Network/NWError.cs +++ b/src/Network/NWError.cs @@ -9,11 +9,7 @@ #nullable enable -using System; -using System.Runtime.InteropServices; using System.Runtime.CompilerServices; -using ObjCRuntime; -using Foundation; using CoreFoundation; namespace Network { diff --git a/src/Network/NWEstablishmentReport.cs b/src/Network/NWEstablishmentReport.cs index 474f9c4f9e97..0540f851efb5 100644 --- a/src/Network/NWEstablishmentReport.cs +++ b/src/Network/NWEstablishmentReport.cs @@ -10,11 +10,7 @@ #nullable enable -using System; -using System.Runtime.InteropServices; using System.Runtime.CompilerServices; -using ObjCRuntime; -using Foundation; using CoreFoundation; using OS_nw_establishment_report = System.IntPtr; diff --git a/src/Network/NWEthernetChannel.cs b/src/Network/NWEthernetChannel.cs index f1a12babce1c..f949dd48e289 100644 --- a/src/Network/NWEthernetChannel.cs +++ b/src/Network/NWEthernetChannel.cs @@ -10,12 +10,8 @@ #nullable enable #if MONOMAC -using System; using System.Text; -using System.Runtime.InteropServices; using System.Runtime.CompilerServices; -using ObjCRuntime; -using Foundation; using CoreFoundation; using OS_nw_ethernet_channel = System.IntPtr; diff --git a/src/Network/NWFramer.cs b/src/Network/NWFramer.cs index 1f2b4f925422..6a12158695ed 100644 --- a/src/Network/NWFramer.cs +++ b/src/Network/NWFramer.cs @@ -9,11 +9,7 @@ #nullable enable -using System; -using System.Runtime.InteropServices; using System.Runtime.CompilerServices; -using ObjCRuntime; -using Foundation; using CoreFoundation; using OS_nw_framer = System.IntPtr; diff --git a/src/Network/NWFramerMessage.cs b/src/Network/NWFramerMessage.cs index b3b54a59741e..865f1b6b08db 100644 --- a/src/Network/NWFramerMessage.cs +++ b/src/Network/NWFramerMessage.cs @@ -9,11 +9,7 @@ #nullable enable -using System; -using System.Runtime.InteropServices; using System.Runtime.CompilerServices; -using ObjCRuntime; -using Foundation; using CoreFoundation; using OS_nw_framer = System.IntPtr; diff --git a/src/Network/NWIPMetadata.cs b/src/Network/NWIPMetadata.cs index 8925e5a2709c..e991f15324eb 100644 --- a/src/Network/NWIPMetadata.cs +++ b/src/Network/NWIPMetadata.cs @@ -9,9 +9,6 @@ #nullable enable -using System; -using ObjCRuntime; -using Foundation; using CoreFoundation; namespace Network { diff --git a/src/Network/NWInterface.cs b/src/Network/NWInterface.cs index c7c96b96d922..863d3498e258 100644 --- a/src/Network/NWInterface.cs +++ b/src/Network/NWInterface.cs @@ -9,11 +9,7 @@ #nullable enable -using System; -using System.Runtime.InteropServices; using System.Runtime.CompilerServices; -using ObjCRuntime; -using Foundation; using CoreFoundation; using OS_nw_interface = System.IntPtr; diff --git a/src/Network/NWListener.cs b/src/Network/NWListener.cs index d78efacac554..e67d3c640a3c 100644 --- a/src/Network/NWListener.cs +++ b/src/Network/NWListener.cs @@ -9,10 +9,6 @@ #nullable enable -using System; -using System.Runtime.InteropServices; -using ObjCRuntime; -using Foundation; using CoreFoundation; using nw_connection_group_t = System.IntPtr; diff --git a/src/Network/NWMulticastGroup.cs b/src/Network/NWMulticastGroup.cs index b419ab150942..4bd4e088007c 100644 --- a/src/Network/NWMulticastGroup.cs +++ b/src/Network/NWMulticastGroup.cs @@ -1,7 +1,3 @@ -using System; -using System.Runtime.InteropServices; -using ObjCRuntime; -using Foundation; using CoreFoundation; using OS_nw_group_descriptor = System.IntPtr; using OS_nw_endpoint = System.IntPtr; diff --git a/src/Network/NWMultiplexGroup.cs b/src/Network/NWMultiplexGroup.cs index 5c039c6ea0d3..8e76c8649046 100644 --- a/src/Network/NWMultiplexGroup.cs +++ b/src/Network/NWMultiplexGroup.cs @@ -1,7 +1,3 @@ -using System; -using System.Runtime.InteropServices; -using ObjCRuntime; -using Foundation; using CoreFoundation; using OS_nw_group_descriptor = System.IntPtr; using OS_nw_endpoint = System.IntPtr; diff --git a/src/Network/NWParameters.cs b/src/Network/NWParameters.cs index b236373603cf..cc7713704a4e 100644 --- a/src/Network/NWParameters.cs +++ b/src/Network/NWParameters.cs @@ -9,11 +9,6 @@ #nullable enable -using System; -using System.Runtime.InteropServices; - -using Foundation; -using ObjCRuntime; using CoreFoundation; using nw_parameters_t = System.IntPtr; diff --git a/src/Network/NWPath.cs b/src/Network/NWPath.cs index 9decf7b0ca25..5b8982aa2ed1 100644 --- a/src/Network/NWPath.cs +++ b/src/Network/NWPath.cs @@ -9,12 +9,8 @@ #nullable enable -using System; using System.ComponentModel; -using System.Runtime.InteropServices; using System.Runtime.CompilerServices; -using ObjCRuntime; -using Foundation; using CoreFoundation; namespace Network { diff --git a/src/Network/NWPathMonitor.cs b/src/Network/NWPathMonitor.cs index ef9a66895e4b..5cbd445ffe51 100644 --- a/src/Network/NWPathMonitor.cs +++ b/src/Network/NWPathMonitor.cs @@ -9,11 +9,7 @@ #nullable enable -using System; -using System.Runtime.InteropServices; using System.Runtime.CompilerServices; -using ObjCRuntime; -using Foundation; using CoreFoundation; using OS_nw_path_monitor = System.IntPtr; diff --git a/src/Network/NWPrivacyContext.cs b/src/Network/NWPrivacyContext.cs index 9e2346b5664b..57a1be0a733f 100644 --- a/src/Network/NWPrivacyContext.cs +++ b/src/Network/NWPrivacyContext.cs @@ -1,10 +1,6 @@ #nullable enable -using System; -using System.Runtime.InteropServices; -using ObjCRuntime; using CoreFoundation; -using Foundation; using OS_nw_privacy_context = System.IntPtr; using OS_nw_resolver_config = System.IntPtr; using OS_nw_proxy_config = System.IntPtr; diff --git a/src/Network/NWProtocolDefinition.cs b/src/Network/NWProtocolDefinition.cs index 3c4c733741cf..941414295d20 100644 --- a/src/Network/NWProtocolDefinition.cs +++ b/src/Network/NWProtocolDefinition.cs @@ -9,11 +9,7 @@ #nullable enable -using System; -using System.Runtime.InteropServices; using System.Runtime.CompilerServices; -using ObjCRuntime; -using Foundation; using CoreFoundation; using OS_nw_protocol_definition = System.IntPtr; diff --git a/src/Network/NWProtocolFramerOptions.cs b/src/Network/NWProtocolFramerOptions.cs index 7f14a5955c9a..9777b3987dd6 100644 --- a/src/Network/NWProtocolFramerOptions.cs +++ b/src/Network/NWProtocolFramerOptions.cs @@ -9,11 +9,7 @@ #nullable enable -using System; -using System.Runtime.InteropServices; using System.Runtime.CompilerServices; -using ObjCRuntime; -using Foundation; using CoreFoundation; using Security; using IntPtr = System.IntPtr; diff --git a/src/Network/NWProtocolIPOptions.cs b/src/Network/NWProtocolIPOptions.cs index 13f0a3752e8b..6021920775ca 100644 --- a/src/Network/NWProtocolIPOptions.cs +++ b/src/Network/NWProtocolIPOptions.cs @@ -9,11 +9,7 @@ #nullable enable -using System; -using System.Runtime.InteropServices; using System.Runtime.CompilerServices; -using ObjCRuntime; -using Foundation; using CoreFoundation; using Security; using OS_nw_protocol_definition = System.IntPtr; diff --git a/src/Network/NWProtocolMetadata.cs b/src/Network/NWProtocolMetadata.cs index 44dac55e86af..9ea2f6aff09f 100644 --- a/src/Network/NWProtocolMetadata.cs +++ b/src/Network/NWProtocolMetadata.cs @@ -9,11 +9,7 @@ #nullable enable -using System; -using System.Runtime.InteropServices; using System.Runtime.CompilerServices; -using ObjCRuntime; -using Foundation; using CoreFoundation; using Security; using OS_nw_protocol_definition = System.IntPtr; diff --git a/src/Network/NWProtocolOptions.cs b/src/Network/NWProtocolOptions.cs index f914c564c359..bda0c8188e51 100644 --- a/src/Network/NWProtocolOptions.cs +++ b/src/Network/NWProtocolOptions.cs @@ -9,11 +9,7 @@ #nullable enable -using System; -using System.Runtime.InteropServices; using System.Runtime.CompilerServices; -using ObjCRuntime; -using Foundation; using CoreFoundation; using Security; using OS_nw_protocol_definition = System.IntPtr; diff --git a/src/Network/NWProtocolQuicOptions.cs b/src/Network/NWProtocolQuicOptions.cs index b2d250746d2b..a04f0d777167 100644 --- a/src/Network/NWProtocolQuicOptions.cs +++ b/src/Network/NWProtocolQuicOptions.cs @@ -1,8 +1,4 @@ -using System; -using System.Runtime.InteropServices; -using Foundation; -using ObjCRuntime; using Security; using OS_nw_protocol_options = System.IntPtr; diff --git a/src/Network/NWProtocolStack.cs b/src/Network/NWProtocolStack.cs index 1ab9fab0513b..b876d3d78058 100644 --- a/src/Network/NWProtocolStack.cs +++ b/src/Network/NWProtocolStack.cs @@ -9,10 +9,6 @@ #nullable enable -using System; -using System.Runtime.InteropServices; -using ObjCRuntime; -using Foundation; using CoreFoundation; using OS_nw_protocol_definition = System.IntPtr; diff --git a/src/Network/NWProtocolTcpOptions.cs b/src/Network/NWProtocolTcpOptions.cs index b49f463fe505..8af2c7f7b52a 100644 --- a/src/Network/NWProtocolTcpOptions.cs +++ b/src/Network/NWProtocolTcpOptions.cs @@ -9,11 +9,7 @@ #nullable enable -using System; -using System.Runtime.InteropServices; using System.Runtime.CompilerServices; -using ObjCRuntime; -using Foundation; using CoreFoundation; using Security; using OS_nw_protocol_definition = System.IntPtr; diff --git a/src/Network/NWProtocolTlsOptions.cs b/src/Network/NWProtocolTlsOptions.cs index efcc68129617..3d15c8807a8b 100644 --- a/src/Network/NWProtocolTlsOptions.cs +++ b/src/Network/NWProtocolTlsOptions.cs @@ -9,11 +9,7 @@ #nullable enable -using System; -using System.Runtime.InteropServices; using System.Runtime.CompilerServices; -using ObjCRuntime; -using Foundation; using CoreFoundation; using Security; using OS_nw_protocol_definition = System.IntPtr; diff --git a/src/Network/NWProtocolUdpOptions.cs b/src/Network/NWProtocolUdpOptions.cs index 674e1efb8dc0..86039e1942b1 100644 --- a/src/Network/NWProtocolUdpOptions.cs +++ b/src/Network/NWProtocolUdpOptions.cs @@ -9,9 +9,6 @@ #nullable enable -using System; -using ObjCRuntime; -using Foundation; using CoreFoundation; using Security; diff --git a/src/Network/NWProxyConfig.cs b/src/Network/NWProxyConfig.cs index c92a739594b1..27eb4489cf06 100644 --- a/src/Network/NWProxyConfig.cs +++ b/src/Network/NWProxyConfig.cs @@ -1,10 +1,6 @@ #nullable enable -using System; -using System.Runtime.InteropServices; using System.Runtime.CompilerServices; -using ObjCRuntime; -using Foundation; using CoreFoundation; using OS_nw_proxy_config = System.IntPtr; diff --git a/src/Network/NWQuicMetadata.cs b/src/Network/NWQuicMetadata.cs index b20ccc2bd6fd..a7a8519976bc 100644 --- a/src/Network/NWQuicMetadata.cs +++ b/src/Network/NWQuicMetadata.cs @@ -1,8 +1,4 @@ -using System; -using System.Runtime.InteropServices; -using Foundation; -using ObjCRuntime; using Security; using OS_nw_protocol_metadata = System.IntPtr; diff --git a/src/Network/NWRelayHop.cs b/src/Network/NWRelayHop.cs index 2d47af1d68ab..576ade0510e7 100644 --- a/src/Network/NWRelayHop.cs +++ b/src/Network/NWRelayHop.cs @@ -1,10 +1,6 @@ #nullable enable -using System; -using System.Runtime.InteropServices; using System.Runtime.CompilerServices; -using ObjCRuntime; -using Foundation; using CoreFoundation; using OS_nw_relay_hop = System.IntPtr; diff --git a/src/Network/NWResolutionReport.cs b/src/Network/NWResolutionReport.cs index e0d5ca5cb921..992bbc658534 100644 --- a/src/Network/NWResolutionReport.cs +++ b/src/Network/NWResolutionReport.cs @@ -1,7 +1,3 @@ -using System; -using System.Runtime.InteropServices; -using ObjCRuntime; -using Foundation; using CoreFoundation; using nw_report_resolution_source_t = System.IntPtr; diff --git a/src/Network/NWResolverConfig.cs b/src/Network/NWResolverConfig.cs index 99c1b45f60a6..61928989a9e1 100644 --- a/src/Network/NWResolverConfig.cs +++ b/src/Network/NWResolverConfig.cs @@ -1,10 +1,5 @@ #nullable enable -using System; -using System.Runtime.InteropServices; - -using Foundation; -using ObjCRuntime; using CoreFoundation; using OS_nw_resolver_config = System.IntPtr; diff --git a/src/Network/NWTcpMetadata.cs b/src/Network/NWTcpMetadata.cs index 9602a8ac1e56..e4b49c5c7dfb 100644 --- a/src/Network/NWTcpMetadata.cs +++ b/src/Network/NWTcpMetadata.cs @@ -9,9 +9,6 @@ #nullable enable -using System; -using ObjCRuntime; -using Foundation; using CoreFoundation; namespace Network { diff --git a/src/Network/NWTlsMetadata.cs b/src/Network/NWTlsMetadata.cs index 0dcb2041e56f..7dd34bb60644 100644 --- a/src/Network/NWTlsMetadata.cs +++ b/src/Network/NWTlsMetadata.cs @@ -9,9 +9,6 @@ #nullable enable -using System; -using ObjCRuntime; -using Foundation; using Security; using CoreFoundation; diff --git a/src/Network/NWTxtRecord.cs b/src/Network/NWTxtRecord.cs index 2cf1f90b675f..89491031b337 100644 --- a/src/Network/NWTxtRecord.cs +++ b/src/Network/NWTxtRecord.cs @@ -9,12 +9,8 @@ #nullable enable -using System; -using System.Runtime.InteropServices; using System.Runtime.CompilerServices; using System.Text; -using ObjCRuntime; -using Foundation; using CoreFoundation; using nw_advertise_descriptor_t = System.IntPtr; diff --git a/src/Network/NWUdpMetadata.cs b/src/Network/NWUdpMetadata.cs index f69c6ef2226e..9031d828feab 100644 --- a/src/Network/NWUdpMetadata.cs +++ b/src/Network/NWUdpMetadata.cs @@ -9,9 +9,6 @@ #nullable enable -using System; -using ObjCRuntime; -using Foundation; using Security; using CoreFoundation; diff --git a/src/Network/NWWebSocketMetadata.cs b/src/Network/NWWebSocketMetadata.cs index 483aea622345..b329593fc56f 100644 --- a/src/Network/NWWebSocketMetadata.cs +++ b/src/Network/NWWebSocketMetadata.cs @@ -9,11 +9,7 @@ #nullable enable -using System; -using System.Runtime.InteropServices; using System.Runtime.CompilerServices; -using ObjCRuntime; -using Foundation; using CoreFoundation; using OS_nw_protocol_metadata = System.IntPtr; diff --git a/src/Network/NWWebSocketOptions.cs b/src/Network/NWWebSocketOptions.cs index 36d2048b5ee0..904b82c00528 100644 --- a/src/Network/NWWebSocketOptions.cs +++ b/src/Network/NWWebSocketOptions.cs @@ -9,11 +9,7 @@ #nullable enable -using System; -using System.Runtime.InteropServices; using System.Runtime.CompilerServices; -using ObjCRuntime; -using Foundation; using CoreFoundation; using OS_nw_protocol_options = System.IntPtr; diff --git a/src/Network/NWWebSocketRequest.cs b/src/Network/NWWebSocketRequest.cs index 8c6bcd54c0de..c7d547232ff4 100644 --- a/src/Network/NWWebSocketRequest.cs +++ b/src/Network/NWWebSocketRequest.cs @@ -9,11 +9,7 @@ #nullable enable -using System; -using System.Runtime.InteropServices; using System.Runtime.CompilerServices; -using ObjCRuntime; -using Foundation; using CoreFoundation; using OS_nw_ws_request = System.IntPtr; diff --git a/src/Network/NWWebSocketResponse.cs b/src/Network/NWWebSocketResponse.cs index baf61c4db9c6..ee4218a7aa56 100644 --- a/src/Network/NWWebSocketResponse.cs +++ b/src/Network/NWWebSocketResponse.cs @@ -9,11 +9,7 @@ #nullable enable -using System; -using System.Runtime.InteropServices; using System.Runtime.CompilerServices; -using ObjCRuntime; -using Foundation; using CoreFoundation; using OS_nw_ws_response = System.IntPtr; diff --git a/src/NetworkExtension/NEAppProxyFlow.cs b/src/NetworkExtension/NEAppProxyFlow.cs index 209b03596ec4..a6c64cd5b8e0 100644 --- a/src/NetworkExtension/NEAppProxyFlow.cs +++ b/src/NetworkExtension/NEAppProxyFlow.cs @@ -1,10 +1,6 @@ #if __MACCATALYST__ || MONOMAC -using System; -using System.Runtime.Versioning; -using Foundation; using Network; -using ObjCRuntime; namespace NetworkExtension { diff --git a/src/NetworkExtension/NECompat.cs b/src/NetworkExtension/NECompat.cs index 1b4f67d0be7a..d9850936247a 100644 --- a/src/NetworkExtension/NECompat.cs +++ b/src/NetworkExtension/NECompat.cs @@ -1,10 +1,7 @@ #nullable enable -using System; using System.ComponentModel; using System.Threading.Tasks; -using Foundation; -using ObjCRuntime; namespace NetworkExtension { [Obsolete (Constants.ApiRemovedGeneral)] diff --git a/src/NetworkExtension/NEEnums.cs b/src/NetworkExtension/NEEnums.cs index cc1ae1db4eb1..d7ab3e725efb 100644 --- a/src/NetworkExtension/NEEnums.cs +++ b/src/NetworkExtension/NEEnums.cs @@ -1,4 +1,3 @@ -using ObjCRuntime; namespace NetworkExtension { diff --git a/src/NetworkExtension/NEFilterProvider.cs b/src/NetworkExtension/NEFilterProvider.cs index 015618d86dc0..13211c59e36c 100644 --- a/src/NetworkExtension/NEFilterProvider.cs +++ b/src/NetworkExtension/NEFilterProvider.cs @@ -2,8 +2,6 @@ #if !MONOMAC -using Foundation; - namespace NetworkExtension { public partial class NEFilterProvider { diff --git a/src/NetworkExtension/NEHotspotConfiguration.cs b/src/NetworkExtension/NEHotspotConfiguration.cs index e7d158d84d4e..40e78c57fbe2 100644 --- a/src/NetworkExtension/NEHotspotConfiguration.cs +++ b/src/NetworkExtension/NEHotspotConfiguration.cs @@ -4,8 +4,6 @@ #if !MONOMAC && !TVOS -using Foundation; - namespace NetworkExtension { public partial class NEHotspotConfiguration { diff --git a/src/NetworkExtension/NEHotspotEapSettings.cs b/src/NetworkExtension/NEHotspotEapSettings.cs index 330408cdbf3d..df97a29e37f7 100644 --- a/src/NetworkExtension/NEHotspotEapSettings.cs +++ b/src/NetworkExtension/NEHotspotEapSettings.cs @@ -10,9 +10,6 @@ #nullable enable #if !MONOMAC && !TVOS -using System; -using Foundation; -using ObjCRuntime; namespace NetworkExtension { diff --git a/src/NetworkExtension/NEHotspotHelperOptions.cs b/src/NetworkExtension/NEHotspotHelperOptions.cs index 4b974366fbb8..0ee76447d7f1 100644 --- a/src/NetworkExtension/NEHotspotHelperOptions.cs +++ b/src/NetworkExtension/NEHotspotHelperOptions.cs @@ -2,8 +2,6 @@ #if !MONOMAC && !TVOS -using Foundation; - namespace NetworkExtension { /// Represents options for registering a Hotspot Helper. diff --git a/src/NetworkExtension/NEPacketTunnelFlow.cs b/src/NetworkExtension/NEPacketTunnelFlow.cs index dfa89e6e94e2..16e13e4a8aa9 100644 --- a/src/NetworkExtension/NEPacketTunnelFlow.cs +++ b/src/NetworkExtension/NEPacketTunnelFlow.cs @@ -1,8 +1,5 @@ #nullable enable -using System.Runtime.Versioning; -using Foundation; - namespace NetworkExtension { // needed for generated Async support diff --git a/src/NetworkExtension/NEVpnConnectionStartOptions.cs b/src/NetworkExtension/NEVpnConnectionStartOptions.cs index e7634b7bb274..ed1e4107e00f 100644 --- a/src/NetworkExtension/NEVpnConnectionStartOptions.cs +++ b/src/NetworkExtension/NEVpnConnectionStartOptions.cs @@ -1,9 +1,5 @@ #nullable enable -using System.Runtime.Versioning; - -using Foundation; - namespace NetworkExtension { /// To be added. /// To be added. diff --git a/src/NetworkExtension/NEVpnManager.cs b/src/NetworkExtension/NEVpnManager.cs index 8796d921913d..5fcebb9d50b9 100644 --- a/src/NetworkExtension/NEVpnManager.cs +++ b/src/NetworkExtension/NEVpnManager.cs @@ -10,9 +10,6 @@ #nullable enable #if MONOMAC -using System; -using Foundation; -using ObjCRuntime; using Security; namespace NetworkExtension { diff --git a/src/NewsstandKit/Compat.cs b/src/NewsstandKit/Compat.cs index 8f0cd997b634..96bfb4202324 100644 --- a/src/NewsstandKit/Compat.cs +++ b/src/NewsstandKit/Compat.cs @@ -1,11 +1,7 @@ #if !XAMCORE_5_0 -using System; using System.ComponentModel; -using Foundation; -using ObjCRuntime; - #nullable enable namespace NewsstandKit { diff --git a/src/NotificationCenter/NCEnums.cs b/src/NotificationCenter/NCEnums.cs index 3d93116ba65f..510820466958 100644 --- a/src/NotificationCenter/NCEnums.cs +++ b/src/NotificationCenter/NCEnums.cs @@ -1,6 +1,3 @@ -using System; -using ObjCRuntime; -using Foundation; using CoreGraphics; using CoreLocation; diff --git a/src/ObjCBindings/BindFromAttribute.cs b/src/ObjCBindings/BindFromAttribute.cs index ee6fe08ebc24..92b6bd619400 100644 --- a/src/ObjCBindings/BindFromAttribute.cs +++ b/src/ObjCBindings/BindFromAttribute.cs @@ -1,7 +1,5 @@ -using System; using System.Reflection; using System.Diagnostics.CodeAnalysis; -using ObjCRuntime; #nullable enable diff --git a/src/ObjCBindings/BindingTypeAttribute.cs b/src/ObjCBindings/BindingTypeAttribute.cs index 62cff6e5a521..d260f73d1f91 100644 --- a/src/ObjCBindings/BindingTypeAttribute.cs +++ b/src/ObjCBindings/BindingTypeAttribute.cs @@ -1,4 +1,3 @@ -using System; using System.Reflection; using System.Diagnostics.CodeAnalysis; diff --git a/src/ObjCBindings/BindingTypeTag.cs b/src/ObjCBindings/BindingTypeTag.cs index bf19297d2e33..d24b7d93c647 100644 --- a/src/ObjCBindings/BindingTypeTag.cs +++ b/src/ObjCBindings/BindingTypeTag.cs @@ -1,4 +1,3 @@ -using System; using System.Diagnostics.CodeAnalysis; #nullable enable diff --git a/src/ObjCBindings/ExportAttribute.cs b/src/ObjCBindings/ExportAttribute.cs index 2981b29c6c31..2fe8ad4a8045 100644 --- a/src/ObjCBindings/ExportAttribute.cs +++ b/src/ObjCBindings/ExportAttribute.cs @@ -1,7 +1,5 @@ -using System; using System.Reflection; using System.Diagnostics.CodeAnalysis; -using ObjCRuntime; using Registrar; #nullable enable diff --git a/src/ObjCBindings/ExportTag.cs b/src/ObjCBindings/ExportTag.cs index e268fab3aa60..7172cc573a55 100644 --- a/src/ObjCBindings/ExportTag.cs +++ b/src/ObjCBindings/ExportTag.cs @@ -1,4 +1,3 @@ -using System; using System.Diagnostics.CodeAnalysis; #nullable enable diff --git a/src/ObjCBindings/FieldAttribute.cs b/src/ObjCBindings/FieldAttribute.cs index cdc7cb6a1dac..144328c80353 100644 --- a/src/ObjCBindings/FieldAttribute.cs +++ b/src/ObjCBindings/FieldAttribute.cs @@ -1,4 +1,3 @@ -using System; using System.Diagnostics.CodeAnalysis; #nullable enable diff --git a/src/ObjCBindings/FieldTag.cs b/src/ObjCBindings/FieldTag.cs index 7a92e88bb087..028b2315f27c 100644 --- a/src/ObjCBindings/FieldTag.cs +++ b/src/ObjCBindings/FieldTag.cs @@ -1,4 +1,3 @@ -using System; using System.Diagnostics.CodeAnalysis; #nullable enable diff --git a/src/ObjCBindings/ForcedTypeAttribute.cs b/src/ObjCBindings/ForcedTypeAttribute.cs index ca4173fca370..975891980569 100644 --- a/src/ObjCBindings/ForcedTypeAttribute.cs +++ b/src/ObjCBindings/ForcedTypeAttribute.cs @@ -1,7 +1,5 @@ -using System; using System.Reflection; using System.Diagnostics.CodeAnalysis; -using ObjCRuntime; #nullable enable diff --git a/src/ObjCRuntime/AdoptsAttribute.cs b/src/ObjCRuntime/AdoptsAttribute.cs index 8a3884c39cc9..b428a30371b6 100644 --- a/src/ObjCRuntime/AdoptsAttribute.cs +++ b/src/ObjCRuntime/AdoptsAttribute.cs @@ -27,9 +27,6 @@ // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // -using System; -using System.Runtime.InteropServices; - namespace ObjCRuntime { /// diff --git a/src/ObjCRuntime/BackingField.cs b/src/ObjCRuntime/BackingField.cs index f7c2e60dd050..3692df3c3dda 100644 --- a/src/ObjCRuntime/BackingField.cs +++ b/src/ObjCRuntime/BackingField.cs @@ -37,10 +37,6 @@ #if IOS -using System; - -using ObjCRuntime; - // Disable until we get around to enable + fix any issues. #nullable disable diff --git a/src/ObjCRuntime/BaseWrapper.cs b/src/ObjCRuntime/BaseWrapper.cs index 49d5ec7363a6..fd028232997a 100644 --- a/src/ObjCRuntime/BaseWrapper.cs +++ b/src/ObjCRuntime/BaseWrapper.cs @@ -4,9 +4,6 @@ #if !COREBUILD -using System; -using System.Runtime.InteropServices; -using Foundation; using CoreFoundation; namespace ObjCRuntime { diff --git a/src/ObjCRuntime/BindAs.cs b/src/ObjCRuntime/BindAs.cs index fac0858fdd4f..8e5e5201246c 100644 --- a/src/ObjCRuntime/BindAs.cs +++ b/src/ObjCRuntime/BindAs.cs @@ -8,7 +8,6 @@ #nullable enable -using System; using System.Collections.Generic; using System.ComponentModel; using System.Diagnostics; @@ -16,12 +15,10 @@ using System.IO; using System.Reflection; using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; using System.Text; using CoreFoundation; using CoreGraphics; -using Foundation; using Registrar; diff --git a/src/ObjCRuntime/BindAsAttribute.cs b/src/ObjCRuntime/BindAsAttribute.cs index f51f7ee83c04..22b4fc8e6c74 100644 --- a/src/ObjCRuntime/BindAsAttribute.cs +++ b/src/ObjCRuntime/BindAsAttribute.cs @@ -1,4 +1,3 @@ -using System; #nullable enable diff --git a/src/ObjCRuntime/BindingImplAttribute.cs b/src/ObjCRuntime/BindingImplAttribute.cs index a457e6c8f7ea..050e33cd9a19 100644 --- a/src/ObjCRuntime/BindingImplAttribute.cs +++ b/src/ObjCRuntime/BindingImplAttribute.cs @@ -2,9 +2,6 @@ // BindingImplAttrobute.cs: Apply this to binding methods to describe them. // -using System; -using System.Runtime.InteropServices; - namespace ObjCRuntime { /// This attribute provides information about binding code. diff --git a/src/ObjCRuntime/BlockCallbackAttribute.cs b/src/ObjCRuntime/BlockCallbackAttribute.cs index b62761878aa7..c0c8d492b92a 100644 --- a/src/ObjCRuntime/BlockCallbackAttribute.cs +++ b/src/ObjCRuntime/BlockCallbackAttribute.cs @@ -1,4 +1,3 @@ -using System; namespace ObjCRuntime { /// diff --git a/src/ObjCRuntime/BlockProxyAttribute.cs b/src/ObjCRuntime/BlockProxyAttribute.cs index 6985a01db1a7..d821d3d62dff 100644 --- a/src/ObjCRuntime/BlockProxyAttribute.cs +++ b/src/ObjCRuntime/BlockProxyAttribute.cs @@ -6,13 +6,8 @@ // Authors: // Miguel de Icaza (miguel@xamarin.com) // -using System; using System.Reflection; using System.Collections.Generic; -using System.Runtime.InteropServices; - -using ObjCRuntime; -using Foundation; namespace ObjCRuntime { /// This attribute is used to notify the runtime which class is used to wrap Objective-C blocks into managed delegates. diff --git a/src/ObjCRuntime/Blocks.cs b/src/ObjCRuntime/Blocks.cs index dd55e5415cd4..26fa42eca783 100644 --- a/src/ObjCRuntime/Blocks.cs +++ b/src/ObjCRuntime/Blocks.cs @@ -24,17 +24,12 @@ // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // // -using System; using System.Diagnostics.CodeAnalysis; using System.Reflection; using System.Collections.Generic; using System.ComponentModel; -using System.Runtime.InteropServices; using System.Threading; -using Foundation; -using ObjCRuntime; - #if !COREBUILD using Xamarin.Bundler; #endif diff --git a/src/ObjCRuntime/CCallbackAttribute.cs b/src/ObjCRuntime/CCallbackAttribute.cs index b692f152ba01..d913cc59046f 100644 --- a/src/ObjCRuntime/CCallbackAttribute.cs +++ b/src/ObjCRuntime/CCallbackAttribute.cs @@ -1,4 +1,3 @@ -using System; namespace ObjCRuntime { /// diff --git a/src/ObjCRuntime/CategoryAttribute.cs b/src/ObjCRuntime/CategoryAttribute.cs index c2c9fc1509a2..fa2b3e9a2b80 100644 --- a/src/ObjCRuntime/CategoryAttribute.cs +++ b/src/ObjCRuntime/CategoryAttribute.cs @@ -6,8 +6,6 @@ // // Copyright 2015 Xamarin Inc. -using System; - // Disable until we get around to enable + fix any issues. #nullable disable diff --git a/src/ObjCRuntime/Class.cs b/src/ObjCRuntime/Class.cs index 79a090427c53..36c69c87e1a8 100644 --- a/src/ObjCRuntime/Class.cs +++ b/src/ObjCRuntime/Class.cs @@ -9,14 +9,11 @@ #nullable enable -using System; using System.Diagnostics.CodeAnalysis; using System.Reflection; using System.Collections.Generic; using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using Foundation; #if !COREBUILD using Registrar; #endif diff --git a/src/ObjCRuntime/DelayedRegistrationAttribute.cs b/src/ObjCRuntime/DelayedRegistrationAttribute.cs index 589c8d871ce5..d0d56b0b96ba 100644 --- a/src/ObjCRuntime/DelayedRegistrationAttribute.cs +++ b/src/ObjCRuntime/DelayedRegistrationAttribute.cs @@ -23,8 +23,6 @@ #if MONOMAC -using System; -using System.Runtime.InteropServices; using System.IO; namespace ObjCRuntime { diff --git a/src/ObjCRuntime/DesignatedInitializerAttribute.cs b/src/ObjCRuntime/DesignatedInitializerAttribute.cs index 20ae27e7758e..e837b5c8bb63 100644 --- a/src/ObjCRuntime/DesignatedInitializerAttribute.cs +++ b/src/ObjCRuntime/DesignatedInitializerAttribute.cs @@ -6,8 +6,6 @@ // // Copyright 2015 Xamarin Inc. -using System; - namespace ObjCRuntime { // For bindings the attribute is used on interfaces, which means we must be able to decorated methods diff --git a/src/ObjCRuntime/DisposableObject.cs b/src/ObjCRuntime/DisposableObject.cs index 595039680373..af5b019b034d 100644 --- a/src/ObjCRuntime/DisposableObject.cs +++ b/src/ObjCRuntime/DisposableObject.cs @@ -6,10 +6,6 @@ // // Copyright 2021 Microsoft Corp // -using System; -using System.Runtime.InteropServices; -using ObjCRuntime; -using Foundation; #nullable enable diff --git a/src/ObjCRuntime/Dlfcn.cs b/src/ObjCRuntime/Dlfcn.cs index a419622f0a8f..baf3d14c00b7 100644 --- a/src/ObjCRuntime/Dlfcn.cs +++ b/src/ObjCRuntime/Dlfcn.cs @@ -31,11 +31,8 @@ #nullable enable -using System; using System.ComponentModel; -using System.Runtime.InteropServices; #if !COREBUILD -using Foundation; using CoreFoundation; using CoreGraphics; using CoreMedia; diff --git a/src/ObjCRuntime/DynamicRegistrar.cs b/src/ObjCRuntime/DynamicRegistrar.cs index 8c207f5b9aaf..257bf45ecb7d 100644 --- a/src/ObjCRuntime/DynamicRegistrar.cs +++ b/src/ObjCRuntime/DynamicRegistrar.cs @@ -7,15 +7,11 @@ // Copyright 2013-2014 Xamarin Inc. // -using System; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Reflection; -using System.Runtime.InteropServices; using System.Text; -using Foundation; -using ObjCRuntime; #if !MONOMAC using UIKit; #endif diff --git a/src/ObjCRuntime/ErrorConstants.cs b/src/ObjCRuntime/ErrorConstants.cs index 4b3899bad9ac..ce9241babea5 100644 --- a/src/ObjCRuntime/ErrorConstants.cs +++ b/src/ObjCRuntime/ErrorConstants.cs @@ -1,4 +1,3 @@ -using System; namespace ObjCRuntime { diff --git a/src/ObjCRuntime/ErrorHelper.cs b/src/ObjCRuntime/ErrorHelper.cs index d3793878758b..dba60cb7def1 100644 --- a/src/ObjCRuntime/ErrorHelper.cs +++ b/src/ObjCRuntime/ErrorHelper.cs @@ -6,7 +6,6 @@ #define BUNDLER #endif -using System; using System.Collections.Generic; #if !BUNDLER && !TESTS diff --git a/src/ObjCRuntime/ErrorHelper.runtime.cs b/src/ObjCRuntime/ErrorHelper.runtime.cs index 83d19016e72d..b2b638ce17be 100644 --- a/src/ObjCRuntime/ErrorHelper.runtime.cs +++ b/src/ObjCRuntime/ErrorHelper.runtime.cs @@ -1,6 +1,5 @@ // Copyright 2020, Microsoft Corp. All rights reserved, -using System; using System.Collections.Generic; using ProductException = ObjCRuntime.RuntimeException; diff --git a/src/ObjCRuntime/ExceptionMode.cs b/src/ObjCRuntime/ExceptionMode.cs index fdf7fee78459..d0aa79a1c8be 100644 --- a/src/ObjCRuntime/ExceptionMode.cs +++ b/src/ObjCRuntime/ExceptionMode.cs @@ -6,8 +6,6 @@ // // Copyright 2016 Xamarin Inc. -using System; - namespace ObjCRuntime { /* This enum must always match the identical enum in runtime/xamarin/main.h */ diff --git a/src/ObjCRuntime/Exceptions.cs b/src/ObjCRuntime/Exceptions.cs index 1830146f72f2..88e12b9c389c 100644 --- a/src/ObjCRuntime/Exceptions.cs +++ b/src/ObjCRuntime/Exceptions.cs @@ -6,9 +6,6 @@ // // Copyright 2016 Xamarin Inc. -using System; -using Foundation; - #nullable enable namespace ObjCRuntime { diff --git a/src/ObjCRuntime/IManagedRegistrar.cs b/src/ObjCRuntime/IManagedRegistrar.cs index 66da8fdf7a9d..79506ed78d80 100644 --- a/src/ObjCRuntime/IManagedRegistrar.cs +++ b/src/ObjCRuntime/IManagedRegistrar.cs @@ -8,7 +8,6 @@ #nullable enable -using System; using System.Collections.Generic; namespace ObjCRuntime { diff --git a/src/ObjCRuntime/INativeObject.cs b/src/ObjCRuntime/INativeObject.cs index bdeda7982f7d..a819d5c90a03 100644 --- a/src/ObjCRuntime/INativeObject.cs +++ b/src/ObjCRuntime/INativeObject.cs @@ -1,8 +1,6 @@ #nullable enable -using System; using System.Runtime.CompilerServices; -using Foundation; namespace ObjCRuntime { diff --git a/src/ObjCRuntime/LinkWithAttribute.cs b/src/ObjCRuntime/LinkWithAttribute.cs index 19976cba8552..101ef512cd39 100644 --- a/src/ObjCRuntime/LinkWithAttribute.cs +++ b/src/ObjCRuntime/LinkWithAttribute.cs @@ -23,7 +23,6 @@ // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // -using System; using System.IO; #nullable enable diff --git a/src/ObjCRuntime/Messaging.cs b/src/ObjCRuntime/Messaging.cs index 2faeee501e71..007ad093612e 100644 --- a/src/ObjCRuntime/Messaging.cs +++ b/src/ObjCRuntime/Messaging.cs @@ -1,5 +1,3 @@ -using System; -using System.Runtime.InteropServices; namespace ObjCRuntime { static partial class Messaging { diff --git a/src/ObjCRuntime/Method.cs b/src/ObjCRuntime/Method.cs index c9370365323a..2a8fed3a832d 100644 --- a/src/ObjCRuntime/Method.cs +++ b/src/ObjCRuntime/Method.cs @@ -1,6 +1,4 @@ -using System; using System.Reflection; -using System.Runtime.InteropServices; namespace ObjCRuntime { internal static class Method { diff --git a/src/ObjCRuntime/NativeAttribute.cs b/src/ObjCRuntime/NativeAttribute.cs index 3b294f4648d1..9b5c0fe61810 100644 --- a/src/ObjCRuntime/NativeAttribute.cs +++ b/src/ObjCRuntime/NativeAttribute.cs @@ -8,7 +8,6 @@ // Copyright 2013-2015 Xamarin, Inc. All rights reserved. // -using System; using System.Diagnostics; #nullable enable diff --git a/src/ObjCRuntime/NativeHandle.cs b/src/ObjCRuntime/NativeHandle.cs index f511edc9bb66..167a6ec58f9b 100644 --- a/src/ObjCRuntime/NativeHandle.cs +++ b/src/ObjCRuntime/NativeHandle.cs @@ -1,4 +1,3 @@ -using System; using System.Collections.Generic; #nullable enable diff --git a/src/ObjCRuntime/NativeNameAttribute.cs b/src/ObjCRuntime/NativeNameAttribute.cs index 77192a751db3..1d7ee816009d 100644 --- a/src/ObjCRuntime/NativeNameAttribute.cs +++ b/src/ObjCRuntime/NativeNameAttribute.cs @@ -8,7 +8,6 @@ // Copyright 2022 Microsoft Corp. All rights reserved. // -using System; using System.Diagnostics; namespace ObjCRuntime { diff --git a/src/ObjCRuntime/ObsoleteConstants.cs b/src/ObjCRuntime/ObsoleteConstants.cs index 9747118a0a90..ab879ab012fe 100644 --- a/src/ObjCRuntime/ObsoleteConstants.cs +++ b/src/ObjCRuntime/ObsoleteConstants.cs @@ -1,4 +1,3 @@ -using System; namespace ObjCRuntime { diff --git a/src/ObjCRuntime/Protocol.cs b/src/ObjCRuntime/Protocol.cs index 3e4ea5b96c4a..2d711597a2e6 100644 --- a/src/ObjCRuntime/Protocol.cs +++ b/src/ObjCRuntime/Protocol.cs @@ -6,11 +6,6 @@ #nullable enable -using System; -using System.Runtime.InteropServices; - -using Foundation; - namespace ObjCRuntime { /// Representation of an Objective-C protocol. /// diff --git a/src/ObjCRuntime/Registrar.cs b/src/ObjCRuntime/Registrar.cs index ac34f98f3664..045436c447d1 100644 --- a/src/ObjCRuntime/Registrar.cs +++ b/src/ObjCRuntime/Registrar.cs @@ -9,15 +9,11 @@ // #define VERBOSE_REGISTRAR -using System; using System.Collections.Generic; using System.Diagnostics; using System.Globalization; -using System.Runtime.InteropServices; using System.Text; -using Foundation; -using ObjCRuntime; using Xamarin.Bundler; #if MTOUCH || MMP || BUNDLER diff --git a/src/ObjCRuntime/RegistrarHelper.cs b/src/ObjCRuntime/RegistrarHelper.cs index c487561015ca..c99ea095d000 100644 --- a/src/ObjCRuntime/RegistrarHelper.cs +++ b/src/ObjCRuntime/RegistrarHelper.cs @@ -6,12 +6,10 @@ // // Copyright 2023 Microsoft Corp - // #define TRACE #nullable enable -using System; using System.Collections.Generic; using System.ComponentModel; using System.Diagnostics; @@ -20,12 +18,10 @@ using System.IO; using System.Reflection; using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; using System.Text; using CoreFoundation; using CoreGraphics; -using Foundation; using Registrar; diff --git a/src/ObjCRuntime/ReleaseAttribute.cs b/src/ObjCRuntime/ReleaseAttribute.cs index 4751e093099f..2c7ec3c0332a 100644 --- a/src/ObjCRuntime/ReleaseAttribute.cs +++ b/src/ObjCRuntime/ReleaseAttribute.cs @@ -1,7 +1,6 @@ // // Release attribute // -using System; namespace ObjCRuntime { /// This attribute indicates that the return value of a function is retained (the caller obtains a reference to the object returned). diff --git a/src/ObjCRuntime/RequiredFrameworkAttribute.cs b/src/ObjCRuntime/RequiredFrameworkAttribute.cs index 7009377c03bc..58346f2f42d3 100644 --- a/src/ObjCRuntime/RequiredFrameworkAttribute.cs +++ b/src/ObjCRuntime/RequiredFrameworkAttribute.cs @@ -23,8 +23,6 @@ #if MONOMAC -using System; -using System.Runtime.InteropServices; using System.IO; namespace ObjCRuntime { diff --git a/src/ObjCRuntime/RequiresSuperAttribute.cs b/src/ObjCRuntime/RequiresSuperAttribute.cs index 585d60585963..8efe276457d5 100644 --- a/src/ObjCRuntime/RequiresSuperAttribute.cs +++ b/src/ObjCRuntime/RequiresSuperAttribute.cs @@ -6,9 +6,6 @@ // // Copyright 2017 Xamarin Inc. -using System; -using Foundation; - namespace ObjCRuntime { // https://clang.llvm.org/docs/AttributeReference.html#objc-requires-super-clang-objc-requires-super diff --git a/src/ObjCRuntime/Runtime.CoreCLR.cs b/src/ObjCRuntime/Runtime.CoreCLR.cs index c49449d2f47f..0ebbd872ee09 100644 --- a/src/ObjCRuntime/Runtime.CoreCLR.cs +++ b/src/ObjCRuntime/Runtime.CoreCLR.cs @@ -6,7 +6,6 @@ // // Copyright 2021 Microsoft Corp. - // Uncomment the TRACK_MONOOBJECTS define to show a summary at process exit of // the MonoObjects that were created, and if any were not freed. If there are // leaked MonoObjects, a list of them will be printed. @@ -21,20 +20,16 @@ #nullable enable -using System; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.IO; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.ExceptionServices; -using System.Runtime.InteropServices; using System.Runtime.InteropServices.ObjectiveC; using System.Runtime.Loader; using System.Text; -using Foundation; - using Xamarin.Bundler; using MonoObjectPtr = System.IntPtr; diff --git a/src/ObjCRuntime/Runtime.cs b/src/ObjCRuntime/Runtime.cs index 591f1b9ff24e..f2cc4331e045 100644 --- a/src/ObjCRuntime/Runtime.cs +++ b/src/ObjCRuntime/Runtime.cs @@ -8,7 +8,6 @@ #nullable enable -using System; using System.Collections.Generic; using System.ComponentModel; using System.Diagnostics; @@ -17,11 +16,9 @@ using System.IO; using System.Reflection; using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; using System.Text; using CoreFoundation; -using Foundation; using Registrar; #if MONOMAC diff --git a/src/ObjCRuntime/Runtime.iOS.cs b/src/ObjCRuntime/Runtime.iOS.cs index a0ecbb8fe5b5..4562d6c094a4 100644 --- a/src/ObjCRuntime/Runtime.iOS.cs +++ b/src/ObjCRuntime/Runtime.iOS.cs @@ -3,17 +3,13 @@ #if !MONOMAC -using System; using System.ComponentModel; using System.Diagnostics; using System.IO; using System.Reflection; using System.Collections.Generic; -using System.Runtime.InteropServices; using CoreFoundation; -using Foundation; -using ObjCRuntime; using Registrar; using UIKit; diff --git a/src/ObjCRuntime/Runtime.mac.cs b/src/ObjCRuntime/Runtime.mac.cs index 5d39b6314087..cf0480cf3f23 100644 --- a/src/ObjCRuntime/Runtime.mac.cs +++ b/src/ObjCRuntime/Runtime.mac.cs @@ -25,14 +25,11 @@ #if MONOMAC -using System; using System.Reflection; using System.Collections.Generic; -using System.Runtime.InteropServices; using System.IO; using AppKit; -using Foundation; using Registrar; namespace ObjCRuntime { diff --git a/src/ObjCRuntime/RuntimeException.cs b/src/ObjCRuntime/RuntimeException.cs index 3533971716fd..e8fbd74b83d6 100644 --- a/src/ObjCRuntime/RuntimeException.cs +++ b/src/ObjCRuntime/RuntimeException.cs @@ -1,6 +1,5 @@ // Copyright 2011-2012, Xamarin Inc. All rights reserved, -using System; using System.Collections.Generic; #nullable enable diff --git a/src/ObjCRuntime/RuntimeOptions.cs b/src/ObjCRuntime/RuntimeOptions.cs index f75ed9a61683..83020feccea3 100644 --- a/src/ObjCRuntime/RuntimeOptions.cs +++ b/src/ObjCRuntime/RuntimeOptions.cs @@ -1,10 +1,7 @@ -using System; using System.IO; using System.Text; using System.Net.Http; -using Foundation; -using ObjCRuntime; #nullable enable diff --git a/src/ObjCRuntime/Selector.cs b/src/ObjCRuntime/Selector.cs index 5cabddc52d45..f96e38f7d909 100644 --- a/src/ObjCRuntime/Selector.cs +++ b/src/ObjCRuntime/Selector.cs @@ -22,11 +22,6 @@ // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // -using System; -using System.Runtime.InteropServices; -using Foundation; -using ObjCRuntime; - #nullable enable namespace ObjCRuntime { diff --git a/src/ObjCRuntime/Selector.mac.cs b/src/ObjCRuntime/Selector.mac.cs index 6252eb0e512f..4521151d449b 100644 --- a/src/ObjCRuntime/Selector.mac.cs +++ b/src/ObjCRuntime/Selector.mac.cs @@ -24,9 +24,6 @@ #if MONOMAC -using System; -using System.Runtime.InteropServices; - namespace ObjCRuntime { /// Represents an Objective-C selector in managed code. /// diff --git a/src/ObjCRuntime/Stret.cs b/src/ObjCRuntime/Stret.cs index ae69ce77ab2a..88be24d88627 100644 --- a/src/ObjCRuntime/Stret.cs +++ b/src/ObjCRuntime/Stret.cs @@ -20,17 +20,14 @@ // but at the cost of more IL). #pragma warning disable 162 // Unreachable code detected. -using System; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Reflection; #if !BGENERATOR using Generator = System.Object; #endif -using System.Runtime.InteropServices; #if !RGEN -using Foundation; #endif // Disable until we get around to enable + fix any issues. diff --git a/src/ObjCRuntime/SystemVersion.cs b/src/ObjCRuntime/SystemVersion.cs index b6fd5b5cd850..d23f8aa22828 100644 --- a/src/ObjCRuntime/SystemVersion.cs +++ b/src/ObjCRuntime/SystemVersion.cs @@ -1,10 +1,5 @@ #nullable enable -using System; -using System.Runtime.InteropServices; - -using Foundation; - #if !COREBUILD namespace ObjCRuntime { internal static class SystemVersion { diff --git a/src/ObjCRuntime/ThreadSafeAttribute.cs b/src/ObjCRuntime/ThreadSafeAttribute.cs index ce5ae1b7427d..70519143dce3 100644 --- a/src/ObjCRuntime/ThreadSafeAttribute.cs +++ b/src/ObjCRuntime/ThreadSafeAttribute.cs @@ -24,8 +24,6 @@ // // -using System; - namespace ObjCRuntime { /// A that indicates that a UIKit (for iOS) or AppKit (for macOS) method or class is thread-safe. diff --git a/src/ObjCRuntime/ThrowHelper.cs b/src/ObjCRuntime/ThrowHelper.cs index c68c57be268d..72db9363daf6 100644 --- a/src/ObjCRuntime/ThrowHelper.cs +++ b/src/ObjCRuntime/ThrowHelper.cs @@ -1,4 +1,3 @@ -using System; using System.ComponentModel; // the linker will remove the attributes using System.Diagnostics.CodeAnalysis; diff --git a/src/ObjCRuntime/TrampolineBlockBase.cs b/src/ObjCRuntime/TrampolineBlockBase.cs index f6cace8dd9c5..9f2a519d6b60 100644 --- a/src/ObjCRuntime/TrampolineBlockBase.cs +++ b/src/ObjCRuntime/TrampolineBlockBase.cs @@ -1,9 +1,7 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -using System; using System.ComponentModel; -using System.Runtime.InteropServices; // Disable until we get around to enable + fix any issues. #nullable disable diff --git a/src/ObjCRuntime/TransientAttribute.cs b/src/ObjCRuntime/TransientAttribute.cs index a27b3ae5d3ee..9ff2017b3caf 100644 --- a/src/ObjCRuntime/TransientAttribute.cs +++ b/src/ObjCRuntime/TransientAttribute.cs @@ -7,7 +7,6 @@ // Authors: // Rolf Bjarne Kvinge // -using System; namespace ObjCRuntime { /// diff --git a/src/ObjCRuntime/TransientCFObject.cs b/src/ObjCRuntime/TransientCFObject.cs index 602c7db51ba4..1eae988c7490 100644 --- a/src/ObjCRuntime/TransientCFObject.cs +++ b/src/ObjCRuntime/TransientCFObject.cs @@ -1,5 +1,3 @@ -using System; -using System.Runtime.InteropServices; using CoreFoundation; diff --git a/src/ObjCRuntime/TransientCFString.cs b/src/ObjCRuntime/TransientCFString.cs index 9460e671c7fd..74f478706709 100644 --- a/src/ObjCRuntime/TransientCFString.cs +++ b/src/ObjCRuntime/TransientCFString.cs @@ -1,5 +1,3 @@ -using System; -using System.Runtime.InteropServices; using CoreFoundation; diff --git a/src/ObjCRuntime/TransientString.cs b/src/ObjCRuntime/TransientString.cs index 2846ae855e41..bf659f81311c 100644 --- a/src/ObjCRuntime/TransientString.cs +++ b/src/ObjCRuntime/TransientString.cs @@ -1,5 +1,3 @@ -using System; -using System.Runtime.InteropServices; #nullable enable diff --git a/src/ObjCRuntime/TypeConverter.cs b/src/ObjCRuntime/TypeConverter.cs index ede94c3f44e1..b0f856e424e5 100644 --- a/src/ObjCRuntime/TypeConverter.cs +++ b/src/ObjCRuntime/TypeConverter.cs @@ -1,11 +1,8 @@ // Copyright 2011, 2012 Xamarin Inc -using System; using System.Text; using System.Reflection; using System.Collections.Generic; -using Foundation; - // Disable until we get around to enable + fix any issues. #nullable disable diff --git a/src/ObjCRuntime/UserDelegateTypeAttribute.cs b/src/ObjCRuntime/UserDelegateTypeAttribute.cs index a46a57f2dd59..d3e3932f2876 100644 --- a/src/ObjCRuntime/UserDelegateTypeAttribute.cs +++ b/src/ObjCRuntime/UserDelegateTypeAttribute.cs @@ -27,9 +27,7 @@ // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // -using System; using System.ComponentModel; -using System.Runtime.InteropServices; namespace ObjCRuntime { diff --git a/src/OpenGL/CGLContext.cs b/src/OpenGL/CGLContext.cs index 6f412e52389e..da8e781900d9 100644 --- a/src/OpenGL/CGLContext.cs +++ b/src/OpenGL/CGLContext.cs @@ -27,12 +27,7 @@ #nullable enable -using System; -using System.Runtime.InteropServices; - using CoreFoundation; -using ObjCRuntime; -using Foundation; namespace OpenGL { /// To be added. diff --git a/src/OpenGL/CGLEnums.cs b/src/OpenGL/CGLEnums.cs index 07b7174805c6..c9f32743d9ec 100644 --- a/src/OpenGL/CGLEnums.cs +++ b/src/OpenGL/CGLEnums.cs @@ -23,9 +23,6 @@ #nullable enable -using System; -using ObjCRuntime; - namespace OpenGL { /// To be added. /// To be added. diff --git a/src/OpenGL/CGLPixelFormat.cs b/src/OpenGL/CGLPixelFormat.cs index a93275771293..e2b2a20d6717 100644 --- a/src/OpenGL/CGLPixelFormat.cs +++ b/src/OpenGL/CGLPixelFormat.cs @@ -27,14 +27,10 @@ #nullable enable -using System; using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; using System.Collections.Generic; using CoreFoundation; -using ObjCRuntime; -using Foundation; namespace OpenGL { /// To be added. diff --git a/src/OpenGLES/EAGLConsts.cs b/src/OpenGLES/EAGLConsts.cs index 36fdd578546d..0b69a7a14f8e 100644 --- a/src/OpenGLES/EAGLConsts.cs +++ b/src/OpenGLES/EAGLConsts.cs @@ -4,11 +4,6 @@ // // (C) 2009 Novell, Inc. // -using System; -using System.Runtime.InteropServices; - -using Foundation; -using ObjCRuntime; #nullable enable diff --git a/src/OpenGLES/EAGLContext.cs b/src/OpenGLES/EAGLContext.cs index bf4d2fff4569..05ae87c30aab 100644 --- a/src/OpenGLES/EAGLContext.cs +++ b/src/OpenGLES/EAGLContext.cs @@ -1,7 +1,4 @@ -using System; using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using ObjCRuntime; namespace OpenGLES { public partial class EAGLContext { diff --git a/src/OpenGLES/EAGLEnums.cs b/src/OpenGLES/EAGLEnums.cs index 9138bc85c4fd..2c41a923f8af 100644 --- a/src/OpenGLES/EAGLEnums.cs +++ b/src/OpenGLES/EAGLEnums.cs @@ -1,4 +1,3 @@ -using ObjCRuntime; namespace OpenGLES { diff --git a/src/PassKit/PKCompat.cs b/src/PassKit/PKCompat.cs index a4234ff3bca4..28813be8c659 100644 --- a/src/PassKit/PKCompat.cs +++ b/src/PassKit/PKCompat.cs @@ -1,10 +1,6 @@ -using System; using System.ComponentModel; using System.Threading.Tasks; -using Foundation; -using ObjCRuntime; - #nullable enable namespace PassKit { diff --git a/src/PassKit/PKEnums.cs b/src/PassKit/PKEnums.cs index 2384807bfa5e..42e47325cdfe 100644 --- a/src/PassKit/PKEnums.cs +++ b/src/PassKit/PKEnums.cs @@ -1,9 +1,5 @@ // Copyright 2012-2014 Xamarin Inc. All rights reserved. -using System; -using Foundation; -using ObjCRuntime; - namespace PassKit { // NSInteger -> PKPass.h /// An enumeration whose values specify errors relating to the passes and passbook functionality. diff --git a/src/PassKit/PKJapanIndividualNumberCardMetadata.cs b/src/PassKit/PKJapanIndividualNumberCardMetadata.cs index d7bf19a8495a..ab32c50c56bd 100644 --- a/src/PassKit/PKJapanIndividualNumberCardMetadata.cs +++ b/src/PassKit/PKJapanIndividualNumberCardMetadata.cs @@ -1,9 +1,5 @@ #nullable enable -using System; -using Foundation; -using ObjCRuntime; - namespace PassKit { /// This enum is used to select how to initialize a new instance of a . diff --git a/src/PassKit/PKMerchantCategoryCode.cs b/src/PassKit/PKMerchantCategoryCode.cs index 10d73183f8d7..d668499a9737 100644 --- a/src/PassKit/PKMerchantCategoryCode.cs +++ b/src/PassKit/PKMerchantCategoryCode.cs @@ -1,7 +1,3 @@ -using System; -using System.Runtime.Versioning; - -using ObjCRuntime; #nullable enable diff --git a/src/PassKit/PKPayLaterView.cs b/src/PassKit/PKPayLaterView.cs index 252a16ec59fc..6c8a2d9f7c8f 100644 --- a/src/PassKit/PKPayLaterView.cs +++ b/src/PassKit/PKPayLaterView.cs @@ -2,12 +2,8 @@ #if IOS && !__MACCATALYST__ -using System; -using System.Runtime.InteropServices; using System.Runtime.CompilerServices; -using Foundation; -using ObjCRuntime; using PassKit; namespace PassKit { diff --git a/src/PassKit/PKPaymentRequest.cs b/src/PassKit/PKPaymentRequest.cs index e56eb6babe5c..a768c220b626 100644 --- a/src/PassKit/PKPaymentRequest.cs +++ b/src/PassKit/PKPaymentRequest.cs @@ -1,9 +1,5 @@ #nullable enable -using System; -using Foundation; -using ObjCRuntime; - namespace PassKit { public partial class PKContactFieldsExtensions { diff --git a/src/PassKit/PKShareablePassMetadata.cs b/src/PassKit/PKShareablePassMetadata.cs index 79e2dce9ec88..d8536311d9f0 100644 --- a/src/PassKit/PKShareablePassMetadata.cs +++ b/src/PassKit/PKShareablePassMetadata.cs @@ -1,6 +1,3 @@ -using System; -using Foundation; -using ObjCRuntime; #nullable enable diff --git a/src/PdfKit/Enums.cs b/src/PdfKit/Enums.cs index 944d923987b8..109a8710547b 100644 --- a/src/PdfKit/Enums.cs +++ b/src/PdfKit/Enums.cs @@ -26,9 +26,6 @@ // // Enums.cs: Enums for PdfKit // -using System; - -using ObjCRuntime; #nullable enable diff --git a/src/PdfKit/PdfAnnotation.cs b/src/PdfKit/PdfAnnotation.cs index 2100778e86e9..50b403680038 100644 --- a/src/PdfKit/PdfAnnotation.cs +++ b/src/PdfKit/PdfAnnotation.cs @@ -7,12 +7,8 @@ // Copyright 2017 Xamarin Inc. All rights reserved. // -using System; - using CoreFoundation; using CoreGraphics; -using Foundation; -using ObjCRuntime; #nullable enable diff --git a/src/PdfKit/PdfKit.cs b/src/PdfKit/PdfKit.cs index 0ea72db8f471..76dcbdee7ebf 100644 --- a/src/PdfKit/PdfKit.cs +++ b/src/PdfKit/PdfKit.cs @@ -1,8 +1,5 @@ -using System; using CoreGraphics; -using Foundation; -using ObjCRuntime; #nullable enable diff --git a/src/Photos/Enums.cs b/src/Photos/Enums.cs index b22d09def8e8..c8a9518a6701 100644 --- a/src/Photos/Enums.cs +++ b/src/Photos/Enums.cs @@ -1,6 +1,3 @@ -using System; -using ObjCRuntime; -using Foundation; namespace Photos { // NSInteger -> PHImageManager.h diff --git a/src/Photos/PHAssetChangeRequest.cs b/src/Photos/PHAssetChangeRequest.cs index 76abd2942077..62b9d75e1ae4 100644 --- a/src/Photos/PHAssetChangeRequest.cs +++ b/src/Photos/PHAssetChangeRequest.cs @@ -2,8 +2,6 @@ #if !MONOMAC -using System; - namespace Photos { public partial class PHAssetChangeRequest { diff --git a/src/Photos/PHAssetCreationRequest.cs b/src/Photos/PHAssetCreationRequest.cs index 40ee5879f686..2d771523ac7f 100644 --- a/src/Photos/PHAssetCreationRequest.cs +++ b/src/Photos/PHAssetCreationRequest.cs @@ -8,9 +8,6 @@ #nullable enable -using System; -using Foundation; - namespace Photos { partial class PHAssetCreationRequest { diff --git a/src/Photos/PHChangeRequest.cs b/src/Photos/PHChangeRequest.cs index eb16763ec340..da2df0f4287e 100644 --- a/src/Photos/PHChangeRequest.cs +++ b/src/Photos/PHChangeRequest.cs @@ -1,7 +1,5 @@ #nullable enable -using System; - namespace Photos { public partial class PHChangeRequest { diff --git a/src/Photos/PHFetchResult.cs b/src/Photos/PHFetchResult.cs index f2151ea657df..27132407198b 100644 --- a/src/Photos/PHFetchResult.cs +++ b/src/Photos/PHFetchResult.cs @@ -1,8 +1,5 @@ #nullable enable -using ObjCRuntime; -using Foundation; -using System; using System.Collections; using System.Collections.Generic; diff --git a/src/Photos/PHLivePhoto.cs b/src/Photos/PHLivePhoto.cs index b7f5e36dcefd..0360fbc6f5ec 100644 --- a/src/Photos/PHLivePhoto.cs +++ b/src/Photos/PHLivePhoto.cs @@ -2,9 +2,6 @@ #nullable enable -using System; -using Foundation; - namespace Photos { public partial class PHLivePhoto { diff --git a/src/Photos/PHPhotoLibrary.cs b/src/Photos/PHPhotoLibrary.cs index 7175693d88b0..8fadd0178a9f 100644 --- a/src/Photos/PHPhotoLibrary.cs +++ b/src/Photos/PHPhotoLibrary.cs @@ -9,9 +9,6 @@ #nullable enable -using ObjCRuntime; -using Foundation; -using System; using System.Collections; using System.Collections.Generic; diff --git a/src/PhotosUI/PHEnums.cs b/src/PhotosUI/PHEnums.cs index 67bc464b6101..02be0b414eed 100644 --- a/src/PhotosUI/PHEnums.cs +++ b/src/PhotosUI/PHEnums.cs @@ -1,6 +1,3 @@ -using System; -using Foundation; -using ObjCRuntime; namespace PhotosUI { diff --git a/src/PrintCore/Defs.cs b/src/PrintCore/Defs.cs index 7ff44742a7cb..9a0b10c39d90 100644 --- a/src/PrintCore/Defs.cs +++ b/src/PrintCore/Defs.cs @@ -9,15 +9,10 @@ #nullable enable -using System; -using System.Runtime.InteropServices; using System.Threading; using System.IO; -using ObjCRuntime; -using Foundation; using PMObject = System.IntPtr; -using System.Runtime.Versioning; namespace PrintCore { diff --git a/src/PrintCore/PrintCore.cs b/src/PrintCore/PrintCore.cs index ac01699837ef..f727017fd0eb 100644 --- a/src/PrintCore/PrintCore.cs +++ b/src/PrintCore/PrintCore.cs @@ -9,15 +9,10 @@ #nullable enable -using System; using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; using System.Threading; using System.IO; -using System.Runtime.Versioning; -using ObjCRuntime; -using Foundation; using CoreGraphics; using CoreFoundation; using PMObject = System.IntPtr; diff --git a/src/PushToTalk/Compat.cs b/src/PushToTalk/Compat.cs index d802d6c112b3..30f3eac58ab1 100644 --- a/src/PushToTalk/Compat.cs +++ b/src/PushToTalk/Compat.cs @@ -2,10 +2,6 @@ #if !XAMCORE_5_0 -using System; -using Foundation; -using ObjCRuntime; - namespace PushToTalk { public partial class PTChannelManagerDelegate { public override NativeHandle ClassHandle { get => base.ClassHandle; } diff --git a/src/QuickLook/Thumbnail.cs b/src/QuickLook/Thumbnail.cs index 5a1a1748b7b5..16a4cde3e787 100644 --- a/src/QuickLook/Thumbnail.cs +++ b/src/QuickLook/Thumbnail.cs @@ -30,11 +30,6 @@ #if MONOMAC -using System; -using System.Runtime.InteropServices; - -using ObjCRuntime; -using Foundation; using CoreFoundation; using CoreGraphics; diff --git a/src/QuickLookUI/QLPreviewPanel.cs b/src/QuickLookUI/QLPreviewPanel.cs index 067a3407189b..13b50f74b12f 100644 --- a/src/QuickLookUI/QLPreviewPanel.cs +++ b/src/QuickLookUI/QLPreviewPanel.cs @@ -1,11 +1,8 @@ #nullable enable -using ObjCRuntime; -using Foundation; using CoreGraphics; using AppKit; -using System; using System.ComponentModel; namespace QuickLookUI { diff --git a/src/ReplayKit/RPBroadcastConfiguration.cs b/src/ReplayKit/RPBroadcastConfiguration.cs index b029afeadf65..7589ca1a5c86 100644 --- a/src/ReplayKit/RPBroadcastConfiguration.cs +++ b/src/ReplayKit/RPBroadcastConfiguration.cs @@ -29,15 +29,12 @@ #if !MONOMAC -using System; using System.Drawing; using System.Diagnostics; using System.ComponentModel; using System.Threading.Tasks; -using System.Runtime.InteropServices; using System.Runtime.CompilerServices; -using Foundation; using AVFoundation; namespace ReplayKit { diff --git a/src/ReplayKit/RPEnums.cs b/src/ReplayKit/RPEnums.cs index 1772977d53f0..ae045a89b063 100644 --- a/src/ReplayKit/RPEnums.cs +++ b/src/ReplayKit/RPEnums.cs @@ -4,10 +4,6 @@ // Copyright 2015-2016 Xamarin Inc. All rights reserved. // -using System; -using ObjCRuntime; -using Foundation; - namespace ReplayKit { /// Enumerates errors that can be encountered while recording. diff --git a/src/SafariServices/SSEnums.cs b/src/SafariServices/SSEnums.cs index 6db5e29f919a..7f9e1b46aaa2 100644 --- a/src/SafariServices/SSEnums.cs +++ b/src/SafariServices/SSEnums.cs @@ -8,11 +8,6 @@ // Copyright 2019 Microsoft Corporation // -using System; - -using Foundation; -using ObjCRuntime; - namespace SafariServices { // NSInteger -> SSReadingList.h diff --git a/src/SafetyKit/SAEnums.cs b/src/SafetyKit/SAEnums.cs index 1a6ab0fec8aa..1e38a022e69c 100644 --- a/src/SafetyKit/SAEnums.cs +++ b/src/SafetyKit/SAEnums.cs @@ -10,10 +10,6 @@ #nullable enable -using System; -using ObjCRuntime; -using Foundation; - namespace SafetyKit { [Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0), NoTV] diff --git a/src/SceneKit/Constructors.cs b/src/SceneKit/Constructors.cs index 076f513a9b3b..0bdfcf3b9558 100644 --- a/src/SceneKit/Constructors.cs +++ b/src/SceneKit/Constructors.cs @@ -8,10 +8,6 @@ // // Copyright 2012 Xamarin Inc // -using System; - -using Foundation; -using ObjCRuntime; #nullable enable diff --git a/src/SceneKit/Defs.cs b/src/SceneKit/Defs.cs index 8f875379bbc8..e897ddfcbbed 100644 --- a/src/SceneKit/Defs.cs +++ b/src/SceneKit/Defs.cs @@ -8,11 +8,6 @@ // Copyright 2012-2014, 2016 Xamarin, Inc. // -using System; - -using Foundation; -using ObjCRuntime; - #nullable enable namespace SceneKit { diff --git a/src/SceneKit/NSValue.cs b/src/SceneKit/NSValue.cs index dbea73886639..16d76a78b025 100644 --- a/src/SceneKit/NSValue.cs +++ b/src/SceneKit/NSValue.cs @@ -1,9 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -using System; -using System.Runtime.InteropServices; -using ObjCRuntime; using SceneKit; #nullable enable diff --git a/src/SceneKit/SCNAnimatable.cs b/src/SceneKit/SCNAnimatable.cs index ed0cb33bda99..3136a149ef1b 100644 --- a/src/SceneKit/SCNAnimatable.cs +++ b/src/SceneKit/SCNAnimatable.cs @@ -7,9 +7,6 @@ // Copyright 2014 Xamarin Inc. All rights reserved. // -using System; -using System.Runtime.InteropServices; -using Foundation; using CoreAnimation; #nullable enable diff --git a/src/SceneKit/SCNGeometrySource.cs b/src/SceneKit/SCNGeometrySource.cs index 065d577e2917..a6e92072afda 100644 --- a/src/SceneKit/SCNGeometrySource.cs +++ b/src/SceneKit/SCNGeometrySource.cs @@ -7,10 +7,8 @@ // // Copyright Xamarin Inc // -using System; using CoreGraphics; -using Foundation; using Metal; #nullable enable diff --git a/src/SceneKit/SCNJavaScript.cs b/src/SceneKit/SCNJavaScript.cs index d4a0ae0c74e5..dd2396edcb0f 100644 --- a/src/SceneKit/SCNJavaScript.cs +++ b/src/SceneKit/SCNJavaScript.cs @@ -7,10 +7,6 @@ // Copyright 2014 Xamarin Inc. All rights reserved. // -using System; -using System.Runtime.InteropServices; - -using ObjCRuntime; using JavaScriptCore; #nullable enable diff --git a/src/SceneKit/SCNMatrix4_dotnet.cs b/src/SceneKit/SCNMatrix4_dotnet.cs index 00c91edd144e..81e5c23aaad6 100644 --- a/src/SceneKit/SCNMatrix4_dotnet.cs +++ b/src/SceneKit/SCNMatrix4_dotnet.cs @@ -20,17 +20,12 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - */ #if !MONOMAC #define PFLOAT_SINGLE #endif -using System; -using System.Runtime.InteropServices; -using Foundation; - using Vector3 = global::System.Numerics.Vector3; using Vector3d = global::CoreGraphics.NVector3d; using Vector4 = global::System.Numerics.Vector4; diff --git a/src/SceneKit/SCNNode.cs b/src/SceneKit/SCNNode.cs index 643b4b619f2d..abff7c7ed329 100644 --- a/src/SceneKit/SCNNode.cs +++ b/src/SceneKit/SCNNode.cs @@ -7,13 +7,10 @@ // Copyright Xamarin Inc. // -using System; using System.Collections; using System.Collections.Generic; using CoreAnimation; -using Foundation; -using ObjCRuntime; #nullable enable diff --git a/src/SceneKit/SCNParticleSystem.cs b/src/SceneKit/SCNParticleSystem.cs index 6a7eaf04d7fc..89beb77b049d 100644 --- a/src/SceneKit/SCNParticleSystem.cs +++ b/src/SceneKit/SCNParticleSystem.cs @@ -7,13 +7,9 @@ // Copyright Xamarin Inc. // -using System; using System.Collections; using System.Collections.Generic; -using Foundation; -using System.Runtime.Versioning; - #nullable enable namespace SceneKit { diff --git a/src/SceneKit/SCNPhysicsShape.cs b/src/SceneKit/SCNPhysicsShape.cs index 683363986c09..1feba9ed3f58 100644 --- a/src/SceneKit/SCNPhysicsShape.cs +++ b/src/SceneKit/SCNPhysicsShape.cs @@ -7,12 +7,6 @@ // Copyright 2014 Xamarin Inc. All rights reserved. // -using System; -using System.Runtime.InteropServices; - -using ObjCRuntime; -using Foundation; - #nullable enable namespace SceneKit { diff --git a/src/SceneKit/SCNPhysicsTest.cs b/src/SceneKit/SCNPhysicsTest.cs index 9e569d0820fb..245cc5de1a4d 100644 --- a/src/SceneKit/SCNPhysicsTest.cs +++ b/src/SceneKit/SCNPhysicsTest.cs @@ -7,8 +7,6 @@ // Copyright 2014 Xamarin Inc. All rights reserved. // -using System; - #nullable enable namespace SceneKit { diff --git a/src/SceneKit/SCNQuaternion.cs b/src/SceneKit/SCNQuaternion.cs index 86139266ef3d..f5070fa6f7cd 100644 --- a/src/SceneKit/SCNQuaternion.cs +++ b/src/SceneKit/SCNQuaternion.cs @@ -35,11 +35,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE using pfloat = System.Single; #endif -using System; -using System.Runtime.InteropServices; using System.ComponentModel; using System.Xml.Serialization; -using System.Runtime.Versioning; #nullable enable diff --git a/src/SceneKit/SCNRenderer.cs b/src/SceneKit/SCNRenderer.cs index 0f12dae183aa..62f423c5aa4f 100644 --- a/src/SceneKit/SCNRenderer.cs +++ b/src/SceneKit/SCNRenderer.cs @@ -1,7 +1,3 @@ -using System; -using System.Runtime.Versioning; -using Foundation; -using ObjCRuntime; #if MONOMAC using GLContext = global::OpenGL.CGLContext; diff --git a/src/SceneKit/SCNRenderingOptions.cs b/src/SceneKit/SCNRenderingOptions.cs index c73d82efc950..e8e443cd8ca6 100644 --- a/src/SceneKit/SCNRenderingOptions.cs +++ b/src/SceneKit/SCNRenderingOptions.cs @@ -1,8 +1,5 @@ #if !__MACCATALYST__ -using System; -using ObjCRuntime; - #nullable enable namespace SceneKit { diff --git a/src/SceneKit/SCNScene.cs b/src/SceneKit/SCNScene.cs index a0c6320fdb98..ccbf3b8cfdde 100644 --- a/src/SceneKit/SCNScene.cs +++ b/src/SceneKit/SCNScene.cs @@ -7,7 +7,6 @@ // Copyright Xamarin Inc. // -using System; using System.Collections; using System.Collections.Generic; diff --git a/src/SceneKit/SCNSceneLoadingOptions.cs b/src/SceneKit/SCNSceneLoadingOptions.cs index df03c3839396..a7de7ccd019e 100644 --- a/src/SceneKit/SCNSceneLoadingOptions.cs +++ b/src/SceneKit/SCNSceneLoadingOptions.cs @@ -1,4 +1,3 @@ -using System; #nullable enable diff --git a/src/SceneKit/SCNSceneSource.cs b/src/SceneKit/SCNSceneSource.cs index 27811afbfecc..7cff7b82f0fb 100644 --- a/src/SceneKit/SCNSceneSource.cs +++ b/src/SceneKit/SCNSceneSource.cs @@ -7,12 +7,9 @@ // Copyright Xamarin Inc. // -using System; using System.Collections; using System.Collections.Generic; using CoreFoundation; -using Foundation; -using ObjCRuntime; #nullable enable diff --git a/src/SceneKit/SCNSkinner.cs b/src/SceneKit/SCNSkinner.cs index b78b56f3adb0..6eb9fadb0cb7 100644 --- a/src/SceneKit/SCNSkinner.cs +++ b/src/SceneKit/SCNSkinner.cs @@ -7,12 +7,6 @@ // Copyright 2014 Xamarin Inc. All rights reserved. // -using System; -using System.Runtime.InteropServices; - -using ObjCRuntime; -using Foundation; - #nullable enable namespace SceneKit { diff --git a/src/SceneKit/SCNTechnique.cs b/src/SceneKit/SCNTechnique.cs index 4be5a9920eef..3494f7a89ecf 100644 --- a/src/SceneKit/SCNTechnique.cs +++ b/src/SceneKit/SCNTechnique.cs @@ -7,10 +7,8 @@ // Copyright Xamarin Inc. // -using System; using System.Collections; using System.Collections.Generic; -using Foundation; #nullable enable diff --git a/src/SceneKit/SCNVector3.cs b/src/SceneKit/SCNVector3.cs index f1a4665c3767..96e8f5353314 100644 --- a/src/SceneKit/SCNVector3.cs +++ b/src/SceneKit/SCNVector3.cs @@ -26,10 +26,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE */ #endregion -using System; -using System.Runtime.InteropServices; using System.Xml.Serialization; -using System.Runtime.Versioning; using Vector2 = global::System.Numerics.Vector2; using Vector3 = global::System.Numerics.Vector3; diff --git a/src/SceneKit/SCNVector4.cs b/src/SceneKit/SCNVector4.cs index f869b8591ba7..8366d4596773 100644 --- a/src/SceneKit/SCNVector4.cs +++ b/src/SceneKit/SCNVector4.cs @@ -24,10 +24,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE */ #endregion -using System; -using System.Runtime.InteropServices; using System.Xml.Serialization; -using System.Runtime.Versioning; using Vector2 = global::System.Numerics.Vector2; using Vector3 = global::System.Numerics.Vector3; diff --git a/src/ScreenCaptureKit/SCContentFilter.cs b/src/ScreenCaptureKit/SCContentFilter.cs index 25cb676570ab..8f23191dd78f 100644 --- a/src/ScreenCaptureKit/SCContentFilter.cs +++ b/src/ScreenCaptureKit/SCContentFilter.cs @@ -9,12 +9,7 @@ #nullable enable -using System; -using System.Runtime.InteropServices; - using CoreFoundation; -using Foundation; -using ObjCRuntime; namespace ScreenCaptureKit { /// This enum describes how to interpret some arguments when creating instances. diff --git a/src/ScreenTime/STWebHistory.cs b/src/ScreenTime/STWebHistory.cs index 7ac9466bd313..24e4ed36abd0 100644 --- a/src/ScreenTime/STWebHistory.cs +++ b/src/ScreenTime/STWebHistory.cs @@ -1,7 +1,5 @@ using System.Diagnostics.CodeAnalysis; -using Foundation; - namespace ScreenTime { public partial class STWebHistory { /// Create a new for the specified bundle identifier. diff --git a/src/ScriptingBridge/Enums.cs b/src/ScriptingBridge/Enums.cs index 7f8ed0c1bdbb..0a440ed47f4a 100644 --- a/src/ScriptingBridge/Enums.cs +++ b/src/ScriptingBridge/Enums.cs @@ -21,7 +21,6 @@ // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // -using System; namespace ScriptingBridge { // AE.framework/Headers/AEDataModel.h:typedef SInt32 AESendMode; diff --git a/src/ScriptingBridge/SBApplication.cs b/src/ScriptingBridge/SBApplication.cs index d608d1ed1104..40a5d7835070 100644 --- a/src/ScriptingBridge/SBApplication.cs +++ b/src/ScriptingBridge/SBApplication.cs @@ -1,10 +1,7 @@ #nullable enable -using System; using System.Reflection; using AppKit; -using Foundation; -using ObjCRuntime; namespace ScriptingBridge { /// This class provides API to send Apple events to scriptable applications and get Apple events back. diff --git a/src/SearchKit/SearchKit.cs b/src/SearchKit/SearchKit.cs index 9b474cf9a54f..b2d5fb4843b7 100644 --- a/src/SearchKit/SearchKit.cs +++ b/src/SearchKit/SearchKit.cs @@ -20,14 +20,8 @@ #nullable enable -using System; using System.Runtime.CompilerServices; -using System.Runtime.Versioning; using CoreFoundation; -using ObjCRuntime; -using Foundation; - -using System.Runtime.InteropServices; namespace SearchKit { /// To be added. diff --git a/src/Security/Authorization.cs b/src/Security/Authorization.cs index 317d141f0716..1d7c694dd3a4 100644 --- a/src/Security/Authorization.cs +++ b/src/Security/Authorization.cs @@ -29,11 +29,6 @@ #if MONOMAC || __MACCATALYST__ -using ObjCRuntime; -using Foundation; -using System; -using System.Runtime.InteropServices; - namespace Security { /// To be added. /// To be added. diff --git a/src/Security/Certificate.cs b/src/Security/Certificate.cs index 6f44a3cdf165..db58710b6a1b 100644 --- a/src/Security/Certificate.cs +++ b/src/Security/Certificate.cs @@ -30,13 +30,9 @@ #nullable enable -using System; using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; using System.Security.Cryptography.X509Certificates; -using ObjCRuntime; using CoreFoundation; -using Foundation; namespace Security { diff --git a/src/Security/Enums.cs b/src/Security/Enums.cs index 5c614aeb8940..3c05fda6c908 100644 --- a/src/Security/Enums.cs +++ b/src/Security/Enums.cs @@ -1,8 +1,4 @@ // Copyright 2011-2015 Xamarin Inc. All rights reserved. -using System; - -using Foundation; -using ObjCRuntime; namespace Security { diff --git a/src/Security/ImportExport.cs b/src/Security/ImportExport.cs index cd176fa6a4b7..b7875c50e0bb 100644 --- a/src/Security/ImportExport.cs +++ b/src/Security/ImportExport.cs @@ -28,11 +28,7 @@ #nullable enable -using System; -using System.Runtime.InteropServices; -using ObjCRuntime; using CoreFoundation; -using Foundation; namespace Security { diff --git a/src/Security/Items.cs b/src/Security/Items.cs index 4667f12ed6fd..05c91c93f439 100644 --- a/src/Security/Items.cs +++ b/src/Security/Items.cs @@ -33,13 +33,9 @@ #nullable enable -using System; using System.Collections; using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; using CoreFoundation; -using Foundation; -using ObjCRuntime; #if !MONOMAC using UIKit; #endif diff --git a/src/Security/Policy.cs b/src/Security/Policy.cs index 58eb38b20745..2f01f3091c08 100644 --- a/src/Security/Policy.cs +++ b/src/Security/Policy.cs @@ -30,11 +30,7 @@ #nullable enable -using System; -using System.Runtime.InteropServices; -using ObjCRuntime; using CoreFoundation; -using Foundation; namespace Security { diff --git a/src/Security/SecAccessControl.cs b/src/Security/SecAccessControl.cs index 79b016ebe2ac..93faef994e66 100644 --- a/src/Security/SecAccessControl.cs +++ b/src/Security/SecAccessControl.cs @@ -14,12 +14,8 @@ #nullable enable -using System; using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using ObjCRuntime; using CoreFoundation; -using Foundation; namespace Security { diff --git a/src/Security/SecCertificate2.cs b/src/Security/SecCertificate2.cs index e7281ef3d964..69cc9f510d69 100644 --- a/src/Security/SecCertificate2.cs +++ b/src/Security/SecCertificate2.cs @@ -14,11 +14,7 @@ #nullable enable -using System; -using System.Runtime.InteropServices; using System.Runtime.CompilerServices; -using ObjCRuntime; -using Foundation; using CoreFoundation; namespace Security { diff --git a/src/Security/SecIdentity.cs b/src/Security/SecIdentity.cs index 0f5475a560ae..a27740ebd305 100644 --- a/src/Security/SecIdentity.cs +++ b/src/Security/SecIdentity.cs @@ -9,11 +9,7 @@ #nullable enable -using System; -using System.Runtime.InteropServices; -using ObjCRuntime; using CoreFoundation; -using Foundation; namespace Security { diff --git a/src/Security/SecIdentity2.cs b/src/Security/SecIdentity2.cs index 5487fdee14ef..a26bef4aaea5 100644 --- a/src/Security/SecIdentity2.cs +++ b/src/Security/SecIdentity2.cs @@ -14,11 +14,7 @@ #nullable enable -using System; -using System.Runtime.InteropServices; using System.Runtime.CompilerServices; -using ObjCRuntime; -using Foundation; using CoreFoundation; namespace Security { diff --git a/src/Security/SecPolicy.cs b/src/Security/SecPolicy.cs index b1212f3d96ef..ca840137d2f4 100644 --- a/src/Security/SecPolicy.cs +++ b/src/Security/SecPolicy.cs @@ -9,11 +9,7 @@ #nullable enable -using System; -using System.Runtime.InteropServices; -using ObjCRuntime; using CoreFoundation; -using Foundation; namespace Security { diff --git a/src/Security/SecProtocolMetadata.cs b/src/Security/SecProtocolMetadata.cs index 8422ce7b5ac6..e1da1d488466 100644 --- a/src/Security/SecProtocolMetadata.cs +++ b/src/Security/SecProtocolMetadata.cs @@ -9,11 +9,7 @@ #nullable enable -using System; -using System.Runtime.InteropServices; using System.Runtime.CompilerServices; -using ObjCRuntime; -using Foundation; using CoreFoundation; using Security; using sec_protocol_metadata_t = System.IntPtr; diff --git a/src/Security/SecProtocolOptions.cs b/src/Security/SecProtocolOptions.cs index e7e889c10dcc..ff63c0ae2464 100644 --- a/src/Security/SecProtocolOptions.cs +++ b/src/Security/SecProtocolOptions.cs @@ -9,11 +9,7 @@ #nullable enable -using System; -using System.Runtime.InteropServices; using System.Runtime.CompilerServices; -using ObjCRuntime; -using Foundation; using CoreFoundation; using sec_protocol_options_t = System.IntPtr; diff --git a/src/Security/SecSharedCredential.cs b/src/Security/SecSharedCredential.cs index 76d1d8f07337..e4a301712527 100644 --- a/src/Security/SecSharedCredential.cs +++ b/src/Security/SecSharedCredential.cs @@ -2,13 +2,9 @@ #if IOS || MONOMAC -using System; using System.ComponentModel; -using System.Runtime.InteropServices; -using ObjCRuntime; using CoreFoundation; -using Foundation; namespace Security { diff --git a/src/Security/SecStatusCodeExtensions.cs b/src/Security/SecStatusCodeExtensions.cs index 37f463047de5..3b4d92c95cb0 100644 --- a/src/Security/SecStatusCodeExtensions.cs +++ b/src/Security/SecStatusCodeExtensions.cs @@ -9,11 +9,6 @@ #nullable enable -using System; -using System.Runtime.InteropServices; -using ObjCRuntime; -using Foundation; - namespace Security { /// To be added. /// To be added. diff --git a/src/Security/SecTrust.cs b/src/Security/SecTrust.cs index b49fc3fa5248..80a37538b86a 100644 --- a/src/Security/SecTrust.cs +++ b/src/Security/SecTrust.cs @@ -10,15 +10,11 @@ #nullable enable -using System; using System.Collections.Generic; using System.Linq; -using System.Runtime.InteropServices; using System.Security; using System.Security.Cryptography.X509Certificates; -using ObjCRuntime; using CoreFoundation; -using Foundation; namespace Security { diff --git a/src/Security/SecTrust2.cs b/src/Security/SecTrust2.cs index b2e1cff2734e..8d5c853cfbc7 100644 --- a/src/Security/SecTrust2.cs +++ b/src/Security/SecTrust2.cs @@ -14,11 +14,7 @@ #nullable enable -using System; -using System.Runtime.InteropServices; using System.Runtime.CompilerServices; -using ObjCRuntime; -using Foundation; using CoreFoundation; namespace Security { diff --git a/src/Security/SecureTransport.cs b/src/Security/SecureTransport.cs index 320eeeee43bf..0c2a41ccf3a0 100644 --- a/src/Security/SecureTransport.cs +++ b/src/Security/SecureTransport.cs @@ -1,8 +1,5 @@ // Copyright 2014 Xamarin Inc. All rights reserved. -using System; -using ObjCRuntime; - namespace Security { // Security.framework/Headers/SecureTransport.h diff --git a/src/Security/SslConnection.cs b/src/Security/SslConnection.cs index e5ecb949186f..9c51b4caf599 100644 --- a/src/Security/SslConnection.cs +++ b/src/Security/SslConnection.cs @@ -9,12 +9,8 @@ #nullable enable -using System; using System.IO; using System.Net.Sockets; -using System.Runtime.InteropServices; - -using ObjCRuntime; namespace Security { /// Class that represents an SSL connection. diff --git a/src/Security/SslContext.cs b/src/Security/SslContext.cs index 98242f6ee0d9..bd3cf98b37a0 100644 --- a/src/Security/SslContext.cs +++ b/src/Security/SslContext.cs @@ -9,17 +9,13 @@ #nullable enable -using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; using System.Text; using CoreFoundation; -using Foundation; -using ObjCRuntime; namespace Security { /// Class that encapsulates SSL session state.. diff --git a/src/Security/Trust.cs b/src/Security/Trust.cs index 3749b035fb3d..7f405536c304 100644 --- a/src/Security/Trust.cs +++ b/src/Security/Trust.cs @@ -30,13 +30,9 @@ #nullable enable -using System; -using System.Runtime.InteropServices; using System.Security; using System.Security.Cryptography.X509Certificates; -using ObjCRuntime; using CoreFoundation; -using Foundation; namespace Security { /// A trust level. A trust object combines a certificate with a policy or policies. diff --git a/src/SensorKit/SRAbsoluteTime.cs b/src/SensorKit/SRAbsoluteTime.cs index ebe2a0fb50c0..36889627e76a 100644 --- a/src/SensorKit/SRAbsoluteTime.cs +++ b/src/SensorKit/SRAbsoluteTime.cs @@ -1,6 +1,3 @@ -using System; -using System.Runtime.InteropServices; -using ObjCRuntime; #nullable enable diff --git a/src/SensorKit/SRAmbientLightChromaticity.cs b/src/SensorKit/SRAmbientLightChromaticity.cs index 883710a864c2..e9e6e6e44c73 100644 --- a/src/SensorKit/SRAmbientLightChromaticity.cs +++ b/src/SensorKit/SRAmbientLightChromaticity.cs @@ -1,6 +1,3 @@ -using System; -using System.Runtime.InteropServices; -using ObjCRuntime; #nullable enable diff --git a/src/SensorKit/SRSensor.cs b/src/SensorKit/SRSensor.cs index e2651cf211a5..3792ea5a0314 100644 --- a/src/SensorKit/SRSensor.cs +++ b/src/SensorKit/SRSensor.cs @@ -1,6 +1,3 @@ -using System; -using System.Runtime.InteropServices; -using ObjCRuntime; #nullable enable diff --git a/src/SharedWithYouCore/SWCollaborationMetadata.cs b/src/SharedWithYouCore/SWCollaborationMetadata.cs index 6651d6bdd52b..08efc984bb74 100644 --- a/src/SharedWithYouCore/SWCollaborationMetadata.cs +++ b/src/SharedWithYouCore/SWCollaborationMetadata.cs @@ -8,10 +8,6 @@ // #nullable enable -using System; -using Foundation; -using ObjCRuntime; - #if !TVOS namespace SharedWithYouCore { diff --git a/src/Simd/MatrixDouble4x4.cs b/src/Simd/MatrixDouble4x4.cs index dfd1ab032df6..a80140c22398 100644 --- a/src/Simd/MatrixDouble4x4.cs +++ b/src/Simd/MatrixDouble4x4.cs @@ -12,10 +12,6 @@ #nullable enable -using System; -using System.Runtime.InteropServices; -using System.Runtime.Versioning; - using Vector4d = global::CoreGraphics.NVector4d; // This type does not come from the CoreGraphics framework; it's defined in /usr/include/simd/matrix_types.h diff --git a/src/Simd/MatrixFloat2x2.cs b/src/Simd/MatrixFloat2x2.cs index 502ee0249b63..d5538c89e381 100644 --- a/src/Simd/MatrixFloat2x2.cs +++ b/src/Simd/MatrixFloat2x2.cs @@ -12,10 +12,7 @@ #nullable enable -using System; using System.ComponentModel; -using System.Runtime.InteropServices; -using System.Runtime.Versioning; // This type does not come from the CoreGraphics framework; it's defined in /usr/include/simd/matrix_types.h namespace CoreGraphics { diff --git a/src/Simd/MatrixFloat3x3.cs b/src/Simd/MatrixFloat3x3.cs index 66612e2b574b..149786c2aaed 100644 --- a/src/Simd/MatrixFloat3x3.cs +++ b/src/Simd/MatrixFloat3x3.cs @@ -12,10 +12,7 @@ #nullable enable -using System; using System.ComponentModel; -using System.Runtime.InteropServices; -using System.Runtime.Versioning; // This type does not come from the CoreGraphics framework; it's defined in /usr/include/simd/matrix_types.h namespace CoreGraphics { diff --git a/src/Simd/MatrixFloat3x3RM.cs b/src/Simd/MatrixFloat3x3RM.cs index 843ff0a2f98e..740740fdf308 100644 --- a/src/Simd/MatrixFloat3x3RM.cs +++ b/src/Simd/MatrixFloat3x3RM.cs @@ -16,12 +16,8 @@ #nullable enable -using System; using System.ComponentModel; using System.Numerics; -using System.Runtime.InteropServices; - -using ObjCRuntime; // This type does not come from the CoreGraphics framework namespace CoreGraphics { diff --git a/src/Simd/MatrixFloat4x3.cs b/src/Simd/MatrixFloat4x3.cs index b498f41d91dc..8ab5bbbca0c1 100644 --- a/src/Simd/MatrixFloat4x3.cs +++ b/src/Simd/MatrixFloat4x3.cs @@ -11,10 +11,6 @@ #nullable enable -using System; -using System.Runtime.InteropServices; -using System.Runtime.Versioning; - using VectorFloat4 = global::System.Numerics.Vector4; // This type does not come from the CoreGraphics framework; it's defined in /usr/include/simd/matrix_types.h diff --git a/src/Simd/MatrixFloat4x4.cs b/src/Simd/MatrixFloat4x4.cs index b671fdc29422..03aacfe264a4 100644 --- a/src/Simd/MatrixFloat4x4.cs +++ b/src/Simd/MatrixFloat4x4.cs @@ -12,12 +12,6 @@ #nullable enable -using System; -using System.Runtime.InteropServices; -using System.Runtime.Versioning; - -using ObjCRuntime; - using VectorFloat4 = global::System.Numerics.Vector4; namespace CoreGraphics { diff --git a/src/Simd/QuaternionDouble.cs b/src/Simd/QuaternionDouble.cs index 1b2764ed1a18..c2bd88653acf 100644 --- a/src/Simd/QuaternionDouble.cs +++ b/src/Simd/QuaternionDouble.cs @@ -15,9 +15,6 @@ #nullable enable -using System; -using System.Runtime.InteropServices; - // This type does not come from the CoreGraphics framework; it's defined in /usr/include/simd/quaternion.h namespace CoreGraphics { [StructLayout (LayoutKind.Sequential)] diff --git a/src/Simd/VectorDouble2.cs b/src/Simd/VectorDouble2.cs index 135f1097a368..264ca65326a8 100644 --- a/src/Simd/VectorDouble2.cs +++ b/src/Simd/VectorDouble2.cs @@ -11,9 +11,6 @@ #nullable enable -using System; -using System.Runtime.InteropServices; - // This type does not come from the CoreGraphics framework; it's defined in /usr/include/simd/vector_types.h namespace CoreGraphics { [StructLayout (LayoutKind.Sequential)] diff --git a/src/Simd/VectorDouble3.cs b/src/Simd/VectorDouble3.cs index 9f80ce872ea0..1785ec5c6343 100644 --- a/src/Simd/VectorDouble3.cs +++ b/src/Simd/VectorDouble3.cs @@ -12,10 +12,6 @@ #nullable enable -using System; -using System.Runtime.InteropServices; -using System.Runtime.Versioning; - // This type does not come from the CoreGraphics framework; it's defined in /usr/include/simd/vector_types.h namespace CoreGraphics { [SupportedOSPlatform ("ios")] diff --git a/src/Simd/VectorDouble4.cs b/src/Simd/VectorDouble4.cs index 80976dbc89f7..c10fc3cd19d5 100644 --- a/src/Simd/VectorDouble4.cs +++ b/src/Simd/VectorDouble4.cs @@ -11,9 +11,6 @@ #nullable enable -using System; -using System.Runtime.InteropServices; - // This type does not come from the CoreGraphics framework; it's defined in /usr/include/simd/vector_types.h namespace CoreGraphics { [StructLayout (LayoutKind.Sequential)] diff --git a/src/Simd/VectorFloat3.cs b/src/Simd/VectorFloat3.cs index fa756a114529..84f728b202ec 100644 --- a/src/Simd/VectorFloat3.cs +++ b/src/Simd/VectorFloat3.cs @@ -11,10 +11,6 @@ #nullable enable -using System; -using System.Runtime.InteropServices; -using System.Runtime.Versioning; - // This type does not come from the CoreGraphics framework; it's defined in /usr/include/simd/vector_types.h namespace CoreGraphics { [SupportedOSPlatform ("ios")] diff --git a/src/Simd/VectorInt2.cs b/src/Simd/VectorInt2.cs index bf8ca84b19a5..b64ce8f1d51e 100644 --- a/src/Simd/VectorInt2.cs +++ b/src/Simd/VectorInt2.cs @@ -11,9 +11,6 @@ #nullable enable -using System; -using System.Runtime.InteropServices; - // This type does not come from the CoreGraphics framework; it's defined in /usr/include/simd/vector_types.h namespace CoreGraphics { [StructLayout (LayoutKind.Sequential)] diff --git a/src/Simd/VectorInt3.cs b/src/Simd/VectorInt3.cs index 561a4f4241b1..dca0dfe2b576 100644 --- a/src/Simd/VectorInt3.cs +++ b/src/Simd/VectorInt3.cs @@ -11,9 +11,6 @@ #nullable enable -using System; -using System.Runtime.InteropServices; - // This type does not come from the CoreGraphics framework; it's defined in /usr/include/simd/vector_types.h namespace CoreGraphics { [StructLayout (LayoutKind.Sequential)] diff --git a/src/Simd/VectorInt4.cs b/src/Simd/VectorInt4.cs index 91f6afed372d..09a06e519e8c 100644 --- a/src/Simd/VectorInt4.cs +++ b/src/Simd/VectorInt4.cs @@ -11,9 +11,6 @@ #nullable enable -using System; -using System.Runtime.InteropServices; - // This type does not come from the CoreGraphics framework; it's defined in /usr/include/simd/vector_types.h namespace CoreGraphics { [StructLayout (LayoutKind.Sequential)] diff --git a/src/Social/Enums.cs b/src/Social/Enums.cs index 4034f35747a7..b1be973e8c5e 100644 --- a/src/Social/Enums.cs +++ b/src/Social/Enums.cs @@ -7,9 +7,6 @@ // Copyright 2012-2014 Xamarin Inc // -using Foundation; -using ObjCRuntime; - namespace Social { // NSInteger -> SLRequest.h diff --git a/src/Social/SLComposeViewController.cs b/src/Social/SLComposeViewController.cs index 882a1cfabf7a..96d8ef37527b 100644 --- a/src/Social/SLComposeViewController.cs +++ b/src/Social/SLComposeViewController.cs @@ -10,9 +10,6 @@ #nullable enable #if !MONOMAC -using System; -using ObjCRuntime; -using Foundation; using Accounts; using UIKit; diff --git a/src/Speech/SFCompat.cs b/src/Speech/SFCompat.cs index 64cbf554fb66..9a5f74000b90 100644 --- a/src/Speech/SFCompat.cs +++ b/src/Speech/SFCompat.cs @@ -1,8 +1,5 @@ #nullable enable -using System; -using Foundation; -using ObjCRuntime; using System.ComponentModel; namespace Speech { diff --git a/src/SpriteKit/Enums.cs b/src/SpriteKit/Enums.cs index b7b5a7684b42..498b143dfbe8 100644 --- a/src/SpriteKit/Enums.cs +++ b/src/SpriteKit/Enums.cs @@ -6,8 +6,6 @@ // // Copyright 2013-2014 Xamarin Inc -using ObjCRuntime; - #nullable enable namespace SpriteKit { diff --git a/src/SpriteKit/SKAction.cs b/src/SpriteKit/SKAction.cs index c09179ff459a..992d6b7cb447 100644 --- a/src/SpriteKit/SKAction.cs +++ b/src/SpriteKit/SKAction.cs @@ -7,7 +7,6 @@ // Copyright 2013 Xamarin Inc. // -using System; using CoreGraphics; using CoreFoundation; diff --git a/src/SpriteKit/SKKeyframeSequence.cs b/src/SpriteKit/SKKeyframeSequence.cs index ce500896a5ee..443dcdf44d30 100644 --- a/src/SpriteKit/SKKeyframeSequence.cs +++ b/src/SpriteKit/SKKeyframeSequence.cs @@ -7,13 +7,10 @@ // Copyright 2013,2015 Xamarin Inc. // -using System; using System.Collections.Generic; #if !NO_SYSTEM_DRAWING using System.Drawing; #endif -using Foundation; -using ObjCRuntime; #nullable enable diff --git a/src/SpriteKit/SKNode.cs b/src/SpriteKit/SKNode.cs index b717e1390e2c..e3194799ec2e 100644 --- a/src/SpriteKit/SKNode.cs +++ b/src/SpriteKit/SKNode.cs @@ -7,13 +7,10 @@ // Copyright Xamarin Inc. // -using System; using System.Collections; using System.Collections.Generic; using CoreFoundation; -using Foundation; -using ObjCRuntime; #nullable enable diff --git a/src/SpriteKit/SKShapeNode.cs b/src/SpriteKit/SKShapeNode.cs index 66e7db69e008..56a61811cf9f 100644 --- a/src/SpriteKit/SKShapeNode.cs +++ b/src/SpriteKit/SKShapeNode.cs @@ -7,9 +7,7 @@ // Copyright 2016 Xamarin Inc. // -using System; using CoreGraphics; -using ObjCRuntime; #nullable enable diff --git a/src/SpriteKit/SKWarpGeometryGrid.cs b/src/SpriteKit/SKWarpGeometryGrid.cs index 093008990744..6986689f72bc 100644 --- a/src/SpriteKit/SKWarpGeometryGrid.cs +++ b/src/SpriteKit/SKWarpGeometryGrid.cs @@ -7,10 +7,7 @@ // Copyright 2016 Xamarin Inc. // -using System; using System.Numerics; -using System.Runtime.InteropServices; -using ObjCRuntime; #nullable enable diff --git a/src/StoreKit/Enums.cs b/src/StoreKit/Enums.cs index 1030a06a871b..2fa3d171e13e 100644 --- a/src/StoreKit/Enums.cs +++ b/src/StoreKit/Enums.cs @@ -1,6 +1,3 @@ -using Foundation; -using ObjCRuntime; -using System; namespace StoreKit { diff --git a/src/StoreKit/NativeMethods.cs b/src/StoreKit/NativeMethods.cs index 1cbfb697c072..c5c9d4254bdb 100644 --- a/src/StoreKit/NativeMethods.cs +++ b/src/StoreKit/NativeMethods.cs @@ -1,9 +1,5 @@ #nullable enable -using System; -using System.Runtime.InteropServices; -using ObjCRuntime; - namespace StoreKit { partial class SKReceiptRefreshRequest { diff --git a/src/StoreKit/SKCloudServiceSetupOptions.cs b/src/StoreKit/SKCloudServiceSetupOptions.cs index 2fac04506161..f982252e3340 100644 --- a/src/StoreKit/SKCloudServiceSetupOptions.cs +++ b/src/StoreKit/SKCloudServiceSetupOptions.cs @@ -2,10 +2,6 @@ #if __IOS__ -using System; -using ObjCRuntime; -using Foundation; - namespace StoreKit { partial class SKCloudServiceSetupOptions { diff --git a/src/StoreKit/SKOverlayAppClipConfiguration.cs b/src/StoreKit/SKOverlayAppClipConfiguration.cs index 7f431db6a955..a5fd967db5f7 100644 --- a/src/StoreKit/SKOverlayAppClipConfiguration.cs +++ b/src/StoreKit/SKOverlayAppClipConfiguration.cs @@ -1,11 +1,8 @@ #nullable enable #if __IOS__ -using System; -using Foundation; using CoreFoundation; -using ObjCRuntime; namespace StoreKit { diff --git a/src/StoreKit/SKOverlayAppConfiguration.cs b/src/StoreKit/SKOverlayAppConfiguration.cs index 81d3da2f8c83..a2c4f582d04e 100644 --- a/src/StoreKit/SKOverlayAppConfiguration.cs +++ b/src/StoreKit/SKOverlayAppConfiguration.cs @@ -1,11 +1,8 @@ #nullable enable #if __IOS__ -using System; -using Foundation; using CoreFoundation; -using ObjCRuntime; namespace StoreKit { diff --git a/src/StoreKit/SKPayment.cs b/src/StoreKit/SKPayment.cs index 7c15d1974a0d..5bac78ef7b61 100644 --- a/src/StoreKit/SKPayment.cs +++ b/src/StoreKit/SKPayment.cs @@ -2,8 +2,6 @@ #nullable enable -using System; - using StoreKit; namespace StoreKit { diff --git a/src/StoreKit/SKReceiptProperty.cs b/src/StoreKit/SKReceiptProperty.cs index d51198b6cc12..e0c2475cd41c 100644 --- a/src/StoreKit/SKReceiptProperty.cs +++ b/src/StoreKit/SKReceiptProperty.cs @@ -9,15 +9,12 @@ #nullable enable -using ObjCRuntime; -using Foundation; using CoreFoundation; using StoreKit; #if !MONOMAC using UIKit; #endif -using System; namespace StoreKit { /// Defines test properties for the constructor. diff --git a/src/StoreKit/StoreProductParameters.cs b/src/StoreKit/StoreProductParameters.cs index da42bc948c7f..fb9848156928 100644 --- a/src/StoreKit/StoreProductParameters.cs +++ b/src/StoreKit/StoreProductParameters.cs @@ -27,11 +27,7 @@ #nullable enable -using System; - -using Foundation; using CoreFoundation; -using ObjCRuntime; namespace StoreKit { diff --git a/src/SystemConfiguration/CaptiveNetwork.cs b/src/SystemConfiguration/CaptiveNetwork.cs index f26c0b53b614..07d85193a9e2 100644 --- a/src/SystemConfiguration/CaptiveNetwork.cs +++ b/src/SystemConfiguration/CaptiveNetwork.cs @@ -11,11 +11,7 @@ #nullable enable -using System; -using System.Runtime.InteropServices; using CoreFoundation; -using Foundation; -using ObjCRuntime; namespace SystemConfiguration { diff --git a/src/SystemConfiguration/NetworkReachability.cs b/src/SystemConfiguration/NetworkReachability.cs index 33ceb225f95e..3fd3a4ad48f5 100644 --- a/src/SystemConfiguration/NetworkReachability.cs +++ b/src/SystemConfiguration/NetworkReachability.cs @@ -11,12 +11,8 @@ #nullable enable -using System; using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using ObjCRuntime; using CoreFoundation; -using Foundation; using System.Net; using System.Net.Sockets; diff --git a/src/SystemConfiguration/StatusCode.cs b/src/SystemConfiguration/StatusCode.cs index 1cb7f015354b..b105abfb8c90 100644 --- a/src/SystemConfiguration/StatusCode.cs +++ b/src/SystemConfiguration/StatusCode.cs @@ -7,11 +7,6 @@ // Copyright 2012, 2016 Xamarin Inc. All rights reserved. // -using System; -using System.Runtime.InteropServices; - -using ObjCRuntime; - namespace SystemConfiguration { // untyped enum -> SystemConfiguration.framework/Headers/SystemConfiguration.h diff --git a/src/SystemConfiguration/StatusCodeError.cs b/src/SystemConfiguration/StatusCodeError.cs index 558b7ccad269..cf35ba416c2c 100644 --- a/src/SystemConfiguration/StatusCodeError.cs +++ b/src/SystemConfiguration/StatusCodeError.cs @@ -9,11 +9,6 @@ #nullable enable -using System; -using System.Runtime.InteropServices; - -using ObjCRuntime; - namespace SystemConfiguration { // https://developer.apple.com/library/mac/#documentation/SystemConfiguration/Reference/SystemConfiguration_Utilities/Reference/reference.html diff --git a/src/SystemConfiguration/SystemConfigurationException.cs b/src/SystemConfiguration/SystemConfigurationException.cs index 16606b2bfec6..7a5d8a605f12 100644 --- a/src/SystemConfiguration/SystemConfigurationException.cs +++ b/src/SystemConfiguration/SystemConfigurationException.cs @@ -9,8 +9,6 @@ #nullable enable -using System; - namespace SystemConfiguration { /// An exception relating to network reachability. The cause of the exception is specified by the property. diff --git a/src/TVMLKit/TVViewElement.cs b/src/TVMLKit/TVViewElement.cs index dd2f995fdc0e..d20ade959daa 100644 --- a/src/TVMLKit/TVViewElement.cs +++ b/src/TVMLKit/TVViewElement.cs @@ -1,8 +1,5 @@ #nullable enable -using System; -using Foundation; -using ObjCRuntime; using UIKit; namespace TVMLKit { diff --git a/src/TVServices/TVContentItemImageShape.cs b/src/TVServices/TVContentItemImageShape.cs index 40eec28dae2e..aeeaae8ddd9d 100644 --- a/src/TVServices/TVContentItemImageShape.cs +++ b/src/TVServices/TVContentItemImageShape.cs @@ -4,11 +4,7 @@ #if !COREBUILD -using System; -using System.Runtime.InteropServices; using CoreGraphics; -using Foundation; -using ObjCRuntime; namespace TVServices { diff --git a/src/TVServices/TVEnums.cs b/src/TVServices/TVEnums.cs index 54e5378c074d..71909b2f4e4b 100644 --- a/src/TVServices/TVEnums.cs +++ b/src/TVServices/TVEnums.cs @@ -1,11 +1,6 @@ // Copyright 2015 Xamarin Inc. -using System; -using System.Runtime.InteropServices; - using CoreGraphics; -using Foundation; -using ObjCRuntime; #nullable enable diff --git a/src/Twitter/Enums.cs b/src/Twitter/Enums.cs index a7130da524cc..f94c681dc345 100644 --- a/src/Twitter/Enums.cs +++ b/src/Twitter/Enums.cs @@ -9,8 +9,6 @@ #nullable enable -using ObjCRuntime; - namespace Twitter { // untyped enum -> TWTweetComposeViewController.h where the values are equals to those of diff --git a/src/UIKit/Compat.cs b/src/UIKit/Compat.cs index 1b432559c8e5..bd37eaff9b68 100644 --- a/src/UIKit/Compat.cs +++ b/src/UIKit/Compat.cs @@ -8,12 +8,9 @@ // Copyright 2019 Microsoft Corporation // -using System; using System.ComponentModel; using CoreGraphics; -using Foundation; -using ObjCRuntime; namespace UIKit { #if !XAMCORE_5_0 && IOS diff --git a/src/UIKit/NSLayoutManager.cs b/src/UIKit/NSLayoutManager.cs index 710e86b61a57..f722d69340f8 100644 --- a/src/UIKit/NSLayoutManager.cs +++ b/src/UIKit/NSLayoutManager.cs @@ -7,16 +7,12 @@ // Copyright 2013, Xamarin Inc // -using System; #if IOS using System.Drawing; #endif -using System.Runtime.InteropServices; using System.Collections; using CoreGraphics; -using Foundation; -using ObjCRuntime; #if MONOMAC using UIFont = AppKit.NSFont; diff --git a/src/UIKit/NSValue.cs b/src/UIKit/NSValue.cs index 583c532f4b7c..bbb7d04e7453 100644 --- a/src/UIKit/NSValue.cs +++ b/src/UIKit/NSValue.cs @@ -1,9 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -using System; -using System.Runtime.InteropServices; -using ObjCRuntime; using UIKit; #nullable enable diff --git a/src/UIKit/UIAccessibility.cs b/src/UIKit/UIAccessibility.cs index 4605a75147da..5c72ec05dc17 100644 --- a/src/UIKit/UIAccessibility.cs +++ b/src/UIKit/UIAccessibility.cs @@ -7,13 +7,9 @@ // Copyrigh 2012-2014, Xamarin Inc. // -using Foundation; -using ObjCRuntime; using UIKit; using CoreGraphics; -using System; -using System.Runtime.InteropServices; using System.Threading.Tasks; // Disable until we get around to enable + fix any issues. diff --git a/src/UIKit/UIAccessibilityCustomAction.cs b/src/UIKit/UIAccessibilityCustomAction.cs index 0e829098788e..1c3390273458 100644 --- a/src/UIKit/UIAccessibilityCustomAction.cs +++ b/src/UIKit/UIAccessibilityCustomAction.cs @@ -7,9 +7,6 @@ // Copyright 2014 Xamarin Inc // -using System; -using Foundation; -using ObjCRuntime; using CoreGraphics; // Disable until we get around to enable + fix any issues. diff --git a/src/UIKit/UIActionSheet.cs b/src/UIKit/UIActionSheet.cs index 8b5647130c48..9b9136119943 100644 --- a/src/UIKit/UIActionSheet.cs +++ b/src/UIKit/UIActionSheet.cs @@ -10,10 +10,7 @@ #if IOS -using System; using System.Collections; -using ObjCRuntime; -using Foundation; // Disable until we get around to enable + fix any issues. #nullable disable diff --git a/src/UIKit/UIAlertView.cs b/src/UIKit/UIAlertView.cs index 33a490c92077..77a7b810d159 100644 --- a/src/UIKit/UIAlertView.cs +++ b/src/UIKit/UIAlertView.cs @@ -10,10 +10,6 @@ #if IOS -using System; -using ObjCRuntime; -using Foundation; - namespace UIKit { public partial class UIAlertView { /// Constructor to initialize an alert view. diff --git a/src/UIKit/UIAppearance.cs b/src/UIKit/UIAppearance.cs index 13cd73c7ac0d..ff65932d9651 100644 --- a/src/UIKit/UIAppearance.cs +++ b/src/UIKit/UIAppearance.cs @@ -7,11 +7,7 @@ // Copyright 2011, 2015 Xamarin Inc // -using System; using System.Reflection; -using System.Runtime.InteropServices; -using Foundation; -using ObjCRuntime; // Disable until we get around to enable + fix any issues. #nullable disable diff --git a/src/UIKit/UIApplication.cs b/src/UIKit/UIApplication.cs index b7a72aa36561..90907cfabd35 100644 --- a/src/UIKit/UIApplication.cs +++ b/src/UIKit/UIApplication.cs @@ -9,13 +9,9 @@ // Copyright 2019 Microsoft Corporation. // -using System; using System.ComponentModel; using System.Threading; -using ObjCRuntime; -using System.Runtime.InteropServices; using CoreFoundation; -using Foundation; #nullable enable diff --git a/src/UIKit/UIBarButtonItem.cs b/src/UIKit/UIBarButtonItem.cs index 706c4950f1f2..7af092e5e1fc 100644 --- a/src/UIKit/UIBarButtonItem.cs +++ b/src/UIKit/UIBarButtonItem.cs @@ -1,6 +1,3 @@ -using Foundation; -using ObjCRuntime; -using System; using System.Diagnostics.CodeAnalysis; #nullable enable diff --git a/src/UIKit/UIBarItem.cs b/src/UIKit/UIBarItem.cs index 28453fd31d08..92e8d114e27e 100644 --- a/src/UIKit/UIBarItem.cs +++ b/src/UIKit/UIBarItem.cs @@ -7,10 +7,6 @@ // Copyright 2011, 2015 Xamarin Inc. // -using System; -using ObjCRuntime; -using Foundation; - using TextAttributes = UIKit.UIStringAttributes; namespace UIKit { diff --git a/src/UIKit/UIBezierPath.cs b/src/UIKit/UIBezierPath.cs index b957e74503ad..d47e2492924d 100644 --- a/src/UIKit/UIBezierPath.cs +++ b/src/UIKit/UIBezierPath.cs @@ -7,10 +7,7 @@ // Copyright 2014-2015, Xamarin Inc // -using System; using System.Collections; -using ObjCRuntime; -using Foundation; namespace UIKit { public partial class UIBezierPath { diff --git a/src/UIKit/UIButton.cs b/src/UIKit/UIButton.cs index 92542144d86b..f142a1a3f46f 100644 --- a/src/UIKit/UIButton.cs +++ b/src/UIKit/UIButton.cs @@ -7,9 +7,6 @@ // Copyright 2012, 2015 Xamarin Inc // -using System; -using ObjCRuntime; - namespace UIKit { public partial class UIButton { diff --git a/src/UIKit/UICellAccessory.cs b/src/UIKit/UICellAccessory.cs index 4a5d878393ee..9073917fada5 100644 --- a/src/UIKit/UICellAccessory.cs +++ b/src/UIKit/UICellAccessory.cs @@ -7,11 +7,6 @@ // Copyright (c) Microsoft Corporation. // -using System; -using System.Runtime.InteropServices; -using Foundation; -using ObjCRuntime; - #nullable enable namespace UIKit { diff --git a/src/UIKit/UICollectionView.cs b/src/UIKit/UICollectionView.cs index 1d038624dcb2..43dbaf4bc6c1 100644 --- a/src/UIKit/UICollectionView.cs +++ b/src/UIKit/UICollectionView.cs @@ -7,9 +7,6 @@ // Miguel de Icaza // -using System; -using ObjCRuntime; -using Foundation; using System.Threading.Tasks; // Disable until we get around to enable + fix any issues. diff --git a/src/UIKit/UICollectionViewLayout.cs b/src/UIKit/UICollectionViewLayout.cs index 5b9c51c5f473..2c12f4c6d66e 100644 --- a/src/UIKit/UICollectionViewLayout.cs +++ b/src/UIKit/UICollectionViewLayout.cs @@ -7,10 +7,6 @@ // Copyrigh 2012, Xamarin Inc. // -using System; -using Foundation; -using ObjCRuntime; - namespace UIKit { public partial class UICollectionViewLayout { diff --git a/src/UIKit/UICollectionViewLayoutAttributes.cs b/src/UIKit/UICollectionViewLayoutAttributes.cs index 0a97e0a28374..2a0ef9865ce9 100644 --- a/src/UIKit/UICollectionViewLayoutAttributes.cs +++ b/src/UIKit/UICollectionViewLayoutAttributes.cs @@ -7,12 +7,9 @@ // Copyright 2013 Xamarin Inc // -using System; using System.Collections; using System.ComponentModel; using System.Runtime.CompilerServices; -using Foundation; -using ObjCRuntime; using CoreGraphics; // Disable until we get around to enable + fix any issues. diff --git a/src/UIKit/UIColor.cs b/src/UIKit/UIColor.cs index 419ee8d3b1f2..6e17386bf044 100644 --- a/src/UIKit/UIColor.cs +++ b/src/UIKit/UIColor.cs @@ -7,9 +7,6 @@ // Copyright 2009, Novell, Inc. // -using System; -using ObjCRuntime; -using Foundation; #if !COREBUILD using CoreGraphics; #endif diff --git a/src/UIKit/UIConfigurationColorTransformer.cs b/src/UIKit/UIConfigurationColorTransformer.cs index 83134c5a0d29..40dd38ad64f8 100644 --- a/src/UIKit/UIConfigurationColorTransformer.cs +++ b/src/UIKit/UIConfigurationColorTransformer.cs @@ -7,11 +7,6 @@ // Copyright (c) Microsoft Corporation. // -using System; -using System.Runtime.InteropServices; -using Foundation; -using ObjCRuntime; - #nullable enable namespace UIKit { diff --git a/src/UIKit/UIContentSizeCategory.cs b/src/UIKit/UIContentSizeCategory.cs index 53f227853969..62c931700da8 100644 --- a/src/UIKit/UIContentSizeCategory.cs +++ b/src/UIKit/UIContentSizeCategory.cs @@ -1,8 +1,3 @@ -using System; -using System.Runtime.InteropServices; - -using ObjCRuntime; -using Foundation; namespace UIKit { static public partial class UIContentSizeCategoryExtensions { diff --git a/src/UIKit/UIControl.cs b/src/UIKit/UIControl.cs index ad3805d87caa..52b460eab273 100644 --- a/src/UIKit/UIControl.cs +++ b/src/UIKit/UIControl.cs @@ -7,11 +7,8 @@ // Copyright 2009 Novell, Inc // -using Foundation; -using System; using System.Collections.Generic; using System.Runtime.CompilerServices; -using ObjCRuntime; // Disable until we get around to enable + fix any issues. #nullable disable diff --git a/src/UIKit/UIDevice.cs b/src/UIKit/UIDevice.cs index b6de575cdb34..401dca320938 100644 --- a/src/UIKit/UIDevice.cs +++ b/src/UIKit/UIDevice.cs @@ -1,7 +1,4 @@ -using System; using System.Globalization; -using ObjCRuntime; -using Foundation; namespace UIKit { diff --git a/src/UIKit/UIDocumentBrowserViewController.cs b/src/UIKit/UIDocumentBrowserViewController.cs index f5a089e569a8..8ca927e7548b 100644 --- a/src/UIKit/UIDocumentBrowserViewController.cs +++ b/src/UIKit/UIDocumentBrowserViewController.cs @@ -25,10 +25,6 @@ #if IOS -using System; -using Foundation; -using ObjCRuntime; - namespace UIKit { public partial class UIDocumentBrowserViewController { diff --git a/src/UIKit/UIDragDropSessionExtensions.cs b/src/UIKit/UIDragDropSessionExtensions.cs index 3d6ef4798d7e..8e63baf59ec7 100644 --- a/src/UIKit/UIDragDropSessionExtensions.cs +++ b/src/UIKit/UIDragDropSessionExtensions.cs @@ -9,10 +9,6 @@ #if !TVOS -using System; -using ObjCRuntime; -using Foundation; - // Disable until we get around to enable + fix any issues. #nullable disable diff --git a/src/UIKit/UIEnums.cs b/src/UIKit/UIEnums.cs index 42044d0da757..af27c0601f2c 100644 --- a/src/UIKit/UIEnums.cs +++ b/src/UIKit/UIEnums.cs @@ -8,10 +8,6 @@ // Miguel de Icaza // -using System; -using Foundation; -using ObjCRuntime; - namespace UIKit { // NSInteger -> UIImagePickerController.h /// An enumeration of values used to specify video quality. diff --git a/src/UIKit/UIEnumsExtensions.cs b/src/UIKit/UIEnumsExtensions.cs index ac7db3d02fc5..fc435e61a840 100644 --- a/src/UIKit/UIEnumsExtensions.cs +++ b/src/UIKit/UIEnumsExtensions.cs @@ -8,10 +8,6 @@ // Miguel de Icaza // -using System; -using Foundation; -using ObjCRuntime; - namespace UIKit { #if IOS diff --git a/src/UIKit/UIEvent.cs b/src/UIKit/UIEvent.cs index 3a8f155a7a4d..6725147dddbe 100644 --- a/src/UIKit/UIEvent.cs +++ b/src/UIKit/UIEvent.cs @@ -7,10 +7,6 @@ // Copyright 2012, Xamarin Inc // -using System; -using ObjCRuntime; -using Foundation; - namespace UIKit { public partial class UIEvent { diff --git a/src/UIKit/UIEventButtonMaskExtensions.cs b/src/UIKit/UIEventButtonMaskExtensions.cs index 994ff386ff14..ac55d0ba99f2 100644 --- a/src/UIKit/UIEventButtonMaskExtensions.cs +++ b/src/UIKit/UIEventButtonMaskExtensions.cs @@ -7,10 +7,6 @@ // Copyright (c) Microsoft Corporation. // #if IOS -using System; -using System.Runtime.InteropServices; -using Foundation; -using ObjCRuntime; namespace UIKit { [SupportedOSPlatform ("ios13.4")] diff --git a/src/UIKit/UIFont.cs b/src/UIKit/UIFont.cs index 55775162e686..50947f0d9d6a 100644 --- a/src/UIKit/UIFont.cs +++ b/src/UIKit/UIFont.cs @@ -9,10 +9,6 @@ // Copyright 2012-2014 Xamarin Inc. All rights reserved. // -using System; -using ObjCRuntime; -using Foundation; - // Disable until we get around to enable + fix any issues. #nullable disable diff --git a/src/UIKit/UIFontDescriptor.cs b/src/UIKit/UIFontDescriptor.cs index 3bc8edabdbbb..544e810d573c 100644 --- a/src/UIKit/UIFontDescriptor.cs +++ b/src/UIKit/UIFontDescriptor.cs @@ -6,10 +6,7 @@ // // Copyright 2013-2014 Xamarin Inc // -using System; -using ObjCRuntime; using CoreGraphics; -using Foundation; // Disable until we get around to enable + fix any issues. #nullable disable diff --git a/src/UIKit/UIFontFeature.cs b/src/UIKit/UIFontFeature.cs index a8b5ad1df2a6..986864e78605 100644 --- a/src/UIKit/UIFontFeature.cs +++ b/src/UIKit/UIFontFeature.cs @@ -9,10 +9,6 @@ #nullable enable -using System; - -using Foundation; -using ObjCRuntime; using CoreText; namespace UIKit { diff --git a/src/UIKit/UIGestureRecognizer.cs b/src/UIKit/UIGestureRecognizer.cs index 89ff3e52ca16..7fc97d1fdeb1 100644 --- a/src/UIKit/UIGestureRecognizer.cs +++ b/src/UIKit/UIGestureRecognizer.cs @@ -8,10 +8,7 @@ // Copyright 2011-2013 Xamarin Inc. All rights reserved // -using System; using System.Collections.Generic; -using Foundation; -using ObjCRuntime; #nullable enable namespace UIKit { diff --git a/src/UIKit/UIGraphics.cs b/src/UIKit/UIGraphics.cs index cb379f3e27f2..8d14ca843e29 100644 --- a/src/UIKit/UIGraphics.cs +++ b/src/UIKit/UIGraphics.cs @@ -7,11 +7,7 @@ // Copyright 2009 Novell, inc. // Copyright 2012-2014 Xamarin Inc // -using System.Runtime.InteropServices; using CoreGraphics; -using Foundation; -using ObjCRuntime; -using System; using System.ComponentModel; // Disable until we get around to enable + fix any issues. diff --git a/src/UIKit/UIGuidedAccessRestriction.cs b/src/UIKit/UIGuidedAccessRestriction.cs index e55c80a6eda0..93ca4e448920 100644 --- a/src/UIKit/UIGuidedAccessRestriction.cs +++ b/src/UIKit/UIGuidedAccessRestriction.cs @@ -7,11 +7,7 @@ // Copyrigh 2013-2014 Xamarin Inc. // -using System; -using System.Runtime.InteropServices; using System.Threading.Tasks; -using Foundation; -using ObjCRuntime; using UIKit; // Disable until we get around to enable + fix any issues. diff --git a/src/UIKit/UIImage.cs b/src/UIKit/UIImage.cs index 7df7c3b0ebe8..bd3abcd96401 100644 --- a/src/UIKit/UIImage.cs +++ b/src/UIKit/UIImage.cs @@ -7,15 +7,11 @@ // Copyright 2009, Novell, Inc. // Copyrigh 2014 Xamarin Inc. // -using System; using System.IO; using System.Reflection; using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; using System.Collections; -using Foundation; -using ObjCRuntime; using CoreGraphics; #nullable enable diff --git a/src/UIKit/UIImagePickerController.cs b/src/UIKit/UIImagePickerController.cs index 0c166c646fed..085dcf06f769 100644 --- a/src/UIKit/UIImagePickerController.cs +++ b/src/UIKit/UIImagePickerController.cs @@ -10,11 +10,8 @@ #if !TVOS // __TVOS_PROHIBITED -using ObjCRuntime; -using Foundation; using CoreGraphics; using Photos; -using System; using System.Drawing; // Disable until we get around to enable + fix any issues. diff --git a/src/UIKit/UIKeyboard.cs b/src/UIKit/UIKeyboard.cs index 431bbb2e244f..7879f72ffd76 100644 --- a/src/UIKit/UIKeyboard.cs +++ b/src/UIKit/UIKeyboard.cs @@ -2,12 +2,8 @@ // Mostly notifications for keyboard events // -using Foundation; -using ObjCRuntime; using CoreGraphics; -using System; - namespace UIKit { public partial class UIKeyboard { static CGRect RectangleFFrom (NSObject key, NSNotification n) diff --git a/src/UIKit/UIKitSynchronizationContext.cs b/src/UIKit/UIKitSynchronizationContext.cs index 95df063f6696..d086f0463d36 100644 --- a/src/UIKit/UIKitSynchronizationContext.cs +++ b/src/UIKit/UIKitSynchronizationContext.cs @@ -7,9 +7,7 @@ // Copyright 2011, Xamarin Inc. // -using System; using System.Threading; -using Foundation; // Disable until we get around to enable + fix any issues. #nullable disable diff --git a/src/UIKit/UIListSeparatorConfiguration.cs b/src/UIKit/UIListSeparatorConfiguration.cs index d836bbfdf4b6..563411f936e4 100644 --- a/src/UIKit/UIListSeparatorConfiguration.cs +++ b/src/UIKit/UIListSeparatorConfiguration.cs @@ -8,10 +8,6 @@ // #if IOS -using System; -using System.Runtime.InteropServices; -using Foundation; -using ObjCRuntime; namespace UIKit { public partial class UIListSeparatorConfiguration { diff --git a/src/UIKit/UIMenu.cs b/src/UIKit/UIMenu.cs index 99ae37711fd4..557c5773f783 100644 --- a/src/UIKit/UIMenu.cs +++ b/src/UIKit/UIMenu.cs @@ -1,8 +1,3 @@ -using System; -using System.Runtime.InteropServices; - -using ObjCRuntime; -using Foundation; namespace UIKit { public partial class UIMenu { diff --git a/src/UIKit/UINavigationBar.cs b/src/UIKit/UINavigationBar.cs index 4748223644e2..32b2ee6c08b1 100644 --- a/src/UIKit/UINavigationBar.cs +++ b/src/UIKit/UINavigationBar.cs @@ -9,9 +9,6 @@ #if IOS -using System; -using Foundation; -using ObjCRuntime; using CoreAnimation; using CoreGraphics; using MediaPlayer; diff --git a/src/UIKit/UINavigationController.cs b/src/UIKit/UINavigationController.cs index 23c6e615dcf1..7a15ead26c0f 100644 --- a/src/UIKit/UINavigationController.cs +++ b/src/UIKit/UINavigationController.cs @@ -1,6 +1,3 @@ -using System; -using Foundation; -using ObjCRuntime; namespace UIKit { public partial class UINavigationController { diff --git a/src/UIKit/UIOffset.cs b/src/UIKit/UIOffset.cs index e96c38239201..d57878fa7198 100644 --- a/src/UIKit/UIOffset.cs +++ b/src/UIKit/UIOffset.cs @@ -8,10 +8,6 @@ // Miguel de Icaza // -using System; -using Foundation; -using ObjCRuntime; - // Disable until we get around to enable + fix any issues. #nullable disable diff --git a/src/UIKit/UIPageViewController.cs b/src/UIKit/UIPageViewController.cs index 1e9178454c84..0ee8fa632842 100644 --- a/src/UIKit/UIPageViewController.cs +++ b/src/UIKit/UIPageViewController.cs @@ -7,8 +7,6 @@ // Miguel de Icaza // -using Foundation; - namespace UIKit { public partial class UIPageViewController { /// To be added. diff --git a/src/UIKit/UIPasteboard.cs b/src/UIKit/UIPasteboard.cs index eb9f50e95fb4..0a341f55c2d6 100644 --- a/src/UIKit/UIPasteboard.cs +++ b/src/UIKit/UIPasteboard.cs @@ -1,14 +1,9 @@ #if IOS -using System; using System.Drawing; using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; using System.Diagnostics; using System.ComponentModel; -using ObjCRuntime; -using Foundation; - // Disable until we get around to enable + fix any issues. #nullable disable diff --git a/src/UIKit/UIPickerView.cs b/src/UIKit/UIPickerView.cs index 726c6386261e..c52aeba79ed6 100644 --- a/src/UIKit/UIPickerView.cs +++ b/src/UIKit/UIPickerView.cs @@ -1,10 +1,6 @@ #if IOS -using System; - -using Foundation; using CoreGraphics; -using ObjCRuntime; // Disable until we get around to enable + fix any issues. #nullable disable diff --git a/src/UIKit/UIPopoverController.cs b/src/UIKit/UIPopoverController.cs index 5d3baf6db444..8475227f1d8a 100644 --- a/src/UIKit/UIPopoverController.cs +++ b/src/UIKit/UIPopoverController.cs @@ -1,8 +1,5 @@ // Copyright 2012 Xamarin Inc. All rights reserved. -using System; -using ObjCRuntime; - // Disable until we get around to enable + fix any issues. #nullable disable diff --git a/src/UIKit/UIPopoverPresentationController.cs b/src/UIKit/UIPopoverPresentationController.cs index 0f823297e66e..1c766bb53235 100644 --- a/src/UIKit/UIPopoverPresentationController.cs +++ b/src/UIKit/UIPopoverPresentationController.cs @@ -2,9 +2,7 @@ #if IOS -using System; using CoreGraphics; -using ObjCRuntime; // Disable until we get around to enable + fix any issues. #nullable disable diff --git a/src/UIKit/UIPresentationController.cs b/src/UIKit/UIPresentationController.cs index e83f5cae3373..24f4f2844d16 100644 --- a/src/UIKit/UIPresentationController.cs +++ b/src/UIKit/UIPresentationController.cs @@ -1,8 +1,3 @@ -using System; -using System.Runtime.InteropServices; - -using Foundation; -using ObjCRuntime; #nullable enable diff --git a/src/UIKit/UIScreen.cs b/src/UIKit/UIScreen.cs index 6a4be578f954..0fbaa1f293cb 100644 --- a/src/UIKit/UIScreen.cs +++ b/src/UIKit/UIScreen.cs @@ -8,10 +8,7 @@ // Copyright 2014 Xamarin Inc. // -using System; using System.Collections; -using Foundation; -using ObjCRuntime; using CoreGraphics; // Disable until we get around to enable + fix any issues. diff --git a/src/UIKit/UIScrollView.cs b/src/UIKit/UIScrollView.cs index be287e9fec1a..d96d7e4091f7 100644 --- a/src/UIKit/UIScrollView.cs +++ b/src/UIKit/UIScrollView.cs @@ -7,8 +7,6 @@ // Copyright 2009, Novell, Inc. // -using System; - namespace UIKit { /// Provides data for the event. /// diff --git a/src/UIKit/UISearchBar.cs b/src/UIKit/UISearchBar.cs index fa46ea97f9fa..75bf7d418d70 100644 --- a/src/UIKit/UISearchBar.cs +++ b/src/UIKit/UISearchBar.cs @@ -7,8 +7,6 @@ // Miguel de Icaza // -using System; - using TextAttributes = UIKit.UIStringAttributes; namespace UIKit { diff --git a/src/UIKit/UISearchController.cs b/src/UIKit/UISearchController.cs index a7addcdd6ef5..f493f015694a 100644 --- a/src/UIKit/UISearchController.cs +++ b/src/UIKit/UISearchController.cs @@ -2,9 +2,6 @@ // UISearchController.cs: Simplify the UISearchController // -using System; -using Foundation; - namespace UIKit { public partial class UISearchController { diff --git a/src/UIKit/UISearchDisplayController.cs b/src/UIKit/UISearchDisplayController.cs index fc24d4af8b0e..b95a7ffcc301 100644 --- a/src/UIKit/UISearchDisplayController.cs +++ b/src/UIKit/UISearchDisplayController.cs @@ -1,10 +1,6 @@ #if !TVOS && !__MACCATALYST__ // __TVOS_PROHIBITED -using System; using System.Drawing; -using System.Runtime.InteropServices; using CoreFoundation; -using Foundation; -using ObjCRuntime; using CoreAnimation; using CoreLocation; using MapKit; diff --git a/src/UIKit/UISegmentedControl.cs b/src/UIKit/UISegmentedControl.cs index bb5c2e19cf14..45b937787d50 100644 --- a/src/UIKit/UISegmentedControl.cs +++ b/src/UIKit/UISegmentedControl.cs @@ -8,10 +8,7 @@ // Copyright 2011 Xamarin, Inc // -using System; using System.Collections; -using Foundation; -using ObjCRuntime; using CoreGraphics; using UIKit; diff --git a/src/UIKit/UIStringAttributes.cs b/src/UIKit/UIStringAttributes.cs index b77d3c7950c3..907ad6ac8f26 100644 --- a/src/UIKit/UIStringAttributes.cs +++ b/src/UIKit/UIStringAttributes.cs @@ -27,10 +27,6 @@ // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // -using System; - -using ObjCRuntime; -using Foundation; using CoreFoundation; using CoreGraphics; using CoreText; diff --git a/src/UIKit/UIStringDrawing.cs b/src/UIKit/UIStringDrawing.cs index d6184dfdc648..91ffba85565d 100644 --- a/src/UIKit/UIStringDrawing.cs +++ b/src/UIKit/UIStringDrawing.cs @@ -1,11 +1,7 @@ #if IOS -using System; - using UIKit; using CoreGraphics; -using Foundation; -using ObjCRuntime; namespace UIKit { public unsafe static partial class UIStringDrawing { diff --git a/src/UIKit/UITableView.cs b/src/UIKit/UITableView.cs index f636edc117a8..17ed922f9fde 100644 --- a/src/UIKit/UITableView.cs +++ b/src/UIKit/UITableView.cs @@ -1,8 +1,4 @@ -using System; -using System.Runtime.InteropServices; using CoreFoundation; -using Foundation; -using ObjCRuntime; using CoreAnimation; using CoreLocation; #if IOS diff --git a/src/UIKit/UITableViewCell.cs b/src/UIKit/UITableViewCell.cs index 121b168edb71..dd63c5b956b3 100644 --- a/src/UIKit/UITableViewCell.cs +++ b/src/UIKit/UITableViewCell.cs @@ -1,8 +1,4 @@ -using System; -using System.Runtime.InteropServices; using CoreFoundation; -using Foundation; -using ObjCRuntime; using UIKit; using CoreGraphics; diff --git a/src/UIKit/UITextAttributes.cs b/src/UIKit/UITextAttributes.cs index 0633c736844a..6dd1ad401706 100644 --- a/src/UIKit/UITextAttributes.cs +++ b/src/UIKit/UITextAttributes.cs @@ -8,9 +8,6 @@ #if IOS -using Foundation; -using ObjCRuntime; - // Disable until we get around to enable + fix any issues. #nullable disable diff --git a/src/UIKit/UITextField.cs b/src/UIKit/UITextField.cs index 00ba5e98f1bb..75aae75a19d8 100644 --- a/src/UIKit/UITextField.cs +++ b/src/UIKit/UITextField.cs @@ -9,10 +9,6 @@ #if !COREBUILD -using System; -using Foundation; -using ObjCRuntime; - #nullable enable namespace UIKit { diff --git a/src/UIKit/UIToolbar.cs b/src/UIKit/UIToolbar.cs index 7f4cee55fbe1..160d2a4a5271 100644 --- a/src/UIKit/UIToolbar.cs +++ b/src/UIKit/UIToolbar.cs @@ -2,10 +2,6 @@ #if IOS -using System; -using Foundation; -using ObjCRuntime; - // Disable until we get around to enable + fix any issues. #nullable disable diff --git a/src/UIKit/UITraitChangeObservable.cs b/src/UIKit/UITraitChangeObservable.cs index bf60ffd0c358..156e35ccc907 100644 --- a/src/UIKit/UITraitChangeObservable.cs +++ b/src/UIKit/UITraitChangeObservable.cs @@ -7,13 +7,7 @@ // Copyright 2023 Microsoft Corp. All rights reserved. // -using System; using System.ComponentModel; -using System.Runtime.InteropServices; -using System.Runtime.Versioning; - -using Foundation; -using ObjCRuntime; #nullable enable diff --git a/src/UIKit/UITraitCollection.cs b/src/UIKit/UITraitCollection.cs index 27b7fb1f5b43..611ff0b36b60 100644 --- a/src/UIKit/UITraitCollection.cs +++ b/src/UIKit/UITraitCollection.cs @@ -7,12 +7,8 @@ // Copyright 2016 Xamarin Inc. All rights reserved. // -using System; using System.ComponentModel; -using ObjCRuntime; -using Foundation; - // Disable until we get around to enable + fix any issues. #nullable disable diff --git a/src/UIKit/UITraitOverrides.cs b/src/UIKit/UITraitOverrides.cs index 608cb63d15c3..663cc1d82213 100644 --- a/src/UIKit/UITraitOverrides.cs +++ b/src/UIKit/UITraitOverrides.cs @@ -7,11 +7,6 @@ // Copyright 2023 Microsoft Corp. All rights reserved. // -using System; - -using Foundation; -using ObjCRuntime; - #nullable enable namespace UIKit { diff --git a/src/UIKit/UITypes.cs b/src/UIKit/UITypes.cs index 441cc7066e1d..31c0b0e2187a 100644 --- a/src/UIKit/UITypes.cs +++ b/src/UIKit/UITypes.cs @@ -8,11 +8,7 @@ // Copyright 2009, Novell, Inc. // Copyright 2011-2016 Xamarin Inc. // -using System; -using System.Runtime.InteropServices; -using ObjCRuntime; -using Foundation; using CoreGraphics; // Disable until we get around to enable + fix any issues. diff --git a/src/UIKit/UIVibrancyEffect.cs b/src/UIKit/UIVibrancyEffect.cs index 35017c899608..23e6dfdfa376 100644 --- a/src/UIKit/UIVibrancyEffect.cs +++ b/src/UIKit/UIVibrancyEffect.cs @@ -1,12 +1,8 @@ // Copyright 2014 Xamarin, Inc. #if IOS || TVOS -using System; -using System.Runtime.InteropServices; -using Foundation; #if HAS_NOTIFICATIONCENTER using NotificationCenter; #endif -using ObjCRuntime; // Disable until we get around to enable + fix any issues. #nullable disable diff --git a/src/UIKit/UIVideo.cs b/src/UIKit/UIVideo.cs index 3ca82248d88f..eca4d0d96212 100644 --- a/src/UIKit/UIVideo.cs +++ b/src/UIKit/UIVideo.cs @@ -10,11 +10,7 @@ #if IOS -using System; -using System.Runtime.InteropServices; using System.Collections; -using Foundation; -using ObjCRuntime; namespace UIKit { diff --git a/src/UIKit/UIView.cs b/src/UIKit/UIView.cs index 836b58094f05..7e5445a1ec81 100644 --- a/src/UIKit/UIView.cs +++ b/src/UIKit/UIView.cs @@ -8,12 +8,9 @@ // Copyrigh 2014, Xamarin Inc. // -using System; using System.Collections; using System.Runtime.CompilerServices; using System.Threading.Tasks; -using Foundation; -using ObjCRuntime; using CoreGraphics; #nullable enable diff --git a/src/UIKit/UIViewController.cs b/src/UIKit/UIViewController.cs index ceeaa2113e7d..ed4895d16a3f 100644 --- a/src/UIKit/UIViewController.cs +++ b/src/UIKit/UIViewController.cs @@ -8,11 +8,8 @@ // Copyright 2013 Xamarin Inc. (http://xamarin.com) // -using System; using System.Collections; using System.Collections.Generic; -using Foundation; -using ObjCRuntime; using CoreGraphics; #nullable enable diff --git a/src/UIKit/UIWindowScene.cs b/src/UIKit/UIWindowScene.cs index a76c4363238c..9c10e1513693 100644 --- a/src/UIKit/UIWindowScene.cs +++ b/src/UIKit/UIWindowScene.cs @@ -1,8 +1,3 @@ -using System; -using System.Runtime.InteropServices; - -using Foundation; -using ObjCRuntime; #nullable enable diff --git a/src/UserNotifications/UNNotificationAttachment.cs b/src/UserNotifications/UNNotificationAttachment.cs index ef49db2b515f..287871aee3bb 100644 --- a/src/UserNotifications/UNNotificationAttachment.cs +++ b/src/UserNotifications/UNNotificationAttachment.cs @@ -10,8 +10,6 @@ #nullable enable #if !TVOS -using System; -using Foundation; namespace UserNotifications { public partial class UNNotificationAttachment { diff --git a/src/VideoSubscriberAccount/VSAccountManager.cs b/src/VideoSubscriberAccount/VSAccountManager.cs index fd31fe28b0a5..2f3f1181437a 100644 --- a/src/VideoSubscriberAccount/VSAccountManager.cs +++ b/src/VideoSubscriberAccount/VSAccountManager.cs @@ -11,9 +11,7 @@ #if !MONOMAC && !__MACCATALYST__ -using System; using System.Threading.Tasks; -using Foundation; namespace VideoSubscriberAccount { public partial class VSAccountManager { diff --git a/src/VideoSubscriberAccount/VSAccountMetadataRequest.cs b/src/VideoSubscriberAccount/VSAccountMetadataRequest.cs index 20f9f479211e..c65d83d2cf43 100644 --- a/src/VideoSubscriberAccount/VSAccountMetadataRequest.cs +++ b/src/VideoSubscriberAccount/VSAccountMetadataRequest.cs @@ -1,9 +1,7 @@ #nullable enable #if !__MACCATALYST__ -using System; using System.Threading.Tasks; -using ObjCRuntime; namespace VideoSubscriberAccount { diff --git a/src/VideoSubscriberAccount/VSAccountProviderAuthenticationScheme.cs b/src/VideoSubscriberAccount/VSAccountProviderAuthenticationScheme.cs index 169eb98ed444..26ee7306d99b 100644 --- a/src/VideoSubscriberAccount/VSAccountProviderAuthenticationScheme.cs +++ b/src/VideoSubscriberAccount/VSAccountProviderAuthenticationScheme.cs @@ -1,9 +1,7 @@ #nullable enable #if !__MACCATALYST__ -using System; using System.Threading.Tasks; -using Foundation; namespace VideoSubscriberAccount { diff --git a/src/VideoToolbox/VTCompressionProperties.cs b/src/VideoToolbox/VTCompressionProperties.cs index e2697df7506c..828cb0ff00e1 100644 --- a/src/VideoToolbox/VTCompressionProperties.cs +++ b/src/VideoToolbox/VTCompressionProperties.cs @@ -8,13 +8,9 @@ #nullable enable -using System; -using System.Runtime.InteropServices; using System.Collections.Generic; using CoreFoundation; -using ObjCRuntime; -using Foundation; using CoreMedia; using CoreVideo; diff --git a/src/VideoToolbox/VTCompressionSession.cs b/src/VideoToolbox/VTCompressionSession.cs index 83138575759f..4a40ba905b4f 100644 --- a/src/VideoToolbox/VTCompressionSession.cs +++ b/src/VideoToolbox/VTCompressionSession.cs @@ -7,14 +7,10 @@ // // Copyright 2014 Xamarin Inc. // -using System; + using System.ComponentModel; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; using CoreFoundation; -using ObjCRuntime; -using Foundation; using CoreMedia; using CoreVideo; diff --git a/src/VideoToolbox/VTDataRateLimit.cs b/src/VideoToolbox/VTDataRateLimit.cs index 21003a13a158..497d1ac3d39a 100644 --- a/src/VideoToolbox/VTDataRateLimit.cs +++ b/src/VideoToolbox/VTDataRateLimit.cs @@ -10,11 +10,6 @@ #nullable enable -using System; -using Foundation; -using ObjCRuntime; -using System.Runtime.Versioning; - namespace VideoToolbox { /// Strongly typed representation of bytes and seconds used in . /// To be added. diff --git a/src/VideoToolbox/VTDecompressionProperties.cs b/src/VideoToolbox/VTDecompressionProperties.cs index 0ba94680e70b..322440db9ac1 100644 --- a/src/VideoToolbox/VTDecompressionProperties.cs +++ b/src/VideoToolbox/VTDecompressionProperties.cs @@ -8,13 +8,9 @@ #nullable enable -using System; -using System.Runtime.InteropServices; using System.Collections.Generic; using CoreFoundation; -using ObjCRuntime; -using Foundation; using CoreMedia; using CoreVideo; diff --git a/src/VideoToolbox/VTDecompressionSession.cs b/src/VideoToolbox/VTDecompressionSession.cs index 00245b9fe3f4..59d6da57412b 100644 --- a/src/VideoToolbox/VTDecompressionSession.cs +++ b/src/VideoToolbox/VTDecompressionSession.cs @@ -9,13 +9,9 @@ #nullable enable -using System; using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; using CoreFoundation; -using ObjCRuntime; -using Foundation; using CoreMedia; using CoreVideo; diff --git a/src/VideoToolbox/VTDefs.cs b/src/VideoToolbox/VTDefs.cs index dd35fc3d5b06..bb8b78b26df4 100644 --- a/src/VideoToolbox/VTDefs.cs +++ b/src/VideoToolbox/VTDefs.cs @@ -8,10 +8,6 @@ // Copyright 2014 Xamarin Inc // -using System; -using Foundation; -using ObjCRuntime; - namespace VideoToolbox { // untyped enum -> VTErrors.h diff --git a/src/VideoToolbox/VTFrameSilo.cs b/src/VideoToolbox/VTFrameSilo.cs index b6225797d3e4..6a62cea8b1c5 100644 --- a/src/VideoToolbox/VTFrameSilo.cs +++ b/src/VideoToolbox/VTFrameSilo.cs @@ -9,13 +9,9 @@ #nullable enable -using System; using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; using CoreFoundation; -using ObjCRuntime; -using Foundation; using CoreMedia; namespace VideoToolbox { diff --git a/src/VideoToolbox/VTHdrPerFrameMetadataGenerationSession.cs b/src/VideoToolbox/VTHdrPerFrameMetadataGenerationSession.cs index fb4a070b185d..451faaff9171 100644 --- a/src/VideoToolbox/VTHdrPerFrameMetadataGenerationSession.cs +++ b/src/VideoToolbox/VTHdrPerFrameMetadataGenerationSession.cs @@ -1,12 +1,7 @@ #nullable enable -using System; -using System.Runtime.InteropServices; - using CoreFoundation; using CoreVideo; -using Foundation; -using ObjCRuntime; namespace VideoToolbox { /// This class can be used to perform HDR Per Frame Metadata Generation. diff --git a/src/VideoToolbox/VTMultiPassStorage.cs b/src/VideoToolbox/VTMultiPassStorage.cs index 885d3274c94f..a1c3d27d6caa 100644 --- a/src/VideoToolbox/VTMultiPassStorage.cs +++ b/src/VideoToolbox/VTMultiPassStorage.cs @@ -9,12 +9,7 @@ #nullable enable -using System; -using System.Runtime.InteropServices; - using CoreFoundation; -using ObjCRuntime; -using Foundation; using CoreMedia; namespace VideoToolbox { diff --git a/src/VideoToolbox/VTPixelRotationProperties.cs b/src/VideoToolbox/VTPixelRotationProperties.cs index 7e928bd5237a..d9d53d650a32 100644 --- a/src/VideoToolbox/VTPixelRotationProperties.cs +++ b/src/VideoToolbox/VTPixelRotationProperties.cs @@ -8,13 +8,9 @@ #nullable enable -using System; -using System.Runtime.InteropServices; using System.Collections.Generic; using CoreFoundation; -using ObjCRuntime; -using Foundation; using CoreMedia; using CoreVideo; using AVFoundation; diff --git a/src/VideoToolbox/VTPixelRotationSession.cs b/src/VideoToolbox/VTPixelRotationSession.cs index db929f56f919..a98956dd5da0 100644 --- a/src/VideoToolbox/VTPixelRotationSession.cs +++ b/src/VideoToolbox/VTPixelRotationSession.cs @@ -9,12 +9,7 @@ #nullable enable -using System; -using System.Runtime.InteropServices; - using CoreFoundation; -using ObjCRuntime; -using Foundation; using CoreMedia; using CoreVideo; diff --git a/src/VideoToolbox/VTPixelTransferProperties.cs b/src/VideoToolbox/VTPixelTransferProperties.cs index 3a1ae1efdc62..bfc6b86a7389 100644 --- a/src/VideoToolbox/VTPixelTransferProperties.cs +++ b/src/VideoToolbox/VTPixelTransferProperties.cs @@ -8,13 +8,9 @@ #nullable enable -using System; -using System.Runtime.InteropServices; using System.Collections.Generic; using CoreFoundation; -using ObjCRuntime; -using Foundation; using CoreMedia; using CoreVideo; using AVFoundation; diff --git a/src/VideoToolbox/VTPixelTransferSession.cs b/src/VideoToolbox/VTPixelTransferSession.cs index 7a960fe3234c..f874e3ed3182 100644 --- a/src/VideoToolbox/VTPixelTransferSession.cs +++ b/src/VideoToolbox/VTPixelTransferSession.cs @@ -9,12 +9,7 @@ #nullable enable -using System; -using System.Runtime.InteropServices; - using CoreFoundation; -using ObjCRuntime; -using Foundation; using CoreMedia; using CoreVideo; diff --git a/src/VideoToolbox/VTProfessionalVideoWorkflow.cs b/src/VideoToolbox/VTProfessionalVideoWorkflow.cs index 8d4fc59b4faa..b0a6b33b13aa 100644 --- a/src/VideoToolbox/VTProfessionalVideoWorkflow.cs +++ b/src/VideoToolbox/VTProfessionalVideoWorkflow.cs @@ -11,12 +11,6 @@ #nullable enable -using System; -using System.Runtime.InteropServices; - -using ObjCRuntime; -using Foundation; - namespace VideoToolbox { [SupportedOSPlatform ("macos")] diff --git a/src/VideoToolbox/VTPropertyOptions.cs b/src/VideoToolbox/VTPropertyOptions.cs index a272b834ed90..aa6f5b333a60 100644 --- a/src/VideoToolbox/VTPropertyOptions.cs +++ b/src/VideoToolbox/VTPropertyOptions.cs @@ -8,13 +8,9 @@ #nullable enable -using System; -using System.Runtime.InteropServices; using System.Collections.Generic; using CoreFoundation; -using ObjCRuntime; -using Foundation; using CoreMedia; using CoreVideo; diff --git a/src/VideoToolbox/VTRawProcessingSession.cs b/src/VideoToolbox/VTRawProcessingSession.cs index f1fc5c743635..3cc095d2b929 100644 --- a/src/VideoToolbox/VTRawProcessingSession.cs +++ b/src/VideoToolbox/VTRawProcessingSession.cs @@ -1,16 +1,12 @@ #if MONOMAC #nullable enable -using System; -using System.Runtime.InteropServices; using System.Collections.Generic; using AVFoundation; using CoreFoundation; using CoreMedia; using CoreVideo; -using Foundation; -using ObjCRuntime; namespace VideoToolbox { /// This delegate is called when available parameters or parameter values change without an explicit call to . diff --git a/src/VideoToolbox/VTSession.cs b/src/VideoToolbox/VTSession.cs index 70fc1d7bb9b7..f02e51abe888 100644 --- a/src/VideoToolbox/VTSession.cs +++ b/src/VideoToolbox/VTSession.cs @@ -8,13 +8,9 @@ #nullable enable -using System; using System.ComponentModel; -using System.Runtime.InteropServices; using CoreFoundation; -using ObjCRuntime; -using Foundation; using CoreMedia; using CoreVideo; diff --git a/src/VideoToolbox/VTUtilities.cs b/src/VideoToolbox/VTUtilities.cs index 3d3fb03fd8d7..359610f84395 100644 --- a/src/VideoToolbox/VTUtilities.cs +++ b/src/VideoToolbox/VTUtilities.cs @@ -7,14 +7,9 @@ // Copyright 2015 Xamarin Inc. All rights reserved. // -using System; -using System.Runtime.InteropServices; - -using ObjCRuntime; using CoreGraphics; using CoreMedia; using CoreVideo; -using Foundation; #nullable enable diff --git a/src/VideoToolbox/VTVideoEncoder.cs b/src/VideoToolbox/VTVideoEncoder.cs index 8ecf10b5540e..c3959638dfe9 100644 --- a/src/VideoToolbox/VTVideoEncoder.cs +++ b/src/VideoToolbox/VTVideoEncoder.cs @@ -7,12 +7,7 @@ #nullable enable -using System; -using System.Runtime.InteropServices; - using CoreFoundation; -using ObjCRuntime; -using Foundation; using CoreMedia; namespace VideoToolbox { diff --git a/src/Vision/VNBarcodeSymbologyExtensions.cs b/src/Vision/VNBarcodeSymbologyExtensions.cs index 9d094dd074e8..24ad0f6f13dd 100644 --- a/src/Vision/VNBarcodeSymbologyExtensions.cs +++ b/src/Vision/VNBarcodeSymbologyExtensions.cs @@ -9,9 +9,6 @@ #nullable enable -using System; -using Foundation; - namespace Vision { public static partial class VNBarcodeSymbologyExtensions { /// The instance on which this method operates. diff --git a/src/Vision/VNCircle.cs b/src/Vision/VNCircle.cs index 55ab183eddb2..d41941a2f3dc 100644 --- a/src/Vision/VNCircle.cs +++ b/src/Vision/VNCircle.cs @@ -9,10 +9,6 @@ #nullable enable -using System; -using Foundation; -using ObjCRuntime; - namespace Vision { /// This enum is used to select how to initialize a new instance of a . public enum VNCircleInitializationOption { diff --git a/src/Vision/VNDetectBarcodesRequest.cs b/src/Vision/VNDetectBarcodesRequest.cs index 4235da403ebb..0533cd7d4bcd 100644 --- a/src/Vision/VNDetectBarcodesRequest.cs +++ b/src/Vision/VNDetectBarcodesRequest.cs @@ -9,8 +9,6 @@ #nullable enable -using System; - namespace Vision { public partial class VNDetectBarcodesRequest { diff --git a/src/Vision/VNFaceLandmarkRegion2D.cs b/src/Vision/VNFaceLandmarkRegion2D.cs index 676433e7071e..a93d60046d7c 100644 --- a/src/Vision/VNFaceLandmarkRegion2D.cs +++ b/src/Vision/VNFaceLandmarkRegion2D.cs @@ -9,7 +9,6 @@ #nullable enable -using System; using CoreGraphics; namespace Vision { diff --git a/src/Vision/VNFeaturePrintObservation.cs b/src/Vision/VNFeaturePrintObservation.cs index d51cc65d8614..dc635abda28a 100644 --- a/src/Vision/VNFeaturePrintObservation.cs +++ b/src/Vision/VNFeaturePrintObservation.cs @@ -9,10 +9,6 @@ #nullable enable -using System; -using Foundation; -using ObjCRuntime; - namespace Vision { public partial class VNFeaturePrintObservation { diff --git a/src/Vision/VNRecognizedPointsObservation.cs b/src/Vision/VNRecognizedPointsObservation.cs index 384f263f5a7a..7d9ebda975b6 100644 --- a/src/Vision/VNRecognizedPointsObservation.cs +++ b/src/Vision/VNRecognizedPointsObservation.cs @@ -9,10 +9,6 @@ #nullable enable -using System; -using Foundation; -using ObjCRuntime; - namespace Vision { public partial class VNRecognizedPointsObservation { diff --git a/src/Vision/VNRequest.cs b/src/Vision/VNRequest.cs index 4a06bb059d5e..83b2893a7870 100644 --- a/src/Vision/VNRequest.cs +++ b/src/Vision/VNRequest.cs @@ -9,10 +9,6 @@ #nullable enable -using System; -using Foundation; -using ObjCRuntime; - namespace Vision { public partial class VNRequest { diff --git a/src/Vision/VNRequestRevision.cs b/src/Vision/VNRequestRevision.cs index 0204fb452424..144d8f0c7d76 100644 --- a/src/Vision/VNRequestRevision.cs +++ b/src/Vision/VNRequestRevision.cs @@ -9,10 +9,6 @@ #nullable enable -using System; -using Foundation; -using ObjCRuntime; - namespace Vision { public partial class VNRequest { diff --git a/src/Vision/VNUtils.cs b/src/Vision/VNUtils.cs index 4190de5d04f4..ab22816444f8 100644 --- a/src/Vision/VNUtils.cs +++ b/src/Vision/VNUtils.cs @@ -9,12 +9,8 @@ #nullable enable -using System; using System.Numerics; -using System.Runtime.InteropServices; using CoreGraphics; -using ObjCRuntime; -using Foundation; namespace Vision { /// A set of utility functions for working with images. diff --git a/src/Vision/VNVector.cs b/src/Vision/VNVector.cs index 0851d9fc8388..b3fd94ca60e3 100644 --- a/src/Vision/VNVector.cs +++ b/src/Vision/VNVector.cs @@ -9,10 +9,6 @@ #nullable enable -using System; -using Foundation; -using ObjCRuntime; - namespace Vision { public partial class VNVector { /// Create a new instance using polar coordinates. diff --git a/src/WatchConnectivity/WCEnums.cs b/src/WatchConnectivity/WCEnums.cs index fbfad2dcedbc..c51b2c2f4600 100644 --- a/src/WatchConnectivity/WCEnums.cs +++ b/src/WatchConnectivity/WCEnums.cs @@ -7,10 +7,6 @@ // Copyright 2015 Xamarin Inc. All rights reserved. // -using System; -using ObjCRuntime; -using Foundation; - namespace WatchConnectivity { // NSInteger -> WCError.h diff --git a/src/WebKit/Defs.cs b/src/WebKit/Defs.cs index b9d487f069c8..bc8b009b6a89 100644 --- a/src/WebKit/Defs.cs +++ b/src/WebKit/Defs.cs @@ -7,10 +7,6 @@ // Copyright 2014, 2016 Xamarin Inc. All rights reserved. // -using System; - -using ObjCRuntime; - #nullable enable namespace WebKit { diff --git a/src/WebKit/DomHelpers.cs b/src/WebKit/DomHelpers.cs index 792e086a0ee3..74ff67abbd8b 100644 --- a/src/WebKit/DomHelpers.cs +++ b/src/WebKit/DomHelpers.cs @@ -2,10 +2,6 @@ #nullable enable -using System; -using ObjCRuntime; -using Foundation; - namespace WebKit { public partial class DomHtmlSelectElement { public DomNode this [string name] { get { return this.NamedItem (name); } } diff --git a/src/WebKit/DomNode.cs b/src/WebKit/DomNode.cs index 4d412f8aa63f..def477a960e9 100644 --- a/src/WebKit/DomNode.cs +++ b/src/WebKit/DomNode.cs @@ -25,9 +25,6 @@ #nullable enable -using System; -using System.Runtime.Versioning; - namespace WebKit { /// To be added. /// To be added. diff --git a/src/WebKit/Enumerators.cs b/src/WebKit/Enumerators.cs index 0083f745d3f9..a217afa6ec94 100644 --- a/src/WebKit/Enumerators.cs +++ b/src/WebKit/Enumerators.cs @@ -2,12 +2,9 @@ #nullable enable -using System; using System.Collections; using System.Collections.Generic; using CoreFoundation; -using Foundation; -using ObjCRuntime; namespace WebKit { diff --git a/src/WebKit/Enums.cs b/src/WebKit/Enums.cs index 9a3527d6426e..50f2afb7d2b7 100644 --- a/src/WebKit/Enums.cs +++ b/src/WebKit/Enums.cs @@ -1,6 +1,3 @@ -using System; - -using ObjCRuntime; namespace WebKit { diff --git a/src/WebKit/WKContentRuleList.cs b/src/WebKit/WKContentRuleList.cs index d7699bb3e08a..534b79a3a518 100644 --- a/src/WebKit/WKContentRuleList.cs +++ b/src/WebKit/WKContentRuleList.cs @@ -1,8 +1,5 @@ -using System; using System.ComponentModel; -using Foundation; - #nullable enable namespace WebKit { diff --git a/src/WebKit/WKContentRuleListStore.cs b/src/WebKit/WKContentRuleListStore.cs index 930d8052ef6f..7cc648554ef0 100644 --- a/src/WebKit/WKContentRuleListStore.cs +++ b/src/WebKit/WKContentRuleListStore.cs @@ -1,8 +1,5 @@ -using System; using System.ComponentModel; -using Foundation; - #nullable enable namespace WebKit { diff --git a/src/WebKit/WKPreferences.cs b/src/WebKit/WKPreferences.cs index da1812020656..72c1ac708b36 100644 --- a/src/WebKit/WKPreferences.cs +++ b/src/WebKit/WKPreferences.cs @@ -1,8 +1,4 @@ #if !TVOS -using System; - -using Foundation; -using ObjCRuntime; #nullable enable diff --git a/src/WebKit/WKWebExtensionMatchPattern.cs b/src/WebKit/WKWebExtensionMatchPattern.cs index 18bb698eaa83..92626ca2f615 100644 --- a/src/WebKit/WKWebExtensionMatchPattern.cs +++ b/src/WebKit/WKWebExtensionMatchPattern.cs @@ -1,8 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -using Foundation; - namespace WebKit { public partial class WKWebExtensionMatchPattern { /// Create a new for the specified pattern. diff --git a/src/WebKit/WKWindowFeatures.cs b/src/WebKit/WKWindowFeatures.cs index bfbb9dcfb112..6aa636c3914a 100644 --- a/src/WebKit/WKWindowFeatures.cs +++ b/src/WebKit/WKWindowFeatures.cs @@ -7,11 +7,6 @@ // Copyright 2014 Xamarin Inc. All rights reserved. // -using System; - -using Foundation; -using ObjCRuntime; - #nullable enable namespace WebKit { diff --git a/src/WebKit/WebKit.cs b/src/WebKit/WebKit.cs index 6b45ce8a6c63..3328a5ecdbf6 100644 --- a/src/WebKit/WebKit.cs +++ b/src/WebKit/WebKit.cs @@ -2,8 +2,6 @@ #nullable enable -using Foundation; - namespace WebKit { public partial class WebFrame { diff --git a/src/WebKit/WebNavigationPolicyEventArgs.cs b/src/WebKit/WebNavigationPolicyEventArgs.cs index c14bfde3d632..24d4f6bb114c 100644 --- a/src/WebKit/WebNavigationPolicyEventArgs.cs +++ b/src/WebKit/WebNavigationPolicyEventArgs.cs @@ -10,10 +10,6 @@ #nullable enable -using System; - -using Foundation; - namespace WebKit { // Convenience enum. diff --git a/src/WebKit/WebPolicyDelegate.cs b/src/WebKit/WebPolicyDelegate.cs index aedc8fc115ff..989bf2e95312 100644 --- a/src/WebKit/WebPolicyDelegate.cs +++ b/src/WebKit/WebPolicyDelegate.cs @@ -25,10 +25,6 @@ #nullable enable -using System; -using Foundation; -using ObjCRuntime; - namespace WebKit { /// To be added. diff --git a/src/WebKit/WebView.cs b/src/WebKit/WebView.cs index 5b2f61466c56..d92450bb35a0 100644 --- a/src/WebKit/WebView.cs +++ b/src/WebKit/WebView.cs @@ -25,10 +25,6 @@ #nullable enable -using System; -using Foundation; -using ObjCRuntime; - namespace WebKit { public partial class WebView { diff --git a/src/XKit/Types.cs b/src/XKit/Types.cs index 615dd66b121c..4f456b50e146 100644 --- a/src/XKit/Types.cs +++ b/src/XKit/Types.cs @@ -23,11 +23,6 @@ #nullable enable -using System; -using System.Runtime.InteropServices; - -using ObjCRuntime; -using Foundation; using CoreGraphics; #if MONOMAC diff --git a/src/accessibility.cs b/src/accessibility.cs index 7f14ed3f0740..1d9e554f8342 100644 --- a/src/accessibility.cs +++ b/src/accessibility.cs @@ -1,7 +1,4 @@ -using System; using CoreGraphics; -using Foundation; -using ObjCRuntime; #nullable enable diff --git a/src/accessorysetupkit.cs b/src/accessorysetupkit.cs index 3fd8e7e71b22..ff7579f0347f 100644 --- a/src/accessorysetupkit.cs +++ b/src/accessorysetupkit.cs @@ -1,9 +1,6 @@ -using System; using CoreBluetooth; using CoreFoundation; -using Foundation; -using ObjCRuntime; using UIKit; using ASAccessoryWiFiAwarePairedDeviceId = System.UInt64; diff --git a/src/accounts.cs b/src/accounts.cs index 98ac7bdf3b87..da1e1beaf7c2 100644 --- a/src/accounts.cs +++ b/src/accounts.cs @@ -4,10 +4,6 @@ #nullable enable -using System; -using ObjCRuntime; -using Foundation; - namespace Accounts { /// diff --git a/src/addressbookui.cs b/src/addressbookui.cs index c7bb9d72a9e9..a6e2562f34c3 100644 --- a/src/addressbookui.cs +++ b/src/addressbookui.cs @@ -8,13 +8,10 @@ // Copyright 2009, Novell, Inc. // Copyright 2014-2015, Xamarin Inc. // -using ObjCRuntime; -using Foundation; using CoreGraphics; using CoreLocation; using UIKit; using AddressBook; -using System; namespace AddressBookUI { diff --git a/src/adservices.cs b/src/adservices.cs index fafe783aeb5c..b182894eda53 100644 --- a/src/adservices.cs +++ b/src/adservices.cs @@ -1,6 +1,3 @@ -using ObjCRuntime; -using Foundation; -using System; namespace AdServices { diff --git a/src/adsupport.cs b/src/adsupport.cs index 00f8fff76c00..aee5d33d8982 100644 --- a/src/adsupport.cs +++ b/src/adsupport.cs @@ -7,10 +7,6 @@ // Copyright 2012 Xamarin Inc. All rights reserved. // -using ObjCRuntime; -using Foundation; -using System; - namespace AdSupport { /// Provides a device identifier, only to be used for serving advertisements. diff --git a/src/appclip.cs b/src/appclip.cs index 9be07bf8fdc9..85f34f90cbf4 100644 --- a/src/appclip.cs +++ b/src/appclip.cs @@ -1,10 +1,7 @@ #nullable enable -using System; using System.ComponentModel; using CoreLocation; -using ObjCRuntime; -using Foundation; namespace AppClip { diff --git a/src/appkit.cs b/src/appkit.cs index 279d3b0601a3..17236aa6351f 100644 --- a/src/appkit.cs +++ b/src/appkit.cs @@ -31,12 +31,9 @@ #nullable enable -using System; using System.Collections.Generic; using System.Diagnostics; using System.ComponentModel; -using Foundation; -using ObjCRuntime; using CoreGraphics; using CoreFoundation; using CoreImage; diff --git a/src/apptrackingtransparency.cs b/src/apptrackingtransparency.cs index 42e62ff917f0..002069adbd34 100644 --- a/src/apptrackingtransparency.cs +++ b/src/apptrackingtransparency.cs @@ -5,10 +5,6 @@ // Dorothy Tam (dottam@gmail.com) // -using System; -using Foundation; -using ObjCRuntime; - namespace AppTrackingTransparency { [iOS (14, 0), TV (14, 0)] diff --git a/src/arkit.cs b/src/arkit.cs index 6d09f210a6df..9cd07608967d 100644 --- a/src/arkit.cs +++ b/src/arkit.cs @@ -9,7 +9,6 @@ #nullable enable -using System; using System.ComponentModel; using System.Numerics; @@ -19,8 +18,6 @@ using CoreMedia; using CoreLocation; using CoreVideo; -using Foundation; -using ObjCRuntime; using ImageIO; using Metal; using QuickLook; diff --git a/src/audiounit.cs b/src/audiounit.cs index 11de15be5279..c2ada8ae64bb 100644 --- a/src/audiounit.cs +++ b/src/audiounit.cs @@ -6,14 +6,10 @@ // // -using System; using System.ComponentModel; -using System.Runtime.InteropServices; using AudioUnit; using CoreFoundation; -using Foundation; -using ObjCRuntime; using CoreAnimation; using CoreGraphics; #if IOS || MONOMAC diff --git a/src/authenticationservices.cs b/src/authenticationservices.cs index dac8cdb9e65b..35524721ec09 100644 --- a/src/authenticationservices.cs +++ b/src/authenticationservices.cs @@ -4,9 +4,6 @@ // Copyright 2018-2019 Microsoft Corporation // -using System; -using Foundation; -using ObjCRuntime; using Security; #if MONOMAC using AppKit; diff --git a/src/automaticassessmentconfiguration.cs b/src/automaticassessmentconfiguration.cs index d2392f1de6f6..06436065bbf2 100644 --- a/src/automaticassessmentconfiguration.cs +++ b/src/automaticassessmentconfiguration.cs @@ -8,10 +8,6 @@ // Copyright (c) Microsoft Corporation. // -using System; -using Foundation; -using ObjCRuntime; - namespace AutomaticAssessmentConfiguration { [ErrorDomain ("AEAssessmentErrorDomain")] diff --git a/src/avfoundation.cs b/src/avfoundation.cs index 494457bcfece..2345b7235716 100644 --- a/src/avfoundation.cs +++ b/src/avfoundation.cs @@ -47,15 +47,12 @@ using AudioToolbox; using Cinematic; using CoreMedia; -using ObjCRuntime; -using Foundation; using CoreFoundation; using CoreGraphics; using CoreVideo; using UniformTypeIdentifiers; using ImageIO; using MediaPlayer; -using System; #if MONOMAC using AppKit; diff --git a/src/avkit.cs b/src/avkit.cs index 80e4f408b46f..aad76f794dd1 100644 --- a/src/avkit.cs +++ b/src/avkit.cs @@ -2,9 +2,6 @@ // avkit.cs: Definitions for AVKit.cs // // Copyright 2014-2015 Xamarin Inc -using System; -using Foundation; -using ObjCRuntime; using CoreGraphics; using CoreImage; using CoreMedia; diff --git a/src/avrouting.cs b/src/avrouting.cs index 095d8fc6ccae..1db9723396c2 100644 --- a/src/avrouting.cs +++ b/src/avrouting.cs @@ -7,9 +7,6 @@ // Copyright 2022 Microsoft Corp. All rights reserved. // -using System; -using ObjCRuntime; -using Foundation; using UniformTypeIdentifiers; using AVKit; diff --git a/src/backgroundassets.cs b/src/backgroundassets.cs index 8cb4d74ed011..53a399408c15 100644 --- a/src/backgroundassets.cs +++ b/src/backgroundassets.cs @@ -7,11 +7,7 @@ // Copyright 2022 Microsoft Corporation All rights reserved. // -using System; - using CoreFoundation; -using Foundation; -using ObjCRuntime; namespace BackgroundAssets { [TV (18, 4), Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0)] diff --git a/src/backgroundtasks.cs b/src/backgroundtasks.cs index 672fe8b54970..dcba5b0c65c6 100644 --- a/src/backgroundtasks.cs +++ b/src/backgroundtasks.cs @@ -6,11 +6,8 @@ // // Copyright 2019 Microsoft Corporation All rights reserved. // -using System; using CoreFoundation; -using Foundation; -using ObjCRuntime; namespace BackgroundTasks { diff --git a/src/bgen/AttributeConversionManager.cs b/src/bgen/AttributeConversionManager.cs index e119a030487e..1e2cf6ec5a6c 100644 --- a/src/bgen/AttributeConversionManager.cs +++ b/src/bgen/AttributeConversionManager.cs @@ -1,8 +1,6 @@ -using System; using System.Collections.Generic; using System.Linq; using System.Reflection; -using ObjCRuntime; #nullable enable diff --git a/src/bgen/AttributeFactory.ConstructorArguments.cs b/src/bgen/AttributeFactory.ConstructorArguments.cs index c8a958be2382..3d149fe181b2 100644 --- a/src/bgen/AttributeFactory.ConstructorArguments.cs +++ b/src/bgen/AttributeFactory.ConstructorArguments.cs @@ -1,6 +1,4 @@ -using System; using System.Diagnostics.CodeAnalysis; -using ObjCRuntime; #nullable enable diff --git a/src/bgen/AttributeFactory.cs b/src/bgen/AttributeFactory.cs index 07ebfe715603..fe9dd2551e59 100644 --- a/src/bgen/AttributeFactory.cs +++ b/src/bgen/AttributeFactory.cs @@ -1,7 +1,5 @@ -using System; using System.Collections.Generic; using System.Linq; -using ObjCRuntime; #nullable enable diff --git a/src/bgen/AttributeManager.cs b/src/bgen/AttributeManager.cs index 4d9aaeb4d4e6..32a9261df96e 100644 --- a/src/bgen/AttributeManager.cs +++ b/src/bgen/AttributeManager.cs @@ -1,4 +1,3 @@ -using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; @@ -266,7 +265,6 @@ Type ConvertTypeToMeta (System.Type type) return rv; } - static IEnumerable ConvertOldAttributes (CustomAttributeData attribute) { switch (attribute.GetAttributeType ().Namespace) { diff --git a/src/bgen/Attributes.cs b/src/bgen/Attributes.cs index 7181cd11857b..339f562c36f1 100644 --- a/src/bgen/Attributes.cs +++ b/src/bgen/Attributes.cs @@ -1,4 +1,3 @@ -using System; using System.ComponentModel; using System.Reflection; using System.Text; diff --git a/src/bgen/BindingTouch.cs b/src/bgen/BindingTouch.cs index a7c9267e63cd..58befc2015e0 100644 --- a/src/bgen/BindingTouch.cs +++ b/src/bgen/BindingTouch.cs @@ -27,7 +27,6 @@ #nullable enable -using System; using System.IO; using System.Linq; using System.Collections.Generic; @@ -35,9 +34,6 @@ using System.Reflection; using Mono.Options; -using ObjCRuntime; -using Foundation; - using Xamarin.Bundler; using Xamarin.Utils; diff --git a/src/bgen/DocumentationManager.cs b/src/bgen/DocumentationManager.cs index 7040ac998915..8b8a29851b37 100644 --- a/src/bgen/DocumentationManager.cs +++ b/src/bgen/DocumentationManager.cs @@ -1,4 +1,3 @@ -using System; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.IO; @@ -137,7 +136,6 @@ static string GetDocId (PropertyInfo pd) return name; } - static bool TryGetId (MemberInfo member, [NotNullWhen (true)] out string? name) { name = null; diff --git a/src/bgen/DotNetGlobals.cs b/src/bgen/DotNetGlobals.cs new file mode 100644 index 000000000000..2c2fd06e5e47 --- /dev/null +++ b/src/bgen/DotNetGlobals.cs @@ -0,0 +1,10 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +global using System; +global using System.Runtime.InteropServices; + +#if !BINDING_ATTRIBUTES_DLL +global using Foundation; +global using ObjCRuntime; +#endif diff --git a/src/bgen/Enums.cs b/src/bgen/Enums.cs index 73c858d159b4..daa714c7cb77 100644 --- a/src/bgen/Enums.cs +++ b/src/bgen/Enums.cs @@ -1,13 +1,10 @@ // Copyright 2015 Xamarin Inc. All rights reserved. -using System; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Linq; using System.Reflection; using System.Text; -using Foundation; -using ObjCRuntime; // Disable until we get around to enable + fix any issues. #nullable disable diff --git a/src/bgen/Filters.cs b/src/bgen/Filters.cs index 4e4a2edb1b93..4b31ee852b62 100644 --- a/src/bgen/Filters.cs +++ b/src/bgen/Filters.cs @@ -1,10 +1,7 @@ // Copyright 2015 Xamarin Inc. All rights reserved. // Copyright Microsoft Corp. -using System; using System.Collections.Generic; using System.Reflection; -using Foundation; -using ObjCRuntime; #nullable enable diff --git a/src/bgen/Frameworks.cs b/src/bgen/Frameworks.cs index 4fba81fb8bb8..1afd26815ce0 100644 --- a/src/bgen/Frameworks.cs +++ b/src/bgen/Frameworks.cs @@ -1,5 +1,4 @@ using System.Collections.Generic; -using ObjCRuntime; #nullable enable diff --git a/src/bgen/GeneratedType.cs b/src/bgen/GeneratedType.cs index eae5c6e67b09..174aa467be90 100644 --- a/src/bgen/GeneratedType.cs +++ b/src/bgen/GeneratedType.cs @@ -1,4 +1,3 @@ -using System; using System.Collections.Generic; using System.Reflection; diff --git a/src/bgen/GeneratedTypes.cs b/src/bgen/GeneratedTypes.cs index 21558138dd48..38be308e1b87 100644 --- a/src/bgen/GeneratedTypes.cs +++ b/src/bgen/GeneratedTypes.cs @@ -1,4 +1,3 @@ -using System; using System.Collections.Generic; #nullable enable diff --git a/src/bgen/Generator.PrintAttributes.cs b/src/bgen/Generator.PrintAttributes.cs index c8d57ffb1d46..588cd8da43e0 100644 --- a/src/bgen/Generator.PrintAttributes.cs +++ b/src/bgen/Generator.PrintAttributes.cs @@ -1,7 +1,6 @@ using System.Collections.Generic; using System.Linq; using System.Reflection; -using ObjCRuntime; #nullable enable diff --git a/src/bgen/Generator.cs b/src/bgen/Generator.cs index 3039d3636ed2..fab82debf331 100644 --- a/src/bgen/Generator.cs +++ b/src/bgen/Generator.cs @@ -39,7 +39,6 @@ // Typically this is necessary for things like NSError. // -using System; using System.Linq; using System.Collections; using System.Collections.Generic; @@ -53,8 +52,6 @@ using System.Xml; using ObjCBindings; -using ObjCRuntime; -using Foundation; using Xamarin.Utils; // Disable until we get around to enable + fix any issues. diff --git a/src/bgen/IMemberGatherer.cs b/src/bgen/IMemberGatherer.cs index 8da8afcf295d..fd0da945ad0d 100644 --- a/src/bgen/IMemberGatherer.cs +++ b/src/bgen/IMemberGatherer.cs @@ -1,4 +1,3 @@ -using System; using System.Collections.Generic; using System.Reflection; diff --git a/src/bgen/LibraryManager.cs b/src/bgen/LibraryManager.cs index 92d4012c8c45..4135946e04cc 100644 --- a/src/bgen/LibraryManager.cs +++ b/src/bgen/LibraryManager.cs @@ -1,5 +1,4 @@ using System.Collections.Generic; -using ObjCRuntime; using Xamarin.Utils; #nullable enable diff --git a/src/bgen/Nomenclator.cs b/src/bgen/Nomenclator.cs index 21bc6fb86dda..24c4db2fde9f 100644 --- a/src/bgen/Nomenclator.cs +++ b/src/bgen/Nomenclator.cs @@ -1,4 +1,3 @@ -using System; using System.Collections.Generic; using System.Reflection; diff --git a/src/bgen/NullabilityInfoContext.cs b/src/bgen/NullabilityInfoContext.cs index 8acbcea1a0a0..94ff527d0dae 100644 --- a/src/bgen/NullabilityInfoContext.cs +++ b/src/bgen/NullabilityInfoContext.cs @@ -1,4 +1,3 @@ -using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; diff --git a/src/bgen/SearchPathsAssemblyResolver.cs b/src/bgen/SearchPathsAssemblyResolver.cs index c14e5ebd240f..aa7af68fe0ff 100644 --- a/src/bgen/SearchPathsAssemblyResolver.cs +++ b/src/bgen/SearchPathsAssemblyResolver.cs @@ -1,4 +1,3 @@ -using System; using System.IO; using System.Reflection; diff --git a/src/bgen/TypeManager.cs b/src/bgen/TypeManager.cs index b00c7332ff78..25492acd57df 100644 --- a/src/bgen/TypeManager.cs +++ b/src/bgen/TypeManager.cs @@ -1,8 +1,6 @@ -using System; using System.Collections.Generic; using System.Linq; using System.Reflection; -using Foundation; #nullable enable diff --git a/src/browserenginekit.cs b/src/browserenginekit.cs index 1ca5e04f77cc..766369c97abc 100644 --- a/src/browserenginekit.cs +++ b/src/browserenginekit.cs @@ -1,10 +1,7 @@ -using System; using AVFoundation; using CoreAnimation; using CoreGraphics; -using Foundation; -using ObjCRuntime; using UniformTypeIdentifiers; #if MONOMAC using AppKit; diff --git a/src/businesschat.cs b/src/businesschat.cs index 4d8e05cbb2a5..c89822fa7239 100644 --- a/src/businesschat.cs +++ b/src/businesschat.cs @@ -6,11 +6,8 @@ // // Copyright 2017 Microsoft Inc. All rights reserved. // -using System; using System.ComponentModel; -using Foundation; -using ObjCRuntime; #if MONOMAC using AppKit; using UIControl = AppKit.NSControl; diff --git a/src/callkit.cs b/src/callkit.cs index a819d703b075..39b35106609b 100644 --- a/src/callkit.cs +++ b/src/callkit.cs @@ -7,11 +7,8 @@ // Copyright 2016 Xamarin Inc. All rights reserved. // -using System; using AVFoundation; using CoreFoundation; -using Foundation; -using ObjCRuntime; namespace CallKit { diff --git a/src/carplay.cs b/src/carplay.cs index 84781262e791..d787a98c1a7c 100644 --- a/src/carplay.cs +++ b/src/carplay.cs @@ -7,9 +7,6 @@ // Copyright 2018-2019 Microsoft Corporation. All rights reserved. // -using System; -using Foundation; -using ObjCRuntime; using UIKit; using CoreGraphics; using MapKit; diff --git a/src/cfnetwork.cs b/src/cfnetwork.cs index 5e4dbd4f49d5..f26774335af5 100644 --- a/src/cfnetwork.cs +++ b/src/cfnetwork.cs @@ -4,10 +4,6 @@ // Copyright 2014-2015 Xamarin Inc. All rights reserved. // -using System; -using Foundation; -using ObjCRuntime; - namespace CFNetwork { /// A that reads HTTP stream data. [Partial] diff --git a/src/cinematic.cs b/src/cinematic.cs index aaebdf321d00..3078ef73c949 100644 --- a/src/cinematic.cs +++ b/src/cinematic.cs @@ -3,11 +3,7 @@ using CoreGraphics; using CoreMedia; using CoreVideo; -using Foundation; using Metal; -using ObjCRuntime; - -using System; namespace Cinematic { diff --git a/src/classkit.cs b/src/classkit.cs index 96333589ed19..d52476826543 100644 --- a/src/classkit.cs +++ b/src/classkit.cs @@ -7,9 +7,6 @@ // Copyright 2018 Xamarin Inc. All rights reserved. // -using System; -using Foundation; -using ObjCRuntime; using CoreGraphics; using System.Reflection; diff --git a/src/cloudkit.cs b/src/cloudkit.cs index eb51e181aed9..a41b01019e5b 100644 --- a/src/cloudkit.cs +++ b/src/cloudkit.cs @@ -1,7 +1,4 @@ -using System; using System.ComponentModel; -using ObjCRuntime; -using Foundation; using CoreLocation; #if HAS_CONTACTS using Contacts; diff --git a/src/contacts.cs b/src/contacts.cs index 1079ff8155b0..0f50091b81a3 100644 --- a/src/contacts.cs +++ b/src/contacts.cs @@ -7,10 +7,7 @@ // Copyright 2015 Xamarin Inc. All rights reserved. // -using System; using System.ComponentModel; -using ObjCRuntime; -using Foundation; namespace Contacts { interface ICNKeyDescriptor { } diff --git a/src/contactsui.cs b/src/contactsui.cs index 1a8d3fe854cb..533d23b282dd 100644 --- a/src/contactsui.cs +++ b/src/contactsui.cs @@ -7,9 +7,6 @@ // Copyright 2015 Xamarin Inc. All rights reserved. // -using System; -using ObjCRuntime; -using Foundation; using Contacts; using CoreGraphics; #if MONOMAC diff --git a/src/coreanimation.cs b/src/coreanimation.cs index c49200946998..dc41755306f3 100644 --- a/src/coreanimation.cs +++ b/src/coreanimation.cs @@ -29,7 +29,6 @@ // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // -using System; using System.ComponentModel; using System.Diagnostics; #if MONOMAC @@ -42,10 +41,8 @@ #if HAS_OPENGLES using OpenGLES; #endif -using Foundation; using CoreImage; using CoreGraphics; -using ObjCRuntime; using Metal; using SceneKit; // For SCNAnimationEvent diff --git a/src/coreaudiokit.cs b/src/coreaudiokit.cs index 1b37f92f1f40..0ca1eeba8a2e 100644 --- a/src/coreaudiokit.cs +++ b/src/coreaudiokit.cs @@ -7,13 +7,10 @@ // While the framework exists on both platforms, they share no common API // -using System; using System.ComponentModel; using AudioUnit; using CoreFoundation; -using Foundation; -using ObjCRuntime; using CoreAnimation; using CoreGraphics; #if MONOMAC diff --git a/src/corebluetooth.cs b/src/corebluetooth.cs index 18fae172f535..49a1c6d27c36 100644 --- a/src/corebluetooth.cs +++ b/src/corebluetooth.cs @@ -9,9 +9,6 @@ // using System.ComponentModel; -using ObjCRuntime; -using Foundation; -using System; using CoreFoundation; namespace CoreBluetooth { diff --git a/src/coredata.cs b/src/coredata.cs index bd1341b43e4c..fe8437cdb7a2 100644 --- a/src/coredata.cs +++ b/src/coredata.cs @@ -7,9 +7,6 @@ // Copyright 2009, 2011, MonoMac community // Copyright 2011, 2015 Xamarin Inc. // -using System; -using Foundation; -using ObjCRuntime; using CloudKit; #if MONOMAC using AppKit; diff --git a/src/corefoundation.cs b/src/corefoundation.cs index dfe775dd04f3..b6da132bd0cc 100644 --- a/src/corefoundation.cs +++ b/src/corefoundation.cs @@ -4,10 +4,6 @@ // Copyright 2014-2015 Xamarin Inc. All rights reserved. // -using System; -using Foundation; -using ObjCRuntime; - namespace CoreFoundation { /// A class that allows for explicit allocation and de-allocation of memory. diff --git a/src/coregraphics.cs b/src/coregraphics.cs index 0737f3b3e428..ce7b6b48f93e 100644 --- a/src/coregraphics.cs +++ b/src/coregraphics.cs @@ -4,10 +4,6 @@ // Copyright 2014 Xamarin Inc. All rights reserved. // -using System; -using Foundation; -using ObjCRuntime; - namespace CoreGraphics { [TV (18, 0), Mac (15, 0), iOS (18, 0), MacCatalyst (18, 0)] diff --git a/src/corehaptics.cs b/src/corehaptics.cs index b5c645e12bc7..e9c083993d3c 100644 --- a/src/corehaptics.cs +++ b/src/corehaptics.cs @@ -7,12 +7,8 @@ // Copyright 2019 Microsoft Corporation All rights reserved. // -using System; - using AVFoundation; using CoreFoundation; -using Foundation; -using ObjCRuntime; namespace CoreHaptics { diff --git a/src/coreimage.cs b/src/coreimage.cs index 85d69176cc84..08033291ae8a 100644 --- a/src/coreimage.cs +++ b/src/coreimage.cs @@ -24,12 +24,9 @@ // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // -using System; using System.ComponentModel; using System.Reflection; using AVFoundation; -using Foundation; -using ObjCRuntime; using CoreGraphics; using CoreImage; using CoreML; @@ -47,7 +44,6 @@ using ImageKit; #endif - #if !MONOMAC using Color = UIKit.UIColor; using NSImageRep = Foundation.NSObject; diff --git a/src/corelocation.cs b/src/corelocation.cs index 07972abb2748..be093d2c80b8 100644 --- a/src/corelocation.cs +++ b/src/corelocation.cs @@ -9,8 +9,6 @@ // Copyright 2009, Novell, Inc. // Copyright 2011, 2013, 2015 Xamarin Inc. // -using ObjCRuntime; -using Foundation; using CloudKit; using CoreGraphics; using CoreFoundation; @@ -20,7 +18,6 @@ #if !TVOS using Contacts; #endif -using System; #if TVOS using CNPostalAddress = Foundation.NSObject; diff --git a/src/corelocationui.cs b/src/corelocationui.cs index 8d110eaacf70..e2c2f7cafbe5 100644 --- a/src/corelocationui.cs +++ b/src/corelocationui.cs @@ -1,10 +1,6 @@ using CoreGraphics; -using ObjCRuntime; -using Foundation; using UIKit; -using System; - namespace CoreLocationUI { [NoTV, NoMac, iOS (15, 0), MacCatalyst (15, 0)] diff --git a/src/coremedia.cs b/src/coremedia.cs index 1f9035b0c06e..f35a6484d9ba 100644 --- a/src/coremedia.cs +++ b/src/coremedia.cs @@ -4,12 +4,8 @@ // Copyright 2014 Xamarin Inc. All rights reserved. // -using System; - using CoreFoundation; using CoreGraphics; -using Foundation; -using ObjCRuntime; namespace CoreMedia { [Static] diff --git a/src/coremidi.cs b/src/coremidi.cs index c9b7a795ae92..05d10b04a5bb 100644 --- a/src/coremidi.cs +++ b/src/coremidi.cs @@ -26,10 +26,7 @@ // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // -using System; -using Foundation; using CoreGraphics; -using ObjCRuntime; using MidiObjectRef = System.Int32; using MidiEndpointRef = System.Int32; diff --git a/src/coreml.cs b/src/coreml.cs index 5686dc637dc9..d0280d743d27 100644 --- a/src/coreml.cs +++ b/src/coreml.cs @@ -7,12 +7,9 @@ // Copyright 2017 Xamarin Inc. All rights reserved. // -using System; -using ObjCRuntime; using CoreFoundation; using CoreGraphics; using CoreVideo; -using Foundation; using ImageIO; using Metal; diff --git a/src/coremotion.cs b/src/coremotion.cs index 706fdb7ad7e3..4a1b2016d37d 100644 --- a/src/coremotion.cs +++ b/src/coremotion.cs @@ -8,11 +8,8 @@ // Copyright 2013-2015 Xamarin Inc. // Copyright 2019 Microsoft Corporation // -using ObjCRuntime; -using Foundation; using CoreGraphics; using CoreLocation; -using System; namespace CoreMotion { /// An accelerometer event, encapsulates an instance of diff --git a/src/corenfc.cs b/src/corenfc.cs index 1e3177b9cdf8..e2930cee4839 100644 --- a/src/corenfc.cs +++ b/src/corenfc.cs @@ -7,10 +7,7 @@ // Copyright 2017 Xamarin Inc. All rights reserved. // -using System; -using ObjCRuntime; using CoreFoundation; -using Foundation; namespace CoreNFC { diff --git a/src/corespotlight.cs b/src/corespotlight.cs index 6627f6229174..3521ee8012e9 100644 --- a/src/corespotlight.cs +++ b/src/corespotlight.cs @@ -7,10 +7,7 @@ // Copyright 2015 Xamarin Inc. All rights reserved. // -using System; using System.ComponentModel; -using ObjCRuntime; -using Foundation; using UniformTypeIdentifiers; namespace CoreSpotlight { diff --git a/src/coretelephony.cs b/src/coretelephony.cs index 61fa5364b682..01080c6d322a 100644 --- a/src/coretelephony.cs +++ b/src/coretelephony.cs @@ -1,6 +1,3 @@ -using Foundation; -using ObjCRuntime; -using System; namespace CoreTelephony { diff --git a/src/coretext.cs b/src/coretext.cs index adaf4be45f19..6e2cafb60614 100644 --- a/src/coretext.cs +++ b/src/coretext.cs @@ -7,11 +7,7 @@ // Copyright 2014 Xamarin Inc. // -using System; - using CoreGraphics; -using Foundation; -using ObjCRuntime; namespace CoreText { diff --git a/src/corevideo.cs b/src/corevideo.cs index 0f8b2e068f5f..77146ca67090 100644 --- a/src/corevideo.cs +++ b/src/corevideo.cs @@ -5,11 +5,7 @@ // Copyright 2020 Microsoft Corporation // -using System; - using CoreGraphics; -using Foundation; -using ObjCRuntime; using Metal; namespace CoreVideo { diff --git a/src/corewlan.cs b/src/corewlan.cs index 26c0e48b96ec..c25829f03f9d 100644 --- a/src/corewlan.cs +++ b/src/corewlan.cs @@ -22,11 +22,8 @@ // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // -using Foundation; using CoreFoundation; -using ObjCRuntime; using Security; -using System; namespace CoreWlan { diff --git a/src/cryptotokenkit.cs b/src/cryptotokenkit.cs index 08083c5c2a2a..039f8811d399 100644 --- a/src/cryptotokenkit.cs +++ b/src/cryptotokenkit.cs @@ -4,11 +4,8 @@ #define STABLE_CRYPTOTOKENKIT #endif -using System; using System.Diagnostics.CodeAnalysis; -using Foundation; -using ObjCRuntime; using Security; namespace CryptoTokenKit { diff --git a/src/datadetection.cs b/src/datadetection.cs index 0740d84ac18e..2f145f065f28 100644 --- a/src/datadetection.cs +++ b/src/datadetection.cs @@ -1,9 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -using Foundation; -using ObjCRuntime; - namespace DataDetection { [iOS (15, 0), TV (15, 0), MacCatalyst (15, 0), Mac (12, 0)] diff --git a/src/devicecheck.cs b/src/devicecheck.cs index 4788f9778454..c4001a649803 100644 --- a/src/devicecheck.cs +++ b/src/devicecheck.cs @@ -8,10 +8,6 @@ // Copyright 2019 Microsoft Corporation. // -using System; -using ObjCRuntime; -using Foundation; - namespace DeviceCheck { [MacCatalyst (13, 1)] diff --git a/src/devicediscoveryextension.cs b/src/devicediscoveryextension.cs index a9a0f1a33f64..4e9b8595b98d 100644 --- a/src/devicediscoveryextension.cs +++ b/src/devicediscoveryextension.cs @@ -8,9 +8,6 @@ // Copyright 2022, 2024 Microsoft Corporation. // -using System; -using ObjCRuntime; -using Foundation; using UniformTypeIdentifiers; using nw_endpoint_t = System.IntPtr; diff --git a/src/devicediscoveryui.cs b/src/devicediscoveryui.cs index 616a046060e4..d84a84564963 100644 --- a/src/devicediscoveryui.cs +++ b/src/devicediscoveryui.cs @@ -7,9 +7,6 @@ // Copyright 2022 Microsoft Corporation. // -using System; -using Foundation; -using ObjCRuntime; using UIKit; using OS_nw_browse_descriptor = System.IntPtr; diff --git a/src/error.cs b/src/error.cs index d4f809127bb8..2138048ee02d 100644 --- a/src/error.cs +++ b/src/error.cs @@ -9,7 +9,6 @@ // // -using System; using System.Collections.Generic; using System.Reflection; diff --git a/src/eventkit.cs b/src/eventkit.cs index 8e773fa8735c..73f688072e98 100644 --- a/src/eventkit.cs +++ b/src/eventkit.cs @@ -12,12 +12,9 @@ #if !MONOMAC using AddressBook; #endif -using ObjCRuntime; -using Foundation; using CoreGraphics; using CoreLocation; using MapKit; -using System; #if MONOMAC using AppKit; #else diff --git a/src/eventkitui.cs b/src/eventkitui.cs index d4ca957844b0..40c27003ea8c 100644 --- a/src/eventkitui.cs +++ b/src/eventkitui.cs @@ -7,13 +7,10 @@ // Copyright 2010, Novell, Inc. // Copyright 2014 Xamarin Inc. All rights reserved. // -using ObjCRuntime; -using Foundation; using CoreGraphics; using CoreLocation; using UIKit; using EventKit; -using System; namespace EventKitUI { /// UIViewController used to display the details of a calendar event. diff --git a/src/executionpolicy.cs b/src/executionpolicy.cs index 1b66747726cd..d54428a5eee2 100644 --- a/src/executionpolicy.cs +++ b/src/executionpolicy.cs @@ -1,10 +1,6 @@ // Copyright 2019 Microsoft Corporation -using System; - using CoreFoundation; -using Foundation; -using ObjCRuntime; namespace ExecutionPolicy { diff --git a/src/extensionkit.cs b/src/extensionkit.cs index 842096420ac1..4a618aa399e7 100644 --- a/src/extensionkit.cs +++ b/src/extensionkit.cs @@ -4,9 +4,6 @@ // Copyright 2022 Microsoft Corp. All rights reserved // -using ObjCRuntime; -using Foundation; - #if MONOMAC using AppKit; using UIView = AppKit.NSView; diff --git a/src/externalaccessory.cs b/src/externalaccessory.cs index b07f969b2267..3c4459efd95c 100644 --- a/src/externalaccessory.cs +++ b/src/externalaccessory.cs @@ -4,10 +4,7 @@ // Copyright 2012-2014 Xamarin Inc. All rights reserved. // -using System; -using Foundation; using CoreFoundation; -using ObjCRuntime; #if !MONOMAC using UIKit; #endif diff --git a/src/fileprovider.cs b/src/fileprovider.cs index 3d6dd0a26330..007a4be60b5f 100644 --- a/src/fileprovider.cs +++ b/src/fileprovider.cs @@ -9,10 +9,7 @@ // Copyright 2019 Microsoft Corporation // -using System; -using ObjCRuntime; using CoreGraphics; -using Foundation; using UniformTypeIdentifiers; namespace FileProvider { diff --git a/src/fileproviderui.cs b/src/fileproviderui.cs index 0771a113bd86..c35734f551b6 100644 --- a/src/fileproviderui.cs +++ b/src/fileproviderui.cs @@ -7,9 +7,6 @@ // Copyright 2017 Xamarin Inc. All rights reserved. // -using System; -using ObjCRuntime; -using Foundation; #if IOS using UIKit; #else diff --git a/src/findersync.cs b/src/findersync.cs index e12abd829d72..faf6d8048a50 100644 --- a/src/findersync.cs +++ b/src/findersync.cs @@ -1,6 +1,3 @@ -using System; -using Foundation; -using ObjCRuntime; using AppKit; namespace FinderSync { diff --git a/src/foundation.cs b/src/foundation.cs index db5b1a558dab..67bf5dfabfbc 100644 --- a/src/foundation.cs +++ b/src/foundation.cs @@ -35,11 +35,9 @@ global using nfloat = global::System.Runtime.InteropServices.NFloat; -using ObjCRuntime; using CloudKit; using CoreData; using CoreFoundation; -using Foundation; using CoreGraphics; using UniformTypeIdentifiers; using Network; @@ -71,7 +69,6 @@ using UIKit; #endif -using System; using System.ComponentModel; // In Apple headers, this is a typedef to a pointer to a private struct diff --git a/src/frameworks.sources b/src/frameworks.sources index 76b5e8ea57ad..03caa49d0d3a 100644 --- a/src/frameworks.sources +++ b/src/frameworks.sources @@ -1845,6 +1845,7 @@ WEBKIT_SOURCES = \ # SHARED_API_SOURCES = \ + DotNetGlobals.cs \ ObjCRuntime/ObsoleteConstants.cs \ MinimumVersions.cs \ diff --git a/src/fskit.cs b/src/fskit.cs index 6f4069c778e7..abae7b8211ed 100644 --- a/src/fskit.cs +++ b/src/fskit.cs @@ -1,14 +1,11 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -using System; using System.ComponentModel; using System.Diagnostics.CodeAnalysis; using CoreFoundation; using Darwin; -using Foundation; -using ObjCRuntime; // Let's hope that by .NET 11 we've ironed out all the bugs in the API. // This can of course be adjusted as needed (until we've released as stable). diff --git a/src/gamecontroller.cs b/src/gamecontroller.cs index 08c5dd2813c1..4e53039779fb 100644 --- a/src/gamecontroller.cs +++ b/src/gamecontroller.cs @@ -9,12 +9,8 @@ // Copyright 2013, 2015 Xamarin Inc. // Copyright 2019, 2020 Microsoft Corporation -using System; - using CoreFoundation; using CoreGraphics; -using Foundation; -using ObjCRuntime; #if MONOMAC using AppKit; using UIViewController = AppKit.NSViewController; diff --git a/src/gamekit.cs b/src/gamekit.cs index cea8f3b32027..87422f3b66de 100644 --- a/src/gamekit.cs +++ b/src/gamekit.cs @@ -14,9 +14,6 @@ #pragma warning disable 618 -using System; -using ObjCRuntime; -using Foundation; using CoreFoundation; using CoreGraphics; #if MONOMAC diff --git a/src/gameplaykit.cs b/src/gameplaykit.cs index f3c055315f5f..d2c0db61445d 100644 --- a/src/gameplaykit.cs +++ b/src/gameplaykit.cs @@ -7,11 +7,8 @@ // Copyright 2015 Xamarin Inc. All rights reserved. // -using System; using System.ComponentModel; using System.Numerics; -using ObjCRuntime; -using Foundation; using SpriteKit; using SceneKit; diff --git a/src/glkit.cs b/src/glkit.cs index 01f836e8e112..368d1a624dd4 100644 --- a/src/glkit.cs +++ b/src/glkit.cs @@ -26,10 +26,7 @@ // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // -using System; using System.Numerics; -using Foundation; -using ObjCRuntime; using CoreGraphics; using CoreFoundation; using ModelIO; diff --git a/src/healthkit.cs b/src/healthkit.cs index 8012c86c95e3..ee9b0a32013b 100644 --- a/src/healthkit.cs +++ b/src/healthkit.cs @@ -11,9 +11,6 @@ // using CoreFoundation; -using ObjCRuntime; -using Foundation; -using System; using System.ComponentModel; using CoreLocation; using UniformTypeIdentifiers; diff --git a/src/healthkitui.cs b/src/healthkitui.cs index 2c22d16ab8b9..58597bdb8047 100644 --- a/src/healthkitui.cs +++ b/src/healthkitui.cs @@ -1,10 +1,7 @@ // Copyright 2016 Xamarin Inc. All rights reserved. -using System; using CoreGraphics; -using Foundation; using HealthKit; -using ObjCRuntime; using UIKit; namespace HealthKitUI { diff --git a/src/homekit.cs b/src/homekit.cs index ffd406b58dbc..b4c2759aae39 100644 --- a/src/homekit.cs +++ b/src/homekit.cs @@ -1,9 +1,6 @@ using CoreGraphics; using CoreLocation; -using ObjCRuntime; -using Foundation; using UIKit; -using System; using System.ComponentModel; namespace HomeKit { diff --git a/src/iTunesLibrary/Enums.cs b/src/iTunesLibrary/Enums.cs index 383322b3d0ed..c8f9723ff244 100644 --- a/src/iTunesLibrary/Enums.cs +++ b/src/iTunesLibrary/Enums.cs @@ -20,9 +20,6 @@ // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // // -using System; -using Foundation; -using ObjCRuntime; namespace iTunesLibrary { diff --git a/src/identitylookup.cs b/src/identitylookup.cs index ff2e89960336..6691490de41a 100644 --- a/src/identitylookup.cs +++ b/src/identitylookup.cs @@ -8,10 +8,6 @@ // Copyright 2019 Microsoft Corporation. // -using System; -using Foundation; -using ObjCRuntime; - namespace IdentityLookup { /// Enumerates actions that can be taken in response to a message. diff --git a/src/identitylookupui.cs b/src/identitylookupui.cs index 4cbd3193c54c..b9da30e2a690 100644 --- a/src/identitylookupui.cs +++ b/src/identitylookupui.cs @@ -7,9 +7,6 @@ // Copyright 2018-2019 Microsoft Corporation. // -using System; -using Foundation; -using ObjCRuntime; using UIKit; using IdentityLookup; diff --git a/src/imagecapturecore.cs b/src/imagecapturecore.cs index b0e1cf57c138..42684c42c2b7 100644 --- a/src/imagecapturecore.cs +++ b/src/imagecapturecore.cs @@ -24,10 +24,7 @@ // // imagecapturecore.cs: Bindings for the ImageCaptureCore API // -using System; using AppKit; -using Foundation; -using ObjCRuntime; using CoreImage; using CoreGraphics; using CoreAnimation; diff --git a/src/imageio.cs b/src/imageio.cs index 4b336a7af95e..c2ae4cc2db31 100644 --- a/src/imageio.cs +++ b/src/imageio.cs @@ -26,11 +26,8 @@ // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // -using ObjCRuntime; -using Foundation; using CoreFoundation; using CoreGraphics; -using System; namespace ImageIO { diff --git a/src/imagekit.cs b/src/imagekit.cs index 79b4d891b58f..c1e5dafac0a4 100644 --- a/src/imagekit.cs +++ b/src/imagekit.cs @@ -26,10 +26,7 @@ // // imagekit.cs: Bindings for the Image Kit API // -using System; using AppKit; -using Foundation; -using ObjCRuntime; using CoreImage; using ImageCaptureCore; using CoreGraphics; diff --git a/src/intents.cs b/src/intents.cs index 461413c49754..7bcbcf56e5e2 100644 --- a/src/intents.cs +++ b/src/intents.cs @@ -7,11 +7,8 @@ // Copyright 2016 Xamarin Inc. All rights reserved. // -using System; using System.ComponentModel; using CoreGraphics; -using Foundation; -using ObjCRuntime; using CoreLocation; using UserNotifications; diff --git a/src/intentsui.cs b/src/intentsui.cs index 0359f80a8357..8db18251c9e8 100644 --- a/src/intentsui.cs +++ b/src/intentsui.cs @@ -7,11 +7,8 @@ // Copyright 2016 Xamarin Inc. All rights reserved. // -using System; using CoreGraphics; -using Foundation; using Intents; -using ObjCRuntime; #if MONOMAC using AppKit; #else diff --git a/src/iosurface.cs b/src/iosurface.cs index 92f9898c7950..8a6d6eaaad41 100644 --- a/src/iosurface.cs +++ b/src/iosurface.cs @@ -7,11 +7,8 @@ // Copyright 2017 Microsoft Inc. All rights reserved. // -using System; using System.Diagnostics.CodeAnalysis; using CoreFoundation; -using Foundation; -using ObjCRuntime; namespace IOSurface { diff --git a/src/ituneslibrary.cs b/src/ituneslibrary.cs index d93b4220d415..104e62aa95b0 100644 --- a/src/ituneslibrary.cs +++ b/src/ituneslibrary.cs @@ -20,11 +20,8 @@ // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // -using System; using System.ComponentModel; using AppKit; -using Foundation; -using ObjCRuntime; namespace iTunesLibrary { diff --git a/src/javascriptcore.cs b/src/javascriptcore.cs index b4c52be45ffd..858986945efd 100644 --- a/src/javascriptcore.cs +++ b/src/javascriptcore.cs @@ -6,9 +6,6 @@ // // Copyright 2013-2014 Xamarin, Inc. -using System; -using ObjCRuntime; -using Foundation; using CoreGraphics; namespace JavaScriptCore { diff --git a/src/linkpresentation.cs b/src/linkpresentation.cs index e7577f216fa7..d2850fd5d079 100644 --- a/src/linkpresentation.cs +++ b/src/linkpresentation.cs @@ -14,10 +14,7 @@ using UIKit; #endif -using System; using CoreGraphics; -using Foundation; -using ObjCRuntime; namespace LinkPresentation { diff --git a/src/localauthentication.cs b/src/localauthentication.cs index 91c077b08bb0..e4b8a4efd8d8 100644 --- a/src/localauthentication.cs +++ b/src/localauthentication.cs @@ -1,6 +1,3 @@ -using System; -using ObjCRuntime; -using Foundation; using Security; namespace LocalAuthentication { diff --git a/src/localauthenticationembeddedui.cs b/src/localauthenticationembeddedui.cs index afa84d0d3d6f..b4e0e8ca8286 100644 --- a/src/localauthenticationembeddedui.cs +++ b/src/localauthenticationembeddedui.cs @@ -7,9 +7,6 @@ // Copyright 2021 Microsoft Corporation All rights reserved. // -using System; -using ObjCRuntime; -using Foundation; using AppKit; using CoreGraphics; using LocalAuthentication; diff --git a/src/mailkit.cs b/src/mailkit.cs index 366fa7a588a1..f69d197a929d 100644 --- a/src/mailkit.cs +++ b/src/mailkit.cs @@ -1,7 +1,4 @@ -using System; using CoreGraphics; -using Foundation; -using ObjCRuntime; using AVFoundation; using AppKit; diff --git a/src/mapkit.cs b/src/mapkit.cs index a1b98dd11dd2..f83df9a5c214 100644 --- a/src/mapkit.cs +++ b/src/mapkit.cs @@ -12,8 +12,6 @@ // using CoreFoundation; -using ObjCRuntime; -using Foundation; using CoreGraphics; using CoreLocation; #if MONOMAC @@ -25,7 +23,6 @@ #if !TVOS using Contacts; #endif -using System; #if MONOMAC using UIImage = AppKit.NSImage; diff --git a/src/mediaaccessibility.cs b/src/mediaaccessibility.cs index 22bcd461f0a9..0580b7388bda 100644 --- a/src/mediaaccessibility.cs +++ b/src/mediaaccessibility.cs @@ -1,7 +1,4 @@ -using System; -using ObjCRuntime; -using Foundation; using Surface = IOSurface.IOSurface; namespace MediaAccessibility { diff --git a/src/mediaextension.cs b/src/mediaextension.cs index 1f590f674cfe..cbe824d781af 100644 --- a/src/mediaextension.cs +++ b/src/mediaextension.cs @@ -1,11 +1,8 @@ -using System; using AVFoundation; using CoreGraphics; using CoreMedia; using CoreVideo; -using Foundation; -using ObjCRuntime; using UniformTypeIdentifiers; namespace MediaExtension { diff --git a/src/medialibrary.cs b/src/medialibrary.cs index 882729fe09f1..5eb2f9ff818b 100644 --- a/src/medialibrary.cs +++ b/src/medialibrary.cs @@ -19,11 +19,7 @@ // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -using System; - using AppKit; -using Foundation; -using ObjCRuntime; namespace MediaLibrary { [Static] diff --git a/src/mediaplayer.cs b/src/mediaplayer.cs index b98ebe43d2b3..8116000a2177 100644 --- a/src/mediaplayer.cs +++ b/src/mediaplayer.cs @@ -9,8 +9,6 @@ // using System.ComponentModel; using AVFoundation; -using ObjCRuntime; -using Foundation; using CoreFoundation; using CoreGraphics; using CoreLocation; @@ -20,7 +18,6 @@ #else using UIKit; #endif -using System; #if MONOMAC using UIControlState = Foundation.NSObject; diff --git a/src/mediasetup.cs b/src/mediasetup.cs index 1770b73c5c9b..8b2b2a8de820 100644 --- a/src/mediasetup.cs +++ b/src/mediasetup.cs @@ -1,6 +1,3 @@ -using System; -using Foundation; -using ObjCRuntime; using UIKit; namespace MediaSetup { diff --git a/src/messages.cs b/src/messages.cs index 0fb199bf13b5..b1ab8d6d2448 100644 --- a/src/messages.cs +++ b/src/messages.cs @@ -7,11 +7,8 @@ // Copyright 2016 Xamarin Inc. All rights reserved. // -using System; using CoreFoundation; using CoreGraphics; -using Foundation; -using ObjCRuntime; using UIKit; #if !MONOMAC diff --git a/src/messageui.cs b/src/messageui.cs index ba9596574a6d..ea8635e7932b 100644 --- a/src/messageui.cs +++ b/src/messageui.cs @@ -8,9 +8,6 @@ // Copyright 2011, 2013 Xamarin, Inc. // -using System; -using ObjCRuntime; -using Foundation; using CoreFoundation; using Messages; using UIKit; diff --git a/src/metal.cs b/src/metal.cs index 6b49b2a96b63..2bc2bd383435 100644 --- a/src/metal.cs +++ b/src/metal.cs @@ -12,7 +12,6 @@ // * Make the *array classes implement all the ICollection methods. // -using System; using System.ComponentModel; using CoreAnimation; @@ -21,8 +20,6 @@ using CoreImage; using CoreLocation; using CoreFoundation; -using Foundation; -using ObjCRuntime; #if TVOS using MTLAccelerationStructureSizes = Foundation.NSObject; diff --git a/src/metalfx.cs b/src/metalfx.cs index 7dfd7dbcf636..7e1739db57e1 100644 --- a/src/metalfx.cs +++ b/src/metalfx.cs @@ -1,11 +1,8 @@ -using System; using System.ComponentModel; -using CoreFoundation; using CoreGraphics; -using Foundation; + using Metal; -using ObjCRuntime; namespace MetalFX { diff --git a/src/metalkit.cs b/src/metalkit.cs index d4512c14c0a2..ab3a3a1e766c 100644 --- a/src/metalkit.cs +++ b/src/metalkit.cs @@ -1,10 +1,7 @@ -using System; using CoreAnimation; using CoreGraphics; -using Foundation; using Metal; using ModelIO; -using ObjCRuntime; #if MONOMAC using AppKit; diff --git a/src/metalperformanceshaders.cs b/src/metalperformanceshaders.cs index 12925132d32e..4c6a4d706c10 100644 --- a/src/metalperformanceshaders.cs +++ b/src/metalperformanceshaders.cs @@ -1,11 +1,8 @@ -using System; using System.ComponentModel; using System.Numerics; using CoreGraphics; -using Foundation; using Metal; -using ObjCRuntime; namespace MetalPerformanceShaders { // MPSImageConvolution.h diff --git a/src/metalperformanceshadersgraph.cs b/src/metalperformanceshadersgraph.cs index db9f240d6197..fea8823fc4aa 100644 --- a/src/metalperformanceshadersgraph.cs +++ b/src/metalperformanceshadersgraph.cs @@ -1,10 +1,7 @@ -using System; using CoreFoundation; using CoreGraphics; -using Foundation; using Metal; using MetalPerformanceShaders; -using ObjCRuntime; using MPSGraphTensorDataDictionary = Foundation.NSDictionary; using MPSGraphTensorShapedTypeDictionary = Foundation.NSDictionary; diff --git a/src/metrickit.cs b/src/metrickit.cs index 9197e7afd872..0a43667437df 100644 --- a/src/metrickit.cs +++ b/src/metrickit.cs @@ -7,11 +7,7 @@ // Copyright 2019 Microsoft Corporation All rights reserved. // -using System; - using CoreFoundation; -using Foundation; -using ObjCRuntime; namespace MetricKit { diff --git a/src/mlcompute.cs b/src/mlcompute.cs index b2be02b70a90..ee16476111f7 100644 --- a/src/mlcompute.cs +++ b/src/mlcompute.cs @@ -1,9 +1,5 @@ -using System; -using System.Runtime.InteropServices; -using Foundation; using Metal; -using ObjCRuntime; namespace MLCompute { diff --git a/src/mobilecoreservices.cs b/src/mobilecoreservices.cs index 04e408137e69..b110c3ab937b 100644 --- a/src/mobilecoreservices.cs +++ b/src/mobilecoreservices.cs @@ -1,5 +1,3 @@ -using Foundation; -using ObjCRuntime; namespace MobileCoreServices { diff --git a/src/modelio.cs b/src/modelio.cs index 918fdeb06651..cf533b49bcd0 100644 --- a/src/modelio.cs +++ b/src/modelio.cs @@ -6,14 +6,11 @@ // // -using System; using System.ComponentModel; using System.Numerics; using AudioUnit; using CoreFoundation; -using Foundation; -using ObjCRuntime; using CoreAnimation; using CoreGraphics; using SceneKit; diff --git a/src/multipeerconnectivity.cs b/src/multipeerconnectivity.cs index 3a144c5a213b..ee8aa60276ac 100644 --- a/src/multipeerconnectivity.cs +++ b/src/multipeerconnectivity.cs @@ -6,10 +6,6 @@ // // Copyright 2013 Xamarin, Inc. -using System; - -using Foundation; -using ObjCRuntime; using Security; #if MONOMAC using AppKit; diff --git a/src/naturallanguage.cs b/src/naturallanguage.cs index 8e9118f7a186..c110d8d3206a 100644 --- a/src/naturallanguage.cs +++ b/src/naturallanguage.cs @@ -20,11 +20,8 @@ // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // -using System; using System.ComponentModel; -using Foundation; using CoreML; -using ObjCRuntime; namespace NaturalLanguage { diff --git a/src/nearbyinteraction.cs b/src/nearbyinteraction.cs index 15b06a5c6c42..66015659718e 100644 --- a/src/nearbyinteraction.cs +++ b/src/nearbyinteraction.cs @@ -7,12 +7,11 @@ // Copyright 2020 Microsoft Inc. // -using ObjCRuntime; -using Foundation; +using System.Numerics; + using CoreFoundation; using CoreGraphics; -using System; -using System.Numerics; + #if __MACCATALYST__ || !IOS using ARSession = Foundation.NSObject; #else diff --git a/src/network.cs b/src/network.cs index 366ca9aa5837..c17b72634169 100644 --- a/src/network.cs +++ b/src/network.cs @@ -1,8 +1,4 @@ -using System; -using System.Runtime.InteropServices; using System.Runtime.CompilerServices; -using ObjCRuntime; -using Foundation; using CoreFoundation; namespace Network { diff --git a/src/networkextension.cs b/src/networkextension.cs index 2ea8bd70760d..c6a094d9e40a 100644 --- a/src/networkextension.cs +++ b/src/networkextension.cs @@ -1,16 +1,12 @@ // Copyright 2014-2015 Xamarin Inc. All rights reserved. // Copyright 2019 Microsoft Corporation -using System; - #if IOS && !__MACCATALYST__ using AccessorySetupKit; #else using ASAccessory = Foundation.NSObject; #endif using CoreFoundation; -using Foundation; -using ObjCRuntime; using Security; using Network; using OS_nw_parameters = System.IntPtr; diff --git a/src/notificationcenter.cs b/src/notificationcenter.cs index 3f6d89cfd106..7e55c6bc64ca 100644 --- a/src/notificationcenter.cs +++ b/src/notificationcenter.cs @@ -1,8 +1,5 @@ -using System; using System.ComponentModel; using CoreGraphics; -using ObjCRuntime; -using Foundation; #if !MONOMAC using UIKit; diff --git a/src/opengles.cs b/src/opengles.cs index bd4d46761752..4a529993836d 100644 --- a/src/opengles.cs +++ b/src/opengles.cs @@ -8,12 +8,9 @@ // Copyright 2009, Novell, Inc. // Copyright 2015 Xamarin Inc. // -using ObjCRuntime; -using Foundation; using CoreGraphics; using CoreLocation; using UIKit; -using System; namespace OpenGLES { diff --git a/src/oslog.cs b/src/oslog.cs index ffb3e6e7a6a2..43dfbd3cd781 100644 --- a/src/oslog.cs +++ b/src/oslog.cs @@ -1,6 +1,3 @@ -using System; -using Foundation; -using ObjCRuntime; using CoreFoundation; namespace OSLog { diff --git a/src/passkit.cs b/src/passkit.cs index 253cb91dc7ab..fa074485ab10 100644 --- a/src/passkit.cs +++ b/src/passkit.cs @@ -8,12 +8,9 @@ // Copyright 2020 Microsoft Corp. // -using System; using System.ComponentModel; using Contacts; using CoreGraphics; -using ObjCRuntime; -using Foundation; #if MONOMAC using AppKit; using ABRecord = Foundation.NSObject; diff --git a/src/pdfkit.cs b/src/pdfkit.cs index 1dbb02cb430f..d3e0311063f2 100644 --- a/src/pdfkit.cs +++ b/src/pdfkit.cs @@ -27,7 +27,6 @@ // PdfKit.cs: Bindings for the PdfKit API // -using System; #if MONOMAC using AppKit; using UIViewController = Foundation.NSObject; @@ -49,8 +48,6 @@ using NSPrintInfo = Foundation.NSObject; using NSPrintOperation = Foundation.NSObject; #endif -using Foundation; -using ObjCRuntime; using CoreGraphics; using System.ComponentModel; diff --git a/src/pencilkit.cs b/src/pencilkit.cs index 59fe7e2171b5..160f7194b79a 100644 --- a/src/pencilkit.cs +++ b/src/pencilkit.cs @@ -28,10 +28,7 @@ using BezierPath = UIKit.UIBezierPath; #endif -using System; using System.ComponentModel; -using ObjCRuntime; -using Foundation; using CoreGraphics; namespace PencilKit { diff --git a/src/phase.cs b/src/phase.cs index df4cf3d82573..2d7899ab9af4 100644 --- a/src/phase.cs +++ b/src/phase.cs @@ -3,15 +3,11 @@ using AudioToolbox; using AVFoundation; using CoreFoundation; -using Foundation; using ModelIO; -using ObjCRuntime; using Vector2d = global::CoreGraphics.NVector2d; using NMatrix4 = global::CoreGraphics.NMatrix4; -using System; - namespace Phase { [TV (17, 0), iOS (15, 0), MacCatalyst (15, 0)] diff --git a/src/photos.cs b/src/photos.cs index 98b56c2a2987..ff48f8fba292 100644 --- a/src/photos.cs +++ b/src/photos.cs @@ -1,5 +1,3 @@ -using ObjCRuntime; -using Foundation; using CoreFoundation; using CoreLocation; using AVFoundation; @@ -7,7 +5,6 @@ using CoreImage; using CoreMedia; using ImageIO; -using System; using UniformTypeIdentifiers; #if !MONOMAC using UIKit; diff --git a/src/photosui.cs b/src/photosui.cs index e56968f7946d..367643f01875 100644 --- a/src/photosui.cs +++ b/src/photosui.cs @@ -1,7 +1,5 @@ using CoreGraphics; using CoreLocation; -using ObjCRuntime; -using Foundation; #if !MONOMAC using UIKit; using NSView = Foundation.NSObject; @@ -19,7 +17,6 @@ #endif using MapKit; using Photos; -using System; namespace PhotosUI { [NoTV] diff --git a/src/pushkit.cs b/src/pushkit.cs index de716a91029d..122ffe111f7e 100644 --- a/src/pushkit.cs +++ b/src/pushkit.cs @@ -1,7 +1,4 @@ -using ObjCRuntime; -using Foundation; using CoreFoundation; -using System; namespace PushKit { /// Holds the that holds the user's credentials. diff --git a/src/pushtotalk.cs b/src/pushtotalk.cs index 1a8447679a3b..aae3d518bed7 100644 --- a/src/pushtotalk.cs +++ b/src/pushtotalk.cs @@ -7,12 +7,8 @@ // Copyright 2022 Microsoft Corporation All rights reserved. // -using System; - using AVFoundation; using CoreFoundation; -using Foundation; -using ObjCRuntime; using UIKit; namespace PushToTalk { diff --git a/src/quartzcomposer.cs b/src/quartzcomposer.cs index 6638c698ab48..ffc4192e1e00 100644 --- a/src/quartzcomposer.cs +++ b/src/quartzcomposer.cs @@ -23,10 +23,7 @@ // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // -using System; -using Foundation; using AppKit; -using ObjCRuntime; using CoreGraphics; using CoreAnimation; using CoreImage; diff --git a/src/quicklook.cs b/src/quicklook.cs index 972104f7e700..966c4765b08a 100644 --- a/src/quicklook.cs +++ b/src/quicklook.cs @@ -28,8 +28,6 @@ // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // -using ObjCRuntime; -using Foundation; using CoreGraphics; #if MONOMAC using AppKit; @@ -37,7 +35,6 @@ #else using UIKit; #endif -using System; using System.ComponentModel; using UniformTypeIdentifiers; diff --git a/src/quicklookUI.cs b/src/quicklookUI.cs index b5948834010c..c8e8103a3670 100644 --- a/src/quicklookUI.cs +++ b/src/quicklookUI.cs @@ -1,9 +1,6 @@ -using ObjCRuntime; -using Foundation; using CoreGraphics; using AppKit; -using System; using System.ComponentModel; using UniformTypeIdentifiers; diff --git a/src/quicklookthumbnailing.cs b/src/quicklookthumbnailing.cs index 8a60e2e81e34..7fb291c0524a 100644 --- a/src/quicklookthumbnailing.cs +++ b/src/quicklookthumbnailing.cs @@ -1,10 +1,6 @@ // Copyright 2019 Microsoft Corporation -using System; - using CoreGraphics; -using Foundation; -using ObjCRuntime; using UniformTypeIdentifiers; #if MONOMAC diff --git a/src/replaykit.cs b/src/replaykit.cs index a24275088c90..8d4294ec625c 100644 --- a/src/replaykit.cs +++ b/src/replaykit.cs @@ -7,11 +7,8 @@ // Copyright 2015 Xamarin Inc. All rights reserved. // -using System; using AVFoundation; using CoreMedia; -using ObjCRuntime; -using Foundation; using CoreGraphics; #if MONOMAC using AppKit; diff --git a/src/safariservices.cs b/src/safariservices.cs index 255a4a77a1b0..8adf2251aec7 100644 --- a/src/safariservices.cs +++ b/src/safariservices.cs @@ -9,15 +9,11 @@ // Copyright 2019 Microsoft Corporation // -using System; - #if HAS_BROWSERENGINEKIT using BrowserEngineKit; #else using BEWebAppManifest = Foundation.NSObject; #endif -using Foundation; -using ObjCRuntime; #if !MONOMAC using UIKit; using NSRunningApplication = System.Object; diff --git a/src/safetykit.cs b/src/safetykit.cs index b3cea4287465..f69a3ef3b79e 100644 --- a/src/safetykit.cs +++ b/src/safetykit.cs @@ -8,10 +8,7 @@ // Copyright 2022, 2024 Microsoft Corporation. // -using System; using CoreLocation; -using Foundation; -using ObjCRuntime; namespace SafetyKit { diff --git a/src/scenekit.cs b/src/scenekit.cs index 86e53b2b83b0..909f95d96120 100644 --- a/src/scenekit.cs +++ b/src/scenekit.cs @@ -25,14 +25,11 @@ // - SCNParticleSystem (not important) // -using System; using System.ComponentModel; using System.Diagnostics; using AVFoundation; using CoreFoundation; -using Foundation; -using ObjCRuntime; using NMatrix4 = global::CoreGraphics.NMatrix4; using NVector3 = global::CoreGraphics.NVector3; diff --git a/src/screencapturekit.cs b/src/screencapturekit.cs index f80f8430be46..8d5b5b188164 100644 --- a/src/screencapturekit.cs +++ b/src/screencapturekit.cs @@ -7,13 +7,10 @@ // Copyright (C) Microsoft Corporation. All rights reserved. // -using System; using System.ComponentModel; using AVFoundation; -using ObjCRuntime; using CoreVideo; using CoreGraphics; -using Foundation; using CoreFoundation; using CoreMedia; using UniformTypeIdentifiers; diff --git a/src/screentime.cs b/src/screentime.cs index d6b97041d6a7..c5dafeca781a 100644 --- a/src/screentime.cs +++ b/src/screentime.cs @@ -1,6 +1,3 @@ -using System; -using ObjCRuntime; -using Foundation; using CoreFoundation; #if !MONOMAC diff --git a/src/scriptingbridge.cs b/src/scriptingbridge.cs index e4ed6e36e8df..2c57bb4d072e 100644 --- a/src/scriptingbridge.cs +++ b/src/scriptingbridge.cs @@ -25,10 +25,7 @@ // // scriptingbridge.cs: Bindings for the ScriptingBridge.Framework API // -using System; using AppKit; -using Foundation; -using ObjCRuntime; namespace ScriptingBridge { diff --git a/src/searchkit.cs b/src/searchkit.cs index 460507db7ee1..85b0c9179e53 100644 --- a/src/searchkit.cs +++ b/src/searchkit.cs @@ -2,10 +2,6 @@ // searchkit.cs: Definitions for AppKit // -using System; -using Foundation; -using ObjCRuntime; - namespace SearchKit { [Static] interface SKTextAnalysisKeys { diff --git a/src/security.cs b/src/security.cs index a763ff23a1f1..abdf41747700 100644 --- a/src/security.cs +++ b/src/security.cs @@ -7,9 +7,6 @@ // Copyright 2013-2014 Xamarin Inc. // -using System; -using Foundation; -using ObjCRuntime; using CoreFoundation; namespace Security { diff --git a/src/securityui.cs b/src/securityui.cs index 40001d64694b..3fadcebe7174 100644 --- a/src/securityui.cs +++ b/src/securityui.cs @@ -1,11 +1,8 @@ -using System; #if HAS_APPKIT using AppKit; #endif -using Foundation; -using ObjCRuntime; using Security; #if HAS_UIKIT diff --git a/src/sensitivecontentanalysis.cs b/src/sensitivecontentanalysis.cs index 05274bb1119e..fe1bb8a40730 100644 --- a/src/sensitivecontentanalysis.cs +++ b/src/sensitivecontentanalysis.cs @@ -1,9 +1,6 @@ -using System; using AVFoundation; using CoreGraphics; using CoreVideo; -using Foundation; -using ObjCRuntime; using VideoToolbox; namespace SensitiveContentAnalysis { diff --git a/src/sensorkit.cs b/src/sensorkit.cs index 81ee70d79415..411847be0dc5 100644 --- a/src/sensorkit.cs +++ b/src/sensorkit.cs @@ -1,8 +1,4 @@ -using System; -using System.Runtime.InteropServices; -using Foundation; -using ObjCRuntime; using CoreMedia; using Speech; using SoundAnalysis; diff --git a/src/servicemanagement.cs b/src/servicemanagement.cs index 47b44b30a5db..d6fb7104b2ff 100644 --- a/src/servicemanagement.cs +++ b/src/servicemanagement.cs @@ -1,7 +1,3 @@ -using System; - -using Foundation; -using ObjCRuntime; namespace ServiceManagement { [Native] diff --git a/src/sharedwithyou.cs b/src/sharedwithyou.cs index 8feea6198303..2c3244884b7e 100644 --- a/src/sharedwithyou.cs +++ b/src/sharedwithyou.cs @@ -7,15 +7,11 @@ // Copyright 2022 Microsoft Corporation All rights reserved. // -using System; - using AVFoundation; using CoreFoundation; using CoreGraphics; -using Foundation; using SharedWithYouCore; using UniformTypeIdentifiers; -using ObjCRuntime; #if MONOMAC using AppKit; diff --git a/src/sharedwithyoucore.cs b/src/sharedwithyoucore.cs index d6c272118711..52ccea5d63c6 100644 --- a/src/sharedwithyoucore.cs +++ b/src/sharedwithyoucore.cs @@ -7,12 +7,8 @@ // Copyright 2022 Microsoft Corporation All rights reserved. // -using System; - using AVFoundation; using CoreFoundation; -using Foundation; -using ObjCRuntime; namespace SharedWithYouCore { diff --git a/src/shazamkit.cs b/src/shazamkit.cs index d6fa75862c04..0396e72a5128 100644 --- a/src/shazamkit.cs +++ b/src/shazamkit.cs @@ -1,7 +1,4 @@ -using System; using CoreGraphics; -using Foundation; -using ObjCRuntime; using AVFoundation; namespace ShazamKit { diff --git a/src/social.cs b/src/social.cs index a0bf49739679..0071bfd6b038 100644 --- a/src/social.cs +++ b/src/social.cs @@ -7,9 +7,6 @@ // Copyright 2012-2013 Xamarin Inc // -using System; -using ObjCRuntime; -using Foundation; using Accounts; #if !MONOMAC diff --git a/src/soundanalysis.cs b/src/soundanalysis.cs index 9e47890484bf..d1e994e29728 100644 --- a/src/soundanalysis.cs +++ b/src/soundanalysis.cs @@ -7,11 +7,8 @@ // Copyright 2019 Microsoft Corporation All rights reserved. // -using System; using AVFoundation; using CoreML; -using Foundation; -using ObjCRuntime; using CoreMedia; namespace SoundAnalysis { diff --git a/src/speech.cs b/src/speech.cs index 2697e87a646b..0fa5985fd2d5 100644 --- a/src/speech.cs +++ b/src/speech.cs @@ -9,11 +9,8 @@ // Copyright 2019 Microsoft Corporation All rights reserved. // -using System; using AVFoundation; using CoreMedia; -using Foundation; -using ObjCRuntime; using System.ComponentModel; diff --git a/src/spritekit.cs b/src/spritekit.cs index c4cec7cd84c1..5a7035f1ba8e 100644 --- a/src/spritekit.cs +++ b/src/spritekit.cs @@ -6,15 +6,12 @@ // // Copyright 2013-2015 Xamarin Inc -using System; using System.ComponentModel; using CoreImage; using GameplayKit; using AVFoundation; -using ObjCRuntime; -using Foundation; using CoreFoundation; using CoreGraphics; using CoreVideo; diff --git a/src/storekit.cs b/src/storekit.cs index f7590ea26ebd..23d61f95b735 100644 --- a/src/storekit.cs +++ b/src/storekit.cs @@ -13,11 +13,9 @@ using System.ComponentModel; using BackgroundAssets; -using ObjCRuntime; -using Foundation; -using CoreFoundation; using CoreGraphics; using StoreKit; + #if MONOMAC using AppKit; using UIViewController = AppKit.NSViewController; @@ -25,7 +23,6 @@ #else using UIKit; #endif -using System; #nullable enable diff --git a/src/symbols.cs b/src/symbols.cs index 0dfac00fee96..5d5952c65218 100644 --- a/src/symbols.cs +++ b/src/symbols.cs @@ -1,8 +1,4 @@ using CoreFoundation; -using ObjCRuntime; -using Foundation; - -using System; namespace Symbols { [TV (17, 0), Mac (14, 0), iOS (17, 0), MacCatalyst (17, 0)] diff --git a/src/systemconfiguration.cs b/src/systemconfiguration.cs index 2b63e47dd2dd..983e60b36cbf 100644 --- a/src/systemconfiguration.cs +++ b/src/systemconfiguration.cs @@ -7,10 +7,6 @@ // Copyright 2014 Xamarin Inc. // -using System; -using Foundation; -using ObjCRuntime; - namespace SystemConfiguration { /// Deprecated: Use instead. A class that encapsulates the Captive Network system component, which is responsible for detecting networks that require user interaction prior to providing Internet access. diff --git a/src/threadnetwork.cs b/src/threadnetwork.cs index d783470d1f69..72a40c107ae4 100644 --- a/src/threadnetwork.cs +++ b/src/threadnetwork.cs @@ -1,8 +1,4 @@ using CoreFoundation; -using ObjCRuntime; -using Foundation; - -using System; namespace ThreadNetwork { diff --git a/src/tvmlkit.cs b/src/tvmlkit.cs index b94467f895fe..2dfb0d59419b 100644 --- a/src/tvmlkit.cs +++ b/src/tvmlkit.cs @@ -1,12 +1,9 @@ // Copyright 2015 Xamarin Inc. // Copyright 2018 Microsoft Corporation -using System; using System.ComponentModel; using AVFoundation; -using Foundation; using JavaScriptCore; -using ObjCRuntime; using UIKit; namespace TVMLKit { diff --git a/src/tvservices.cs b/src/tvservices.cs index 9a5a9f0043e9..33072e3f4f2d 100644 --- a/src/tvservices.cs +++ b/src/tvservices.cs @@ -1,10 +1,7 @@ // Copyright 2015 Xamarin Inc. // Copyright 2019 Microsoft Corporation -using System; using CoreGraphics; -using Foundation; -using ObjCRuntime; namespace TVServices { diff --git a/src/tvuikit.cs b/src/tvuikit.cs index 94fad89ef95f..e20395f9eb82 100644 --- a/src/tvuikit.cs +++ b/src/tvuikit.cs @@ -1,10 +1,7 @@ // Copyright 2018 Microsoft Corporation -using System; using System.ComponentModel; using CoreGraphics; -using Foundation; -using ObjCRuntime; using UIKit; namespace TVUIKit { diff --git a/src/twitter.cs b/src/twitter.cs index 5e77b1740328..57acdd0650ea 100644 --- a/src/twitter.cs +++ b/src/twitter.cs @@ -5,9 +5,6 @@ // Miguel de Icaza // -using System; -using Foundation; -using ObjCRuntime; using UIKit; using Twitter; using Accounts; diff --git a/src/uikit.cs b/src/uikit.cs index 7ade40c19e1d..ecc1328242f4 100644 --- a/src/uikit.cs +++ b/src/uikit.cs @@ -10,8 +10,6 @@ // Copyrigh 2011-2013, Xamarin Inc. // Copyrigh 2019, Microsoft Corporation. // -using ObjCRuntime; -using Foundation; using CoreGraphics; using CoreLocation; using UIKit; @@ -55,7 +53,6 @@ using NSToolbarItem = Foundation.NSObject; #endif -using System; using System.ComponentModel; #nullable enable diff --git a/src/uniformtypeidentifiers.cs b/src/uniformtypeidentifiers.cs index ba8c034816e7..5a0da25cff88 100644 --- a/src/uniformtypeidentifiers.cs +++ b/src/uniformtypeidentifiers.cs @@ -1,7 +1,4 @@ -using System; using System.ComponentModel; -using Foundation; -using ObjCRuntime; namespace UniformTypeIdentifiers { diff --git a/src/usernotifications.cs b/src/usernotifications.cs index acaebf42e785..6a18a1dd2b36 100644 --- a/src/usernotifications.cs +++ b/src/usernotifications.cs @@ -7,9 +7,6 @@ // Copyright 2016 Xamarin Inc. All rights reserved. // -using System; -using Foundation; -using ObjCRuntime; using CoreGraphics; using CoreLocation; using CoreMedia; diff --git a/src/usernotificationsui.cs b/src/usernotificationsui.cs index b7a4dffc77fd..037d9079c60e 100644 --- a/src/usernotificationsui.cs +++ b/src/usernotificationsui.cs @@ -7,10 +7,7 @@ // Copyright 2016 Xamarin Inc. All rights reserved. // -using System; using CoreGraphics; -using Foundation; -using ObjCRuntime; #if MONOMAC using AppKit; using UIColor = AppKit.NSColor; diff --git a/src/videosubscriberaccount.cs b/src/videosubscriberaccount.cs index 32e512405aab..3f967f2fb81e 100644 --- a/src/videosubscriberaccount.cs +++ b/src/videosubscriberaccount.cs @@ -8,10 +8,7 @@ // Copyright 2018-2019 Microsoft Corporation. // -using System; using System.ComponentModel; -using Foundation; -using ObjCRuntime; #if MONOMAC using UIViewController = AppKit.NSViewController; #else diff --git a/src/videotoolbox.cs b/src/videotoolbox.cs index 71da596d67d1..85f89d3fadd6 100644 --- a/src/videotoolbox.cs +++ b/src/videotoolbox.cs @@ -6,14 +6,11 @@ // // Copyright 2014 Xamarin Inc // -using System; using System.Collections.Generic; +using AVFoundation; using CoreGraphics; -using Foundation; -using ObjCRuntime; using CoreMedia; -using AVFoundation; using CoreVideo; using Metal; diff --git a/src/vision.cs b/src/vision.cs index e6198705863e..6e633095bff6 100644 --- a/src/vision.cs +++ b/src/vision.cs @@ -7,7 +7,6 @@ // Copyright 2017 Xamarin Inc. All rights reserved. // -using System; using System.Numerics; using CoreFoundation; using CoreGraphics; @@ -15,9 +14,7 @@ using CoreMedia; using CoreML; using CoreVideo; -using Foundation; using Metal; -using ObjCRuntime; using ImageIO; using AVFoundation; diff --git a/src/visionkit.cs b/src/visionkit.cs index 1ce56752ba54..7f2929e11fc0 100644 --- a/src/visionkit.cs +++ b/src/visionkit.cs @@ -7,9 +7,6 @@ // Copyright 2019 Microsoft Corporation. All rights reserved. // -using System; -using Foundation; -using ObjCRuntime; using UIKit; namespace VisionKit { diff --git a/src/watchconnectivity.cs b/src/watchconnectivity.cs index eff33775d8f8..c71d7c86fd51 100644 --- a/src/watchconnectivity.cs +++ b/src/watchconnectivity.cs @@ -7,10 +7,7 @@ // Copyright 2015 Xamarin Inc. All rights reserved. // -using System; using System.ComponentModel; -using ObjCRuntime; -using Foundation; namespace WatchConnectivity { diff --git a/src/webkit.cs b/src/webkit.cs index 79134947c973..ec00b3c75303 100644 --- a/src/webkit.cs +++ b/src/webkit.cs @@ -22,10 +22,7 @@ // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // -using System; -using Foundation; using CoreGraphics; -using ObjCRuntime; using JavaScriptCore; using Network; using Security; diff --git a/src/xkit.cs b/src/xkit.cs index 1a7ef1f6f09d..cc0eceb7070f 100644 --- a/src/xkit.cs +++ b/src/xkit.cs @@ -1,10 +1,7 @@ // This file contains api definitions shared between AppKit and UIKit -using System; using System.Diagnostics; using System.ComponentModel; -using Foundation; -using ObjCRuntime; using CoreAnimation; using CoreGraphics; using CoreText; diff --git a/tests/BundledResources/ResourcesTest.cs b/tests/BundledResources/ResourcesTest.cs index f01e8da149df..9b1917c7a726 100644 --- a/tests/BundledResources/ResourcesTest.cs +++ b/tests/BundledResources/ResourcesTest.cs @@ -7,13 +7,8 @@ // Copyright 2013 Xamarin Inc. All rights reserved. // -using System; using System.IO; using System.Linq; -using NUnit.Framework; - -using Foundation; -using ObjCRuntime; namespace BundledResources { diff --git a/tests/EmbeddedResources/ResourcesTest.cs b/tests/EmbeddedResources/ResourcesTest.cs index 752bd22dd9ad..04f35a6856e8 100644 --- a/tests/EmbeddedResources/ResourcesTest.cs +++ b/tests/EmbeddedResources/ResourcesTest.cs @@ -7,16 +7,11 @@ // Copyright 2013 Xamarin Inc. All rights reserved. // -using System; using System.IO; using System.Resources; using System.Globalization; using System.Reflection; using System.Reflection.Emit; -using NUnit.Framework; - -using Foundation; -using ObjCRuntime; namespace EmbeddedResources { diff --git a/tests/bgen/DotNetGlobals.cs b/tests/bgen/DotNetGlobals.cs new file mode 100644 index 000000000000..1131ec735ab7 --- /dev/null +++ b/tests/bgen/DotNetGlobals.cs @@ -0,0 +1,12 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +global using System; +global using System.Collections.Generic; +global using System.Runtime.InteropServices; + +global using NUnit.Framework; + +global using Foundation; +global using ObjCRuntime; + diff --git a/tests/bindings-test/ApiDefinition.cs b/tests/bindings-test/ApiDefinition.cs index 5fc08b3b9dee..8cfda92ca06f 100644 --- a/tests/bindings-test/ApiDefinition.cs +++ b/tests/bindings-test/ApiDefinition.cs @@ -1,10 +1,8 @@ -using System; using System.Numerics; using CoreGraphics; using CoreMedia; -using ObjCRuntime; -using Foundation; + #if __MACOS__ using AppKit; #else diff --git a/tests/bindings-test/ApiProtocol.cs b/tests/bindings-test/ApiProtocol.cs index aaac3b4190bd..c4e4eae2ccbf 100644 --- a/tests/bindings-test/ApiProtocol.cs +++ b/tests/bindings-test/ApiProtocol.cs @@ -1,7 +1,4 @@ -using System; -using ObjCRuntime; -using Foundation; #if __MACOS__ using AppKit; #else diff --git a/tests/bindings-test/CodeBehind.cs b/tests/bindings-test/CodeBehind.cs index 3173db52e150..867a24a2aa53 100644 --- a/tests/bindings-test/CodeBehind.cs +++ b/tests/bindings-test/CodeBehind.cs @@ -1,8 +1,3 @@ -using System; -using System.Runtime.InteropServices; - -using Foundation; -using ObjCRuntime; using MatrixFloat2x2 = global::CoreGraphics.NMatrix2; using MatrixFloat3x3 = global::CoreGraphics.NMatrix3; diff --git a/tests/bindings-test/Messaging.cs b/tests/bindings-test/Messaging.cs index bb6e8250ba7f..d9a6d2b94140 100644 --- a/tests/bindings-test/Messaging.cs +++ b/tests/bindings-test/Messaging.cs @@ -1,5 +1,3 @@ -using System; -using System.Runtime.InteropServices; namespace ObjCRuntime { static class Messaging { diff --git a/tests/bindings-test/ProtocolTest.cs b/tests/bindings-test/ProtocolTest.cs index 42171ecf174c..eb87ef8fe459 100644 --- a/tests/bindings-test/ProtocolTest.cs +++ b/tests/bindings-test/ProtocolTest.cs @@ -1,14 +1,6 @@ -using System; -using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; -using System.Runtime.InteropServices; using System.Linq; -using Foundation; -using ObjCRuntime; - -using NUnit.Framework; - using Bindings.Test; namespace Xamarin.BindingTests { diff --git a/tests/bindings-test/Registrar.cs b/tests/bindings-test/Registrar.cs index 4912095c6397..7fec87bf5cd5 100644 --- a/tests/bindings-test/Registrar.cs +++ b/tests/bindings-test/Registrar.cs @@ -7,13 +7,8 @@ // Copyright 2015 Xamarin Inc. All rights reserved. // -using System; using System.Diagnostics.CodeAnalysis; using System.Reflection; -using System.Runtime.InteropServices; - -using Foundation; -using ObjCRuntime; namespace XamarinTests.ObjCRuntime { diff --git a/tests/bindings-test/RegistrarBindingTest.cs b/tests/bindings-test/RegistrarBindingTest.cs index bd81e6453cad..93bba2d9c9e2 100644 --- a/tests/bindings-test/RegistrarBindingTest.cs +++ b/tests/bindings-test/RegistrarBindingTest.cs @@ -1,11 +1,4 @@ -using System; using System.Threading; -using System.Runtime.InteropServices; - -using Foundation; -using ObjCRuntime; - -using NUnit.Framework; using Bindings.Test; diff --git a/tests/bindings-test/RuntimeTest.cs b/tests/bindings-test/RuntimeTest.cs index ebfd5de6b4da..4cebd518ae96 100644 --- a/tests/bindings-test/RuntimeTest.cs +++ b/tests/bindings-test/RuntimeTest.cs @@ -1,11 +1,5 @@ -using System; using System.Threading; -using Foundation; -using ObjCRuntime; - -using NUnit.Framework; - using Bindings.Test; namespace Xamarin.Tests { diff --git a/tests/bindings-test/StructsAndEnums.cs b/tests/bindings-test/StructsAndEnums.cs index 589c8b99086f..5263cdfe2db0 100644 --- a/tests/bindings-test/StructsAndEnums.cs +++ b/tests/bindings-test/StructsAndEnums.cs @@ -1,8 +1,4 @@ -using System; -using System.Runtime.InteropServices; -using Foundation; -using ObjCRuntime; using SceneKit; using MatrixFloat2x2 = global::CoreGraphics.NMatrix2; diff --git a/tests/bindings-test2/BindingTest.cs b/tests/bindings-test2/BindingTest.cs index 51921e5d5b07..7da68e8bbfc5 100644 --- a/tests/bindings-test2/BindingTest.cs +++ b/tests/bindings-test2/BindingTest.cs @@ -1,13 +1,5 @@ -using System; -using System.Collections.Generic; -using System.Runtime.InteropServices; using System.Linq; -using Foundation; -using ObjCRuntime; - -using NUnit.Framework; - using Bindings.Test2; namespace Xamarin.BindingTests2 { diff --git a/tests/cecil-tests/DotNetGlobals.cs b/tests/cecil-tests/DotNetGlobals.cs new file mode 100644 index 000000000000..45337bed7678 --- /dev/null +++ b/tests/cecil-tests/DotNetGlobals.cs @@ -0,0 +1,8 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +global using System; +global using System.Collections.Generic; +global using System.Runtime.InteropServices; + +global using NUnit.Framework; diff --git a/tests/common/ApiTest.cs b/tests/common/ApiTest.cs index 12292b2b32e2..6828a3fa1e70 100644 --- a/tests/common/ApiTest.cs +++ b/tests/common/ApiTest.cs @@ -1,11 +1,7 @@ // Tests are common to both mtouch and mmp -using System; using System.IO; -using System.Collections.Generic; using System.Linq; -using NUnit.Framework; - using Mono.Cecil; using Xamarin.Tests; diff --git a/tests/common/AppDelegate.cs b/tests/common/AppDelegate.cs index 2e3da78047c6..cb322e2e2b75 100644 --- a/tests/common/AppDelegate.cs +++ b/tests/common/AppDelegate.cs @@ -1,14 +1,10 @@ -using System; -using System.Collections.Generic; using System.Reflection; -using Foundation; #if !__MACOS__ using UIKit; #endif using MonoTouch.NUnit.UI; -using NUnit.Framework; using NUnit.Framework.Internal; // Disable until we get around to enable + fix any issues. diff --git a/tests/common/Assert.cs b/tests/common/Assert.cs index 80f3fdd2c9d8..5f1b7bb0f344 100644 --- a/tests/common/Assert.cs +++ b/tests/common/Assert.cs @@ -1,14 +1,7 @@ -using System; -using System.Collections.Generic; using System.Globalization; using System.Resources; -using System.Runtime.InteropServices; using System.Diagnostics; -using Foundation; -using ObjCRuntime; - -using NUnit.Framework; using NUnit.Framework.Constraints; namespace MonoTests { diff --git a/tests/common/AssertHelpers.cs b/tests/common/AssertHelpers.cs index 48c3d7e1f45b..cb4aba3fe4ca 100644 --- a/tests/common/AssertHelpers.cs +++ b/tests/common/AssertHelpers.cs @@ -1,9 +1,6 @@ -using System; using System.Text; using System.Text.RegularExpressions; -using NUnit.Framework; - namespace Xamarin.Tests { public delegate void Action (); diff --git a/tests/common/BinLog.cs b/tests/common/BinLog.cs index 08ed3043e39a..f02f5123bfec 100644 --- a/tests/common/BinLog.cs +++ b/tests/common/BinLog.cs @@ -1,7 +1,5 @@ #nullable enable -using System; -using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.IO; using System.Linq; diff --git a/tests/common/BundlerTest.cs b/tests/common/BundlerTest.cs index 31f85c6356fd..1d9e6182c588 100644 --- a/tests/common/BundlerTest.cs +++ b/tests/common/BundlerTest.cs @@ -1,11 +1,7 @@ // Tests are common to both mtouch and mmp -using System; using System.IO; -using System.Collections.Generic; using System.Linq; -using NUnit.Framework; - using Mono.Cecil; using Xamarin.Tests; diff --git a/tests/common/BundlerTool.cs b/tests/common/BundlerTool.cs index 73c8d897f595..7a5754620653 100644 --- a/tests/common/BundlerTool.cs +++ b/tests/common/BundlerTool.cs @@ -1,11 +1,7 @@ -using System; -using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; -using NUnit.Framework; - using Xamarin.Utils; namespace Xamarin.Tests { diff --git a/tests/common/Configuration.cs b/tests/common/Configuration.cs index 07a6e12f8ec8..c3cb27492503 100644 --- a/tests/common/Configuration.cs +++ b/tests/common/Configuration.cs @@ -1,10 +1,7 @@ -using System; using System.Collections; -using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.IO; using System.Linq; -using System.Runtime.InteropServices; using System.Text; using System.Threading; using Xamarin.Utils; diff --git a/tests/common/ConfigurationNUnit.cs b/tests/common/ConfigurationNUnit.cs index ef093a9b9bf0..85914cc44b00 100644 --- a/tests/common/ConfigurationNUnit.cs +++ b/tests/common/ConfigurationNUnit.cs @@ -1,14 +1,9 @@ -using System; using System.Collections; -using System.Collections.Generic; using System.IO; using System.Linq; -using System.Runtime.InteropServices; using System.Text; using System.Threading; -using NUnit.Framework; - using Xamarin.Utils; #nullable disable // until we get around to fixing this file diff --git a/tests/common/ConfigurationXUnit.cs b/tests/common/ConfigurationXUnit.cs index 0b965efca8f9..61f955e350f0 100644 --- a/tests/common/ConfigurationXUnit.cs +++ b/tests/common/ConfigurationXUnit.cs @@ -1,5 +1,3 @@ -using System; -using System.Collections.Generic; using System.Linq; using System.Reflection; using Xamarin.Utils; diff --git a/tests/common/DotNet.cs b/tests/common/DotNet.cs index f39ec36b451c..12b6b6bd66c8 100644 --- a/tests/common/DotNet.cs +++ b/tests/common/DotNet.cs @@ -1,7 +1,5 @@ //#define VERBOSE_COMPARISON -using System; -using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; @@ -9,8 +7,6 @@ using Xamarin.Utils; -using NUnit.Framework; - #nullable enable namespace Xamarin.Tests { diff --git a/tests/common/ErrorHelper.tests.cs b/tests/common/ErrorHelper.tests.cs index bb833f331541..eb2c7d952b10 100644 --- a/tests/common/ErrorHelper.tests.cs +++ b/tests/common/ErrorHelper.tests.cs @@ -2,8 +2,6 @@ #nullable enable -using System; -using System.Collections.Generic; using System.Linq; using Mono.Cecil; diff --git a/tests/common/ExecutionHelper.cs b/tests/common/ExecutionHelper.cs index 7bc4e94b1be4..efee93aaa5a0 100644 --- a/tests/common/ExecutionHelper.cs +++ b/tests/common/ExecutionHelper.cs @@ -1,5 +1,3 @@ -using System; -using System.Collections.Generic; using System.Linq; using System.Text; using Xamarin.Utils; diff --git a/tests/common/Extensions.cs b/tests/common/Extensions.cs index d6e7d1d3eecb..8b4808fd460a 100644 --- a/tests/common/Extensions.cs +++ b/tests/common/Extensions.cs @@ -1,7 +1,5 @@ using System.Text; -using Foundation; - static class Extensions { // [NSData description] changed its format in Xcode 11 beta 1. // This method tries to hide that from tests, by producing the format from previous OS versions, diff --git a/tests/common/GlobalUsings.cs b/tests/common/GlobalUsings.cs new file mode 100644 index 000000000000..9f7637a0e6f9 --- /dev/null +++ b/tests/common/GlobalUsings.cs @@ -0,0 +1,14 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +global using System; +global using System.Collections.Generic; +global using System.Runtime.InteropServices; + +global using CoreFoundation; +global using Foundation; +global using ObjCRuntime; + +#if !EXCLUDE_NUNITLITE_REFERENCE +global using NUnit.Framework; +#endif diff --git a/tests/common/PListAsserts.cs b/tests/common/PListAsserts.cs index bd80c3b4e3da..d6bf7cdabf76 100644 --- a/tests/common/PListAsserts.cs +++ b/tests/common/PListAsserts.cs @@ -1,12 +1,9 @@ -using System; using System.IO; using System.Linq; using Xamarin.MacDev; using Xamarin.Utils; -using NUnit.Framework; - #nullable enable namespace Xamarin.Tests { diff --git a/tests/common/PlatformInfo.cs b/tests/common/PlatformInfo.cs index f1ea1ccdec16..f88e7abd8b46 100644 --- a/tests/common/PlatformInfo.cs +++ b/tests/common/PlatformInfo.cs @@ -7,15 +7,11 @@ // // Copyright 2015 Xamarin Inc. All rights reserved. -using System; using System.Diagnostics.CodeAnalysis; using System.Linq; using System.Reflection; -using System.Collections.Generic; using System.Runtime.Versioning; -using ObjCRuntime; -using Foundation; #if !(MONOMAC || __MACOS__) using UIKit; #endif diff --git a/tests/common/ProductTests.cs b/tests/common/ProductTests.cs index ffd9d653ba9e..cd00328e78d4 100644 --- a/tests/common/ProductTests.cs +++ b/tests/common/ProductTests.cs @@ -2,15 +2,11 @@ * Shared unit tests between XI and XM. **/ -using System; -using System.Collections.Generic; using System.IO; using System.Linq; using System.Xml; using System.Text; -using NUnit.Framework; - using Xamarin; namespace Xamarin.Tests { diff --git a/tests/common/Profile.cs b/tests/common/Profile.cs index 691475ad6718..1b0dc857e720 100644 --- a/tests/common/Profile.cs +++ b/tests/common/Profile.cs @@ -1,4 +1,3 @@ -using System; using Xamarin.Utils; namespace Xamarin.Tests { diff --git a/tests/common/TestAssemblyLoader.cs b/tests/common/TestAssemblyLoader.cs index 2d3d2bb91369..7d95e53e8aa4 100644 --- a/tests/common/TestAssemblyLoader.cs +++ b/tests/common/TestAssemblyLoader.cs @@ -1,5 +1,3 @@ -using System; -using System.Collections.Generic; using System.Reflection; #nullable enable diff --git a/tests/common/TestRuntime.RunAsync.cs b/tests/common/TestRuntime.RunAsync.cs index 5e5af511bcca..3a722449bd17 100644 --- a/tests/common/TestRuntime.RunAsync.cs +++ b/tests/common/TestRuntime.RunAsync.cs @@ -2,7 +2,6 @@ #define CAN_SHOW_ASYNC_UI #endif -using System; using System.Diagnostics; using System.Diagnostics.CodeAnalysis; using System.Linq; @@ -10,9 +9,6 @@ using System.Threading.Tasks; using CoreGraphics; -using Foundation; - -using NUnit.Framework; #if HAS_UIKIT using UIKit; diff --git a/tests/common/TestRuntime.cs b/tests/common/TestRuntime.cs index 8d1cdcf5754c..c53652fb2745 100644 --- a/tests/common/TestRuntime.cs +++ b/tests/common/TestRuntime.cs @@ -2,14 +2,11 @@ #define MONOMAC #endif -using System; -using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.IO; using System.Linq; using System.Net; using System.Net.Http; -using System.Runtime.InteropServices; using System.Reflection; using System.Reflection.Emit; using System.Runtime.CompilerServices; @@ -17,8 +14,6 @@ using AVFoundation; using CoreBluetooth; -using CoreFoundation; -using Foundation; #if !__TVOS__ using Contacts; #endif @@ -34,12 +29,9 @@ using MediaPlayer; using UIKit; #endif -using ObjCRuntime; using Xamarin.Utils; -using NUnit.Framework; - #nullable enable partial class TestRuntime { diff --git a/tests/common/Tool.cs b/tests/common/Tool.cs index 0bd8879c058c..d3ae620c4f7d 100644 --- a/tests/common/Tool.cs +++ b/tests/common/Tool.cs @@ -1,11 +1,8 @@ -using System; -using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Text.RegularExpressions; -using NUnit.Framework; using Xamarin.Utils; namespace Xamarin.Tests { diff --git a/tests/common/mac/Mac.cs b/tests/common/mac/Mac.cs index 3b2965594ccf..0b0f29870890 100644 --- a/tests/common/mac/Mac.cs +++ b/tests/common/mac/Mac.cs @@ -8,8 +8,6 @@ // Copyright 2012-2015 Xamarin Inc. All rights reserved. // -using System; - namespace Xamarin.Tests { public static class Mac { public static readonly Version Version_10_10 = new Version (10, 10); diff --git a/tests/common/mac/MacMain.cs b/tests/common/mac/MacMain.cs index 3787150ac0cc..8fc573004062 100644 --- a/tests/common/mac/MacMain.cs +++ b/tests/common/mac/MacMain.cs @@ -1,8 +1,5 @@ -using System; -using System.Collections.Generic; using System.Linq; using System.Reflection; -using System.Runtime.InteropServices; using System.Threading; using System.Threading.Tasks; diff --git a/tests/common/mac/ProjectTestHelpers.cs b/tests/common/mac/ProjectTestHelpers.cs index 330dfcfaa489..38cbbeecf3f9 100644 --- a/tests/common/mac/ProjectTestHelpers.cs +++ b/tests/common/mac/ProjectTestHelpers.cs @@ -1,11 +1,8 @@ -using System; -using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Text; using System.Text.RegularExpressions; -using NUnit.Framework; using System.Reflection; using Xamarin.Utils; using Xamarin.Tests; @@ -470,7 +467,6 @@ open AppKit 0"; const string MainTemplate = @" -using Foundation; using AppKit; namespace TestCase diff --git a/tests/common/shared-dotnet.csproj b/tests/common/shared-dotnet.csproj index 645754020113..766337ebb7d3 100644 --- a/tests/common/shared-dotnet.csproj +++ b/tests/common/shared-dotnet.csproj @@ -69,6 +69,11 @@ + + + + + @@ -103,6 +108,10 @@ + + $(DefineConstants);EXCLUDE_NUNITLITE_REFERENCE + $(DefineConstants);EXCLUDE_TOUCH_UNIT_REFERENCE + diff --git a/tests/dotnet/UnitTests/GlobalImports.cs b/tests/dotnet/UnitTests/GlobalImports.cs index 443ecc6a861f..0072819f06a4 100644 --- a/tests/dotnet/UnitTests/GlobalImports.cs +++ b/tests/dotnet/UnitTests/GlobalImports.cs @@ -2,6 +2,7 @@ global using System.Collections.Generic; global using System.IO; global using System.Linq; +global using System.Runtime.InteropServices; global using System.Text; global using NUnit.Framework; diff --git a/tests/dotnet/UnitTests/ProjectTest.cs b/tests/dotnet/UnitTests/ProjectTest.cs index ea44dd156a99..95ce825d76a2 100644 --- a/tests/dotnet/UnitTests/ProjectTest.cs +++ b/tests/dotnet/UnitTests/ProjectTest.cs @@ -1950,21 +1950,6 @@ public void AppWithGenericLibraryReference (ApplePlatform platform, string runti ExecuteWithMagicWordAndAssert (platform, runtimeIdentifiers, appExecutable); } - [TestCase (ApplePlatform.MacCatalyst, "maccatalyst-x64")] - public void OlderCSharpLanguage (ApplePlatform platform, string runtimeIdentifier) - { - var project = "MySimpleApp"; - Configuration.IgnoreIfIgnoredPlatform (platform); - Configuration.AssertRuntimeIdentifiersAvailable (platform, runtimeIdentifier); - - var project_path = GetProjectPath (project, platform: platform); - Clean (project_path); - var properties = GetDefaultProperties (runtimeIdentifier); - properties ["LangVersion"] = "8"; - properties ["ExcludeTouchUnitReference"] = "true"; - DotNet.AssertBuild (project_path, properties); - } - // This test can be removed in .NET 7 [TestCase (ApplePlatform.iOS)] [TestCase (ApplePlatform.TVOS)] diff --git a/tests/framework-test/FrameworkTests.cs b/tests/framework-test/FrameworkTests.cs index b5086d32b5ef..da279d818e21 100644 --- a/tests/framework-test/FrameworkTests.cs +++ b/tests/framework-test/FrameworkTests.cs @@ -7,14 +7,7 @@ // Copyright 2015 Xamarin Inc. All rights reserved. // -using System; -using System.Runtime.InteropServices; - using MonoTouch; -using Foundation; -using ObjCRuntime; - -using NUnit.Framework; using Bindings.Test; diff --git a/tests/generator/Asserts.cs b/tests/generator/Asserts.cs index d1cb26eedd1e..b98407d57453 100644 --- a/tests/generator/Asserts.cs +++ b/tests/generator/Asserts.cs @@ -1,10 +1,7 @@ -using System; using Mono.Cecil; using Mono.Cecil.Cil; -using NUnit.Framework; - namespace GeneratorTests { public static class Asserts { public static void DoesNotThrowExceptions (MethodReference method, string message) diff --git a/tests/generator/AttributeFactoryTests.cs b/tests/generator/AttributeFactoryTests.cs index 9b85aff4578b..aa3387103e0e 100644 --- a/tests/generator/AttributeFactoryTests.cs +++ b/tests/generator/AttributeFactoryTests.cs @@ -1,7 +1,4 @@ -using System; using System.Collections; -using NUnit.Framework; -using ObjCRuntime; using Xamarin.Utils; #nullable enable diff --git a/tests/generator/BGenBase.cs b/tests/generator/BGenBase.cs index a52d47b0f8b2..ac409d15a36b 100644 --- a/tests/generator/BGenBase.cs +++ b/tests/generator/BGenBase.cs @@ -1,10 +1,6 @@ -using System; -using System.Collections.Generic; using System.Linq; using System.IO; -using NUnit.Framework; - using Xamarin.Tests; namespace GeneratorTests { diff --git a/tests/generator/BGenTests.cs b/tests/generator/BGenTests.cs index b6538d1190a1..08a4c852ae05 100644 --- a/tests/generator/BGenTests.cs +++ b/tests/generator/BGenTests.cs @@ -1,10 +1,6 @@ -using System; -using System.Collections.Generic; using System.IO; using System.Linq; -using NUnit.Framework; - using Mono.Cecil; using Mono.Cecil.Cil; diff --git a/tests/generator/BGenTool.cs b/tests/generator/BGenTool.cs index 194356c59334..43a5e9ad474b 100644 --- a/tests/generator/BGenTool.cs +++ b/tests/generator/BGenTool.cs @@ -1,14 +1,10 @@ #pragma warning disable 0649 // Field 'X' is never assigned to, and will always have its default value null -using System; -using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.IO; using System.Linq; using System.Text; -using NUnit.Framework; - using Mono.Cecil; using Mono.Cecil.Cil; diff --git a/tests/generator/CollectionsExtensionsTests.cs b/tests/generator/CollectionsExtensionsTests.cs index 8eebdd8b4809..b8ac7b9d0f41 100644 --- a/tests/generator/CollectionsExtensionsTests.cs +++ b/tests/generator/CollectionsExtensionsTests.cs @@ -1,5 +1,4 @@ using System.Linq; -using NUnit.Framework; namespace GeneratorTests { diff --git a/tests/generator/ConstructorArgumentsTests.cs b/tests/generator/ConstructorArgumentsTests.cs index a031ebbf56e1..8c8c0b06b45f 100644 --- a/tests/generator/ConstructorArgumentsTests.cs +++ b/tests/generator/ConstructorArgumentsTests.cs @@ -1,9 +1,6 @@ #nullable enable -using System; using System.Collections; -using NUnit.Framework; -using ObjCRuntime; namespace GeneratorTests { diff --git a/tests/generator/ErrorTests.cs b/tests/generator/ErrorTests.cs index 57497b48791b..cc2e7c9cc3e5 100644 --- a/tests/generator/ErrorTests.cs +++ b/tests/generator/ErrorTests.cs @@ -1,6 +1,4 @@ -using System; using System.IO; -using NUnit.Framework; using Xamarin.Tests; diff --git a/tests/generator/GeneratorTests.cs b/tests/generator/GeneratorTests.cs index 21ffa5d49e65..943c12d1534e 100644 --- a/tests/generator/GeneratorTests.cs +++ b/tests/generator/GeneratorTests.cs @@ -1,10 +1,6 @@ -using System; -using System.Collections.Generic; using System.IO; using System.Linq; -using NUnit.Framework; - using Xamarin; using Xamarin.Tests; using Xamarin.Utils; diff --git a/tests/generator/NomenclatorTests.cs b/tests/generator/NomenclatorTests.cs index c792fac78511..10acefbec9a7 100644 --- a/tests/generator/NomenclatorTests.cs +++ b/tests/generator/NomenclatorTests.cs @@ -1,12 +1,7 @@ -using System; using System.IO; using System.Reflection; using System.Reflection.Metadata; -using System.Runtime.InteropServices; -using Foundation; using Moq; -using NUnit.Framework; -using ObjCRuntime; namespace GeneratorTests { [TestFixture] diff --git a/tests/generator/NullabilityContextTests.cs b/tests/generator/NullabilityContextTests.cs index 745bd048c894..edb715111c27 100644 --- a/tests/generator/NullabilityContextTests.cs +++ b/tests/generator/NullabilityContextTests.cs @@ -1,9 +1,6 @@ -using System; -using System.Collections.Generic; using System.Linq; using System.Reflection; using bgen; -using NUnit.Framework; #nullable enable diff --git a/tests/generator/PlatformNameExtensionsTests.cs b/tests/generator/PlatformNameExtensionsTests.cs index 968887e082ca..53b05348a632 100644 --- a/tests/generator/PlatformNameExtensionsTests.cs +++ b/tests/generator/PlatformNameExtensionsTests.cs @@ -1,9 +1,6 @@ #nullable enable -using System; using System.Linq; using System.IO; -using NUnit.Framework; -using ObjCRuntime; using Xamarin.Utils; namespace GeneratorTests { diff --git a/tests/generator/ProtocolTests.cs b/tests/generator/ProtocolTests.cs index 479d18bb668f..fd583994fb80 100644 --- a/tests/generator/ProtocolTests.cs +++ b/tests/generator/ProtocolTests.cs @@ -1,7 +1,5 @@ -using System; using System.Linq; -using NUnit.Framework; using Xamarin.Tests; namespace GeneratorTests { diff --git a/tests/generator/ReflectionTest.cs b/tests/generator/ReflectionTest.cs index 563ae1270e99..908d88825934 100644 --- a/tests/generator/ReflectionTest.cs +++ b/tests/generator/ReflectionTest.cs @@ -1,6 +1,4 @@ -using System; using System.Reflection; -using NUnit.Framework; namespace GeneratorTests { diff --git a/tests/generator/StringExtensionTests.cs b/tests/generator/StringExtensionTests.cs index 992caaf1dc54..585cd16cb67b 100644 --- a/tests/generator/StringExtensionTests.cs +++ b/tests/generator/StringExtensionTests.cs @@ -1,6 +1,4 @@ -using System; using System.Collections; -using NUnit.Framework; #nullable enable diff --git a/tests/interdependent-binding-projects/Main.cs b/tests/interdependent-binding-projects/Main.cs index 0142548af587..2c08bd2dc725 100644 --- a/tests/interdependent-binding-projects/Main.cs +++ b/tests/interdependent-binding-projects/Main.cs @@ -1,10 +1,6 @@ -using System; -using System.Collections.Generic; using System.Linq; using System.Reflection; -using NUnit.Framework; - #nullable enable public static partial class TestLoader { diff --git a/tests/introspection/ApiBaseTest.cs b/tests/introspection/ApiBaseTest.cs index 11ba89523d89..bcecf9aec5a0 100644 --- a/tests/introspection/ApiBaseTest.cs +++ b/tests/introspection/ApiBaseTest.cs @@ -19,20 +19,15 @@ // limitations under the License. // -using System; using System.ComponentModel; using System.IO; using System.Reflection; -using System.Runtime.InteropServices; using System.Runtime.Versioning; using System.Text; -using NUnit.Framework; using Xamarin.Utils; using System.Linq; using Xamarin.Tests; -using Foundation; -using ObjCRuntime; #if MONOTOUCH using UIKit; #endif diff --git a/tests/introspection/ApiCMAttachmentTest.cs b/tests/introspection/ApiCMAttachmentTest.cs index cd12f83c70d8..4899c545fba7 100644 --- a/tests/introspection/ApiCMAttachmentTest.cs +++ b/tests/introspection/ApiCMAttachmentTest.cs @@ -1,25 +1,19 @@ -using System; using System.Drawing; using System.IO; using System.Net; using System.Linq; using System.Security.Cryptography.X509Certificates; -using NUnit.Framework; - using AudioToolbox; using AudioUnit; using CoreMedia; -using CoreFoundation; using CoreGraphics; using CoreText; using CFNetwork; using CoreVideo; -using Foundation; using ImageIO; using MediaToolbox; using SystemConfiguration; -using ObjCRuntime; using Security; using VideoToolbox; using UIKit; diff --git a/tests/introspection/ApiClassPtrTest.cs b/tests/introspection/ApiClassPtrTest.cs index f1fabec05079..c3589ead61c5 100644 --- a/tests/introspection/ApiClassPtrTest.cs +++ b/tests/introspection/ApiClassPtrTest.cs @@ -6,17 +6,12 @@ // // Copyright 2012-2014, 2016 Xamarin Inc. // -using System; using System.Reflection; using System.Linq; -using NUnit.Framework; using Xamarin.Utils; using System.Runtime.CompilerServices; -using Foundation; -using ObjCRuntime; - // Disable until we get around to enable + fix any issues. #nullable disable diff --git a/tests/introspection/ApiCoreImageFiltersTest.cs b/tests/introspection/ApiCoreImageFiltersTest.cs index a59aa9586acb..1e911146054f 100644 --- a/tests/introspection/ApiCoreImageFiltersTest.cs +++ b/tests/introspection/ApiCoreImageFiltersTest.cs @@ -19,17 +19,11 @@ // limitations under the License. // -using System; -using System.Collections.Generic; using System.IO; using System.Reflection; using System.Text; -using NUnit.Framework; - using CoreImage; -using Foundation; -using ObjCRuntime; #if !MONOMAC using UIKit; #endif diff --git a/tests/introspection/ApiCtorInitTest.cs b/tests/introspection/ApiCtorInitTest.cs index 98560fb620f4..f2fa783ed0e8 100644 --- a/tests/introspection/ApiCtorInitTest.cs +++ b/tests/introspection/ApiCtorInitTest.cs @@ -19,19 +19,14 @@ // limitations under the License. // -using System; using System.Reflection; using System.Linq; using System.Text; -using NUnit.Framework; #if HAS_ARKIT using ARKit; #endif -using Foundation; -using ObjCRuntime; - // Disable until we get around to enable + fix any issues. #nullable disable diff --git a/tests/introspection/ApiFieldTest.cs b/tests/introspection/ApiFieldTest.cs index 766155f544cb..69d1f897b87e 100644 --- a/tests/introspection/ApiFieldTest.cs +++ b/tests/introspection/ApiFieldTest.cs @@ -19,16 +19,9 @@ // limitations under the License. // -using System; using System.IO; -using System.Collections.Generic; using System.Reflection; -using NUnit.Framework; - -using Foundation; -using ObjCRuntime; - // Disable until we get around to enable + fix any issues. #nullable disable diff --git a/tests/introspection/ApiFrameworkTest.cs b/tests/introspection/ApiFrameworkTest.cs index cce1a26e547c..d34e34c264db 100644 --- a/tests/introspection/ApiFrameworkTest.cs +++ b/tests/introspection/ApiFrameworkTest.cs @@ -1,13 +1,6 @@ -using System; -using System.Collections.Generic; using System.IO; using System.Reflection; -using NUnit.Framework; - -using Foundation; -using ObjCRuntime; - // Disable until we get around to enable + fix any issues. #nullable disable diff --git a/tests/introspection/ApiPInvokeTest.cs b/tests/introspection/ApiPInvokeTest.cs index c4e5a54c28a3..5dee89e4e240 100644 --- a/tests/introspection/ApiPInvokeTest.cs +++ b/tests/introspection/ApiPInvokeTest.cs @@ -7,20 +7,12 @@ // // Copyright 2013-2014 Xamarin, Inc. -using System; using System.Collections; -using System.Collections.Generic; using System.IO; using System.Linq; using System.Reflection; -using System.Runtime.InteropServices; using Xamarin.Tests; -using NUnit.Framework; - -using ObjCRuntime; -using Foundation; - // Disable until we get around to enable + fix any issues. #nullable disable diff --git a/tests/introspection/ApiProtocolTest.cs b/tests/introspection/ApiProtocolTest.cs index a966921bad0d..21ae362f26fb 100644 --- a/tests/introspection/ApiProtocolTest.cs +++ b/tests/introspection/ApiProtocolTest.cs @@ -7,14 +7,7 @@ // Copyright 2013, 2015 Xamarin Inc. // -using System; -using System.Collections.Generic; using System.Reflection; -using System.Runtime.InteropServices; -using NUnit.Framework; - -using Foundation; -using ObjCRuntime; namespace Introspection { diff --git a/tests/introspection/ApiSelectorTest.cs b/tests/introspection/ApiSelectorTest.cs index c6ce28740154..d8f8bdfd8f46 100644 --- a/tests/introspection/ApiSelectorTest.cs +++ b/tests/introspection/ApiSelectorTest.cs @@ -19,12 +19,7 @@ // limitations under the License. // -using System; using System.Reflection; -using NUnit.Framework; - -using Foundation; -using ObjCRuntime; // Disable until we get around to enable + fix any issues. #nullable disable diff --git a/tests/introspection/ApiSignatureTest.cs b/tests/introspection/ApiSignatureTest.cs index fab3175c687e..95973e43b7ea 100644 --- a/tests/introspection/ApiSignatureTest.cs +++ b/tests/introspection/ApiSignatureTest.cs @@ -19,18 +19,11 @@ // limitations under the License. // -using System; -using System.Collections.Generic; -using System.Runtime.InteropServices; using System.Runtime.Versioning; using System.Reflection; using System.Text; -using NUnit.Framework; using System.Linq; -using Foundation; -using ObjCRuntime; - // Disable until we get around to enable + fix any issues. #nullable disable diff --git a/tests/introspection/ApiStructTest.cs b/tests/introspection/ApiStructTest.cs index eabcff74bcb5..cc71f137b548 100644 --- a/tests/introspection/ApiStructTest.cs +++ b/tests/introspection/ApiStructTest.cs @@ -6,15 +6,8 @@ // // Copyright 2013 Xamarin, Inc. -using System; using System.Linq; using System.Reflection; -using System.Runtime.InteropServices; - -using NUnit.Framework; - -using ObjCRuntime; -using Foundation; namespace Introspection { diff --git a/tests/introspection/ApiTypeTest.cs b/tests/introspection/ApiTypeTest.cs index d5ea37347795..a5d8069a0195 100644 --- a/tests/introspection/ApiTypeTest.cs +++ b/tests/introspection/ApiTypeTest.cs @@ -1,14 +1,8 @@ -using System; -using System.Collections.Generic; using System.Reflection; using System.Runtime.CompilerServices; -using NUnit.Framework; using Xamarin.Utils; -using Foundation; -using ObjCRuntime; - // Disable until we get around to enable + fix any issues. #nullable disable diff --git a/tests/introspection/ApiTypoTest.cs b/tests/introspection/ApiTypoTest.cs index 74487e905288..42e31c73d30d 100644 --- a/tests/introspection/ApiTypoTest.cs +++ b/tests/introspection/ApiTypoTest.cs @@ -19,22 +19,17 @@ // limitations under the License. // -using System; -using System.Collections.Generic; using System.IO; using System.Linq; using System.Reflection; using System.Runtime.Versioning; using System.Text; using System.Text.RegularExpressions; -using NUnit.Framework; -using ObjCRuntime; #if MONOMAC using AppKit; #else using UIKit; #endif -using Foundation; using Xamarin.Tests; using Xamarin.Utils; diff --git a/tests/introspection/ApiWeakPropertyTest.cs b/tests/introspection/ApiWeakPropertyTest.cs index 98ac102758b7..681d3a145b0b 100644 --- a/tests/introspection/ApiWeakPropertyTest.cs +++ b/tests/introspection/ApiWeakPropertyTest.cs @@ -1,13 +1,6 @@ -using System; using System.IO; -using System.Collections.Generic; using System.Reflection; -using NUnit.Framework; - -using Foundation; -using ObjCRuntime; - // Disable until we get around to enable + fix any issues. #nullable disable diff --git a/tests/introspection/CoreSelectorTest.cs b/tests/introspection/CoreSelectorTest.cs index e9e715f7734e..3cd36baf84ea 100644 --- a/tests/introspection/CoreSelectorTest.cs +++ b/tests/introspection/CoreSelectorTest.cs @@ -7,12 +7,7 @@ // Copyright 2012-2013 Xamarin Inc. All rights reserved. // -using System; using System.Reflection; -using NUnit.Framework; - -using Foundation; -using ObjCRuntime; // Disable until we get around to enable + fix any issues. #nullable disable diff --git a/tests/introspection/EnvironmentVariable.cs b/tests/introspection/EnvironmentVariable.cs index 52214ccb38bd..45e9276c75c0 100644 --- a/tests/introspection/EnvironmentVariable.cs +++ b/tests/introspection/EnvironmentVariable.cs @@ -1,4 +1,3 @@ -using System; namespace Xamarin.Utils { // Boolean variable that defaults to false, unless a environmental variable is set. Setting value explictly overrides all other values. diff --git a/tests/introspection/MacApiCtorInitTest.cs b/tests/introspection/MacApiCtorInitTest.cs index 228dfb1fb6cc..8e3129342397 100644 --- a/tests/introspection/MacApiCtorInitTest.cs +++ b/tests/introspection/MacApiCtorInitTest.cs @@ -7,13 +7,8 @@ // Copyright 2012-2013,2015 Xamarin Inc. All rights reserved. // -using System; -using System.Collections.Generic; using System.Reflection; -using Foundation; - -using NUnit.Framework; using Xamarin.Tests; using Xamarin.Utils; diff --git a/tests/introspection/MacApiFieldTest.cs b/tests/introspection/MacApiFieldTest.cs index 5ad86e4ddc38..c0ae4645184c 100644 --- a/tests/introspection/MacApiFieldTest.cs +++ b/tests/introspection/MacApiFieldTest.cs @@ -7,11 +7,9 @@ // Copyright 2012 Xamarin Inc. All rights reserved. // -using System; using System.Linq; using System.Reflection; -using NUnit.Framework; using Xamarin.Tests; namespace Introspection { diff --git a/tests/introspection/MacApiPInvokeTest.cs b/tests/introspection/MacApiPInvokeTest.cs index f98ae958fefe..006c72fb8b3f 100644 --- a/tests/introspection/MacApiPInvokeTest.cs +++ b/tests/introspection/MacApiPInvokeTest.cs @@ -1,8 +1,6 @@ -using System; using System.Linq; using System.Reflection; -using NUnit.Framework; using Xamarin.Tests; namespace Introspection { diff --git a/tests/introspection/MacApiProtocolTest.cs b/tests/introspection/MacApiProtocolTest.cs index 271bc6f55860..8c924c91260e 100644 --- a/tests/introspection/MacApiProtocolTest.cs +++ b/tests/introspection/MacApiProtocolTest.cs @@ -7,13 +7,9 @@ // Copyright 2013 Xamarin Inc. // -using System; - -using Foundation; using AppKit; using CoreImage; -using NUnit.Framework; using Xamarin.Tests; namespace Introspection { diff --git a/tests/introspection/MacApiSelectorTest.cs b/tests/introspection/MacApiSelectorTest.cs index 38b4cd4e2215..ab0c3e583f76 100644 --- a/tests/introspection/MacApiSelectorTest.cs +++ b/tests/introspection/MacApiSelectorTest.cs @@ -7,14 +7,8 @@ // Copyright 2012 Xamarin Inc. All rights reserved. // -using System; -using System.Collections.Generic; using System.Reflection; -using Foundation; -using ObjCRuntime; - -using NUnit.Framework; using Xamarin.Tests; using Xamarin.Utils; diff --git a/tests/introspection/MacApiSignatureTest.cs b/tests/introspection/MacApiSignatureTest.cs index 88c9db01e086..70ab0e804b53 100644 --- a/tests/introspection/MacApiSignatureTest.cs +++ b/tests/introspection/MacApiSignatureTest.cs @@ -7,15 +7,10 @@ // Copyright 2012-2013 Xamarin Inc. All rights reserved. // -using System; using System.Reflection; -using NUnit.Framework; using Xamarin.Tests; -using Foundation; -using ObjCRuntime; - namespace Introspection { [TestFixture] diff --git a/tests/introspection/MacApiTypoTest.cs b/tests/introspection/MacApiTypoTest.cs index 18358f71590b..d9fd73e0ab51 100644 --- a/tests/introspection/MacApiTypoTest.cs +++ b/tests/introspection/MacApiTypoTest.cs @@ -1,8 +1,4 @@ -using System; -using NUnit.Framework; -using Foundation; -using ObjCRuntime; using AppKit; namespace Introspection { diff --git a/tests/introspection/MacApiWeakPropertyTest.cs b/tests/introspection/MacApiWeakPropertyTest.cs index b801ab6fac0a..073bd7f337d8 100644 --- a/tests/introspection/MacApiWeakPropertyTest.cs +++ b/tests/introspection/MacApiWeakPropertyTest.cs @@ -1,8 +1,4 @@ -using System; -using Foundation; - -using NUnit.Framework; using Xamarin.Tests; namespace Introspection { diff --git a/tests/introspection/MacCoreImageFiltersTest.cs b/tests/introspection/MacCoreImageFiltersTest.cs index 8b061a13c468..72d401e8c0bf 100644 --- a/tests/introspection/MacCoreImageFiltersTest.cs +++ b/tests/introspection/MacCoreImageFiltersTest.cs @@ -20,9 +20,6 @@ // limitations under the License. // -using System; - -using NUnit.Framework; using Xamarin.Tests; namespace Introspection { diff --git a/tests/introspection/iOSApiClassPtrTest.cs b/tests/introspection/iOSApiClassPtrTest.cs index 8f5b606da26e..780d3e270247 100644 --- a/tests/introspection/iOSApiClassPtrTest.cs +++ b/tests/introspection/iOSApiClassPtrTest.cs @@ -6,11 +6,7 @@ // // Copyright 2012-2014 Xamarin Inc. // -using System; using System.Reflection; -using Foundation; -using ObjCRuntime; -using NUnit.Framework; namespace Introspection { [TestFixture] diff --git a/tests/introspection/iOSApiCtorInitTest.cs b/tests/introspection/iOSApiCtorInitTest.cs index d38dbb42f642..777adbd02c60 100644 --- a/tests/introspection/iOSApiCtorInitTest.cs +++ b/tests/introspection/iOSApiCtorInitTest.cs @@ -7,19 +7,13 @@ // Copyright 2012-2013 Xamarin Inc. All rights reserved. // -using System; -using System.Collections.Generic; using System.Reflection; #if !__TVOS__ using PassKit; #endif -using Foundation; using Metal; -using ObjCRuntime; using UIKit; -using NUnit.Framework; - namespace Introspection { [TestFixture] diff --git a/tests/introspection/iOSApiFieldTest.cs b/tests/introspection/iOSApiFieldTest.cs index e9487979aa4f..00cdfde8dbef 100644 --- a/tests/introspection/iOSApiFieldTest.cs +++ b/tests/introspection/iOSApiFieldTest.cs @@ -7,12 +7,8 @@ // Copyright 2012-2013 Xamarin Inc. All rights reserved. // -using System; using System.Reflection; -using Foundation; -using ObjCRuntime; using UIKit; -using NUnit.Framework; // Disable until we get around to enable + fix any issues. #nullable disable diff --git a/tests/introspection/iOSApiPInvokeTest.cs b/tests/introspection/iOSApiPInvokeTest.cs index d145785ff124..1994319eeb00 100644 --- a/tests/introspection/iOSApiPInvokeTest.cs +++ b/tests/introspection/iOSApiPInvokeTest.cs @@ -7,14 +7,9 @@ // Copyright 2014-2015 Xamarin Inc. All rights reserved. // -using System; -using System.Collections.Generic; using System.Linq; using System.Reflection; -using Foundation; -using ObjCRuntime; using UIKit; -using NUnit.Framework; using Xamarin.Utils; namespace Introspection { diff --git a/tests/introspection/iOSApiProtocolTest.cs b/tests/introspection/iOSApiProtocolTest.cs index 10f4e3189f10..704ac4cf46d0 100644 --- a/tests/introspection/iOSApiProtocolTest.cs +++ b/tests/introspection/iOSApiProtocolTest.cs @@ -7,14 +7,10 @@ // Copyright 2013-2015 Xamarin Inc. // -using System; -using Foundation; -using ObjCRuntime; using UIKit; #if HAS_WATCHCONNECTIVITY using WatchConnectivity; #endif -using NUnit.Framework; namespace Introspection { diff --git a/tests/introspection/iOSApiSelectorTest.cs b/tests/introspection/iOSApiSelectorTest.cs index e51c62943ab7..006ec70ea297 100644 --- a/tests/introspection/iOSApiSelectorTest.cs +++ b/tests/introspection/iOSApiSelectorTest.cs @@ -7,16 +7,11 @@ // Copyright 2012-2013 Xamarin Inc. All rights reserved. // -using System; -using System.Collections.Generic; using System.Reflection; -using Foundation; -using ObjCRuntime; using UIKit; #if HAS_WATCHCONNECTIVITY using WatchConnectivity; #endif -using NUnit.Framework; // Disable until we get around to enable + fix any issues. #nullable disable diff --git a/tests/introspection/iOSApiSignatureTest.cs b/tests/introspection/iOSApiSignatureTest.cs index f15bc3417f1c..72dad7db9554 100644 --- a/tests/introspection/iOSApiSignatureTest.cs +++ b/tests/introspection/iOSApiSignatureTest.cs @@ -7,13 +7,8 @@ // Copyright 2013 Xamarin Inc. All rights reserved. // -using System; using System.Reflection; -using NUnit.Framework; - -using ObjCRuntime; -using Foundation; using UIKit; // Disable until we get around to enable + fix any issues. diff --git a/tests/introspection/iOSApiTypoTest.cs b/tests/introspection/iOSApiTypoTest.cs index 0af54108c03d..42dafda1624d 100644 --- a/tests/introspection/iOSApiTypoTest.cs +++ b/tests/introspection/iOSApiTypoTest.cs @@ -1,8 +1,4 @@ -using System; -using NUnit.Framework; -using Foundation; -using ObjCRuntime; using UIKit; namespace Introspection { diff --git a/tests/introspection/iOSApiWeakPropertyTest.cs b/tests/introspection/iOSApiWeakPropertyTest.cs index 5386dbcaf2f3..245a7359c9a0 100644 --- a/tests/introspection/iOSApiWeakPropertyTest.cs +++ b/tests/introspection/iOSApiWeakPropertyTest.cs @@ -1,10 +1,5 @@ -using System; using System.Reflection; -using Foundation; - -using NUnit.Framework; - // Disable until we get around to enable + fix any issues. #nullable disable diff --git a/tests/introspection/iOSCoreImageFiltersTest.cs b/tests/introspection/iOSCoreImageFiltersTest.cs index ba9a8ea4cb39..aaf2852e058f 100644 --- a/tests/introspection/iOSCoreImageFiltersTest.cs +++ b/tests/introspection/iOSCoreImageFiltersTest.cs @@ -8,12 +8,8 @@ // Copyright 2012-2013 Xamarin Inc. All rights reserved. // -using System; using System.Reflection; using CoreImage; -using Foundation; -using ObjCRuntime; -using NUnit.Framework; namespace Introspection { diff --git a/tests/linker/AppDelegate.cs b/tests/linker/AppDelegate.cs index 93a07e3b3be0..aada6d6653f9 100644 --- a/tests/linker/AppDelegate.cs +++ b/tests/linker/AppDelegate.cs @@ -1,10 +1,6 @@ -using System; using System.Reflection; -using System.Collections.Generic; using System.Linq; -using NUnit.Framework; - public static partial class TestLoader { static partial void AddTestAssembliesImpl (HashSet assemblies) { diff --git a/tests/linker/BaseOptimizeGeneratedCodeTest.cs b/tests/linker/BaseOptimizeGeneratedCodeTest.cs index 11c275547810..f4904e104fa4 100644 --- a/tests/linker/BaseOptimizeGeneratedCodeTest.cs +++ b/tests/linker/BaseOptimizeGeneratedCodeTest.cs @@ -9,19 +9,11 @@ // Copyright 2018 Microsoft Inc. All rights reserved. // -using System; -using System.Collections.Generic; using System.IO; using System.Linq; using System.Reflection; using System.Reflection.Emit; using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -using Foundation; -using ObjCRuntime; - -using NUnit.Framework; namespace Linker.Shared { [Preserve (AllMembers = true)] diff --git a/tests/linker/CommonLinkAllTest.cs b/tests/linker/CommonLinkAllTest.cs index 9a7472cd32c0..45b0a6f8d4ca 100644 --- a/tests/linker/CommonLinkAllTest.cs +++ b/tests/linker/CommonLinkAllTest.cs @@ -1,11 +1,6 @@ -using System; using System.ComponentModel; using System.Reflection; -using NUnit.Framework; - -using Foundation; - namespace ObjCRuntime { public class Trampolines { @@ -36,7 +31,7 @@ static internal void Invoke (IntPtr block, int magic_number) } namespace LinkAll { - public class CustomConverter : TypeConverter { + public class CustomConverter : global::System.ComponentModel.TypeConverter { // note: the default ctor will be preserved by the linker because it's used in a [TypeConverter] attribute } diff --git a/tests/linker/CommonLinkAnyTest.cs b/tests/linker/CommonLinkAnyTest.cs index 2d157ed78d52..10f3a5ad8390 100644 --- a/tests/linker/CommonLinkAnyTest.cs +++ b/tests/linker/CommonLinkAnyTest.cs @@ -1,19 +1,11 @@ -using System; -using System.Collections.Generic; using System.Net; using System.Net.Http; using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; using System.Security.Cryptography; using System.Text.Json; using System.Threading; using System.Threading.Tasks; -using Foundation; -using ObjCRuntime; - -using NUnit.Framework; - using MonoTests.System.Net.Http; namespace LinkAnyTest { diff --git a/tests/linker/CommonLinkSdkTest.cs b/tests/linker/CommonLinkSdkTest.cs index 1fca8398fc5f..940eba1d3a8b 100644 --- a/tests/linker/CommonLinkSdkTest.cs +++ b/tests/linker/CommonLinkSdkTest.cs @@ -1,13 +1,8 @@ -using System; using System.Collections.ObjectModel; using System.ComponentModel; using System.Globalization; using System.IO; -using NUnit.Framework; - -using Foundation; - namespace LinkSdk { [TestFixture] diff --git a/tests/linker/ILReader.cs b/tests/linker/ILReader.cs index 9e1b6c952c6b..dc9913c83dae 100644 --- a/tests/linker/ILReader.cs +++ b/tests/linker/ILReader.cs @@ -9,8 +9,6 @@ // Adapted code from here: https://blogs.msdn.microsoft.com/haibo_luo/2005/10/04/read-il-from-methodbody/ -using System; -using System.Collections.Generic; using System.Reflection; using System.Reflection.Emit; diff --git a/tests/linker/dont link/CalendarTest.cs b/tests/linker/dont link/CalendarTest.cs index 84366bb0d0fa..19e9c3ce053d 100644 --- a/tests/linker/dont link/CalendarTest.cs +++ b/tests/linker/dont link/CalendarTest.cs @@ -1,9 +1,6 @@ // Copyright 2013 Xamarin Inc. All rights reserved. -using System; using System.Globalization; -using Foundation; -using NUnit.Framework; namespace DontLink.Calendars { diff --git a/tests/linker/dont link/DontLinkRegressionTests.cs b/tests/linker/dont link/DontLinkRegressionTests.cs index 1c72eb141e72..304017d248cf 100644 --- a/tests/linker/dont link/DontLinkRegressionTests.cs +++ b/tests/linker/dont link/DontLinkRegressionTests.cs @@ -7,22 +7,16 @@ // Copyright 2012-2015 Xamarin Inc. All rights reserved. // -using System; using System.Collections; -using System.Collections.Generic; using System.Linq; using System.Net; using System.Reflection; -using System.Runtime.InteropServices; using System.Security.Permissions; using MonoTouch; -using Foundation; #if !__MACOS__ using UIKit; #endif -using ObjCRuntime; -using NUnit.Framework; namespace DontLink { [TestFixture] diff --git a/tests/linker/dont link/TableViewSourceTest.cs b/tests/linker/dont link/TableViewSourceTest.cs index 73cfa7e7d63c..727df0752a74 100644 --- a/tests/linker/dont link/TableViewSourceTest.cs +++ b/tests/linker/dont link/TableViewSourceTest.cs @@ -9,13 +9,9 @@ #if !__MACOS__ -using System; -using System.Collections.Generic; using System.Linq; using System.Reflection; -using Foundation; using UIKit; -using NUnit.Framework; namespace DontLink.UIKit { diff --git a/tests/linker/link all/AttributeTest.cs b/tests/linker/link all/AttributeTest.cs index 924a77760aa7..03581f6e7d66 100644 --- a/tests/linker/link all/AttributeTest.cs +++ b/tests/linker/link all/AttributeTest.cs @@ -7,18 +7,11 @@ // Copyright 2013-2016 Xamarin Inc. All rights reserved. // -using System; -using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Reflection; -using System.Runtime.InteropServices; using System.Security.Permissions; -using Foundation; - -using NUnit.Framework; - [assembly: Debuggable (DebuggableAttribute.DebuggingModes.Default)] [assembly: LinkAll.Attributes.CustomAttributeArray (typeof (LinkAll.Attributes.CustomTypeA))] diff --git a/tests/linker/link all/CalendarTest.cs b/tests/linker/link all/CalendarTest.cs index 67e40a5bbb0d..6b24dc884d53 100644 --- a/tests/linker/link all/CalendarTest.cs +++ b/tests/linker/link all/CalendarTest.cs @@ -1,9 +1,6 @@ // Copyright 2013 Xamarin Inc. All rights reserved. -using System; using System.Globalization; -using Foundation; -using NUnit.Framework; namespace LinkAll.Calendars { diff --git a/tests/linker/link all/ClassLayoutTest.cs b/tests/linker/link all/ClassLayoutTest.cs index 3f5d9dc8ef01..0d5a200c8f9d 100644 --- a/tests/linker/link all/ClassLayoutTest.cs +++ b/tests/linker/link all/ClassLayoutTest.cs @@ -7,11 +7,6 @@ // Copyright 2012 Xamarin Inc. All rights reserved. // -using System; -using System.Runtime.InteropServices; -using Foundation; -using NUnit.Framework; - namespace LinkAll.Layout { class DefaultClass { diff --git a/tests/linker/link all/DataContractTest.cs b/tests/linker/link all/DataContractTest.cs index 11f0666fa656..118e3303c900 100644 --- a/tests/linker/link all/DataContractTest.cs +++ b/tests/linker/link all/DataContractTest.cs @@ -7,17 +7,11 @@ // Copyright 2013 Xamarin Inc. All rights reserved. // -using System; using System.IO; using System.Runtime.Serialization; using System.Text; using System.Xml; -using Foundation; -using ObjCRuntime; - -using NUnit.Framework; - namespace LinkAll.Serialization.DataContract { [TestFixture] diff --git a/tests/linker/link all/InterfacesTest.cs b/tests/linker/link all/InterfacesTest.cs index 4d487956540a..b4705258fbad 100644 --- a/tests/linker/link all/InterfacesTest.cs +++ b/tests/linker/link all/InterfacesTest.cs @@ -7,11 +7,7 @@ // Copyright 2013 Xamarin Inc. All rights reserved. // -using System; using System.Reflection; -using System.Runtime.InteropServices; -using Foundation; -using NUnit.Framework; namespace LinkAll.Interfaces { diff --git a/tests/linker/link all/InternalsTest.cs b/tests/linker/link all/InternalsTest.cs index f927b724dce8..d0e96ef69b66 100644 --- a/tests/linker/link all/InternalsTest.cs +++ b/tests/linker/link all/InternalsTest.cs @@ -7,13 +7,7 @@ // Copyright 2013 Xamarin Inc. All rights reserved. // -using System; -using System.Runtime.InteropServices; - using MonoTouch; -using Foundation; -using ObjCRuntime; -using NUnit.Framework; namespace LinkAll.InernalCalls { diff --git a/tests/linker/link all/LinkAllMacTest.cs b/tests/linker/link all/LinkAllMacTest.cs index 218f8949f623..181df123d073 100644 --- a/tests/linker/link all/LinkAllMacTest.cs +++ b/tests/linker/link all/LinkAllMacTest.cs @@ -1,5 +1,4 @@ #if __MACOS__ -using System; using System.IO; using System.Runtime.CompilerServices; using System.Threading; @@ -7,10 +6,6 @@ using System.Xml.Serialization; using AppKit; -using Foundation; -using ObjCRuntime; - -using NUnit.Framework; namespace LinkAllTests { [TestFixture] diff --git a/tests/linker/link all/LinkAllTest.cs b/tests/linker/link all/LinkAllTest.cs index 68aecc300371..fb48b13833a3 100644 --- a/tests/linker/link all/LinkAllTest.cs +++ b/tests/linker/link all/LinkAllTest.cs @@ -7,7 +7,6 @@ // Copyright 2012-2016 Xamarin Inc. All rights reserved. // -using System; using System.ComponentModel; using System.Globalization; using System.IO; @@ -22,8 +21,6 @@ using MonoTouch; using CoreGraphics; -using Foundation; -using ObjCRuntime; using StoreKit; #if __MACOS__ || __IOS__ using PdfKit; @@ -31,7 +28,6 @@ #if !__MACOS__ using UIKit; #endif -using NUnit.Framework; using MonoTests.System.Net.Http; namespace LinkAll { diff --git a/tests/linker/link all/LinqExpressionTest.cs b/tests/linker/link all/LinqExpressionTest.cs index 1d3d42884927..dbee07a1082b 100644 --- a/tests/linker/link all/LinqExpressionTest.cs +++ b/tests/linker/link all/LinqExpressionTest.cs @@ -1,7 +1,4 @@ -using System; using System.Linq.Expressions; -using Foundation; -using NUnit.Framework; namespace LinkAll.Linq { diff --git a/tests/linker/link all/PreserveTest.cs b/tests/linker/link all/PreserveTest.cs index ba6a2b72ecb0..9792f8ce5e73 100644 --- a/tests/linker/link all/PreserveTest.cs +++ b/tests/linker/link all/PreserveTest.cs @@ -7,11 +7,7 @@ // Copyright 2013-2016 Xamarin Inc. All rights reserved. // -using System; using System.Reflection; -using Foundation; -using ObjCRuntime; -using NUnit.Framework; // this will preserve the specified type (only) [assembly: Preserve (typeof (LinkAll.Attributes.TypeWithoutMembers))] diff --git a/tests/linker/link all/SealerTest.cs b/tests/linker/link all/SealerTest.cs index 3c00df6ce8b9..578de40d4378 100644 --- a/tests/linker/link all/SealerTest.cs +++ b/tests/linker/link all/SealerTest.cs @@ -1,9 +1,5 @@ // Copyright 2016 Xamarin Inc. All rights reserved. -using System; -using Foundation; -using NUnit.Framework; - namespace Linker.Sealer { [Preserve (AllMembers = true)] diff --git a/tests/linker/link all/SerializationTest.cs b/tests/linker/link all/SerializationTest.cs index 7b85fbd2e6fa..8e1fd97a17b3 100644 --- a/tests/linker/link all/SerializationTest.cs +++ b/tests/linker/link all/SerializationTest.cs @@ -7,10 +7,7 @@ // Copyright 2016 Xamarin Inc. All rights reserved. // -using System; using System.Runtime.Serialization; -using Foundation; -using NUnit.Framework; namespace LinkAll { static class Helper { diff --git a/tests/linker/link all/StructLayoutTest.cs b/tests/linker/link all/StructLayoutTest.cs index aa4cb254e915..b47621117b5e 100644 --- a/tests/linker/link all/StructLayoutTest.cs +++ b/tests/linker/link all/StructLayoutTest.cs @@ -7,11 +7,6 @@ // Copyright 2012 Xamarin Inc. All rights reserved. // -using System; -using System.Runtime.InteropServices; -using Foundation; -using NUnit.Framework; - namespace LinkAll.Layout { struct DefaultStruct { diff --git a/tests/linker/link all/XmlSerializationTest.cs b/tests/linker/link all/XmlSerializationTest.cs index 926134037229..5943406fb7ed 100644 --- a/tests/linker/link all/XmlSerializationTest.cs +++ b/tests/linker/link all/XmlSerializationTest.cs @@ -7,15 +7,10 @@ // Copyright 2012 Xamarin Inc. All rights reserved. // -using System; using System.IO; using System.Xml; using System.Xml.Serialization; -using Foundation; - -using NUnit.Framework; - namespace LinkAll.Serialization.Xml { [Serializable] diff --git a/tests/linker/link sdk/AotBugs.cs b/tests/linker/link sdk/AotBugs.cs index d1a58f9555be..c97b6a6d1bd3 100644 --- a/tests/linker/link sdk/AotBugs.cs +++ b/tests/linker/link sdk/AotBugs.cs @@ -1,16 +1,10 @@ -using System; using System.Collections.Concurrent; -using System.Collections.Generic; using System.Collections.ObjectModel; using System.Drawing; using System.Linq; using System.Threading.Tasks; using System.Runtime.CompilerServices; using CoreGraphics; -using Foundation; -using ObjCRuntime; - -using NUnit.Framework; namespace LinkSdk.Aot { diff --git a/tests/linker/link sdk/AsyncTest.cs b/tests/linker/link sdk/AsyncTest.cs index 45cdcd2f13c6..837c5d3285ee 100644 --- a/tests/linker/link sdk/AsyncTest.cs +++ b/tests/linker/link sdk/AsyncTest.cs @@ -1,9 +1,6 @@ -using System; using System.IO; using System.Net.Http; using System.Threading.Tasks; -using Foundation; -using NUnit.Framework; using MonoTests.System.Net.Http; namespace LinkSdk { diff --git a/tests/linker/link sdk/BitcodeTest.cs b/tests/linker/link sdk/BitcodeTest.cs index 62c00825e04e..1e32c93b6e6c 100644 --- a/tests/linker/link sdk/BitcodeTest.cs +++ b/tests/linker/link sdk/BitcodeTest.cs @@ -1,12 +1,6 @@ -using System; -using System.Collections.Generic; using System.Linq; using System.Reflection; -using ObjCRuntime; - -using NUnit.Framework; - namespace LinkSdk { [TestFixture] public class BitcodeTest { diff --git a/tests/linker/link sdk/Bug1820Test.cs b/tests/linker/link sdk/Bug1820Test.cs index 9a08c7874dc5..f66a9de7dc26 100644 --- a/tests/linker/link sdk/Bug1820Test.cs +++ b/tests/linker/link sdk/Bug1820Test.cs @@ -1,12 +1,7 @@ -using System; -using System.Collections.Generic; using System.IO; using System.Xml; using System.Xml.Schema; using System.Xml.Serialization; -using Foundation; -using ObjCRuntime; -using NUnit.Framework; namespace LinkSdk.Serialization { diff --git a/tests/linker/link sdk/Bug2096Test.cs b/tests/linker/link sdk/Bug2096Test.cs index 1d5db7fa81f4..26663efa8f8c 100644 --- a/tests/linker/link sdk/Bug2096Test.cs +++ b/tests/linker/link sdk/Bug2096Test.cs @@ -1,7 +1,3 @@ -using System; -using Foundation; -using ObjCRuntime; -using NUnit.Framework; namespace LinkSdk.Aot { diff --git a/tests/linker/link sdk/CalendarTest.cs b/tests/linker/link sdk/CalendarTest.cs index 67b8f636193a..12bde32f69d1 100644 --- a/tests/linker/link sdk/CalendarTest.cs +++ b/tests/linker/link sdk/CalendarTest.cs @@ -1,9 +1,6 @@ // Copyright 2013 Xamarin Inc. All rights reserved. -using System; using System.Globalization; -using Foundation; -using NUnit.Framework; namespace LinkSdk.Calendars { diff --git a/tests/linker/link sdk/CanaryTest.cs b/tests/linker/link sdk/CanaryTest.cs index 3a8aedb686ab..a50eec7e8477 100644 --- a/tests/linker/link sdk/CanaryTest.cs +++ b/tests/linker/link sdk/CanaryTest.cs @@ -1,8 +1,5 @@ -using System; using System.Reflection; using System.Text; -using Foundation; -using NUnit.Framework; namespace LinkSdk { diff --git a/tests/linker/link sdk/CryptoTest.cs b/tests/linker/link sdk/CryptoTest.cs index aa09705b654a..ebe6064269ab 100644 --- a/tests/linker/link sdk/CryptoTest.cs +++ b/tests/linker/link sdk/CryptoTest.cs @@ -7,14 +7,11 @@ // Copyright 2012 Xamarin Inc. // -using System; using System.Linq; using System.Net; using System.Net.Security; using System.Security.Cryptography; using System.Security.Cryptography.X509Certificates; -using Foundation; -using NUnit.Framework; using MonoTests.System.Net.Http; namespace LinkSdk { diff --git a/tests/linker/link sdk/DataContractTest.cs b/tests/linker/link sdk/DataContractTest.cs index ff139009d51a..14f2c52577ca 100644 --- a/tests/linker/link sdk/DataContractTest.cs +++ b/tests/linker/link sdk/DataContractTest.cs @@ -1,8 +1,4 @@ -using System; -using System.Collections.Generic; using System.Runtime.Serialization; -using Foundation; -using NUnit.Framework; namespace LinkSdk { diff --git a/tests/linker/link sdk/DllImportTest.cs b/tests/linker/link sdk/DllImportTest.cs index 09cec272c11e..23c59e77a317 100644 --- a/tests/linker/link sdk/DllImportTest.cs +++ b/tests/linker/link sdk/DllImportTest.cs @@ -7,15 +7,10 @@ // Copyright 2014-2015 Xamarin Inc. All rights reserved. // -using System; using System.Net.NetworkInformation; -using System.Runtime.InteropServices; -using Foundation; -using ObjCRuntime; #if !__MACOS__ using UIKit; #endif -using NUnit.Framework; namespace LinkSdk { diff --git a/tests/linker/link sdk/HttpClientHandlerTest.cs b/tests/linker/link sdk/HttpClientHandlerTest.cs index 5dfa7c206c0f..321bc565397f 100644 --- a/tests/linker/link sdk/HttpClientHandlerTest.cs +++ b/tests/linker/link sdk/HttpClientHandlerTest.cs @@ -2,11 +2,8 @@ // // Copyright 2016 Xamarin Inc. -using System; using System.Net; using System.Net.Http; -using Foundation; -using NUnit.Framework; namespace LinkSdk.Net.Http { diff --git a/tests/linker/link sdk/LinkExtraDefsTest.cs b/tests/linker/link sdk/LinkExtraDefsTest.cs index 5aa603af54db..d8329c7abab2 100644 --- a/tests/linker/link sdk/LinkExtraDefsTest.cs +++ b/tests/linker/link sdk/LinkExtraDefsTest.cs @@ -7,10 +7,7 @@ // Copyright 2012 Xamarin Inc. All rights reserved. // -using System; using System.Reflection; -using Foundation; -using NUnit.Framework; namespace LinkSdk { diff --git a/tests/linker/link sdk/LinkSdkRegressionTest.cs b/tests/linker/link sdk/LinkSdkRegressionTest.cs index af20aff48a4d..349ba3ee7370 100644 --- a/tests/linker/link sdk/LinkSdkRegressionTest.cs +++ b/tests/linker/link sdk/LinkSdkRegressionTest.cs @@ -1,5 +1,3 @@ -using System; -using System.Collections.Generic; using System.Collections.ObjectModel; using System.ComponentModel; using System.Data; @@ -11,7 +9,6 @@ using System.Net.NetworkInformation; using System.Reflection; using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; using System.Runtime.Serialization; using System.Security.Principal; using System.Threading; @@ -25,9 +22,6 @@ #endif using CoreAnimation; using CoreData; -using CoreFoundation; -using Foundation; -using ObjCRuntime; #if !__TVOS__ using MapKit; #endif @@ -42,11 +36,9 @@ #if !__TVOS__ using WebKit; #endif -using NUnit.Framework; using MonoTests.System.Net.Http; using Xamarin.Utils; - namespace LinkSdk { [TestFixture] // we want the test to be availble if we use the linker diff --git a/tests/linker/link sdk/LinkSdkTest.cs b/tests/linker/link sdk/LinkSdkTest.cs index 05cc4e2275bc..2e8b677c6020 100644 --- a/tests/linker/link sdk/LinkSdkTest.cs +++ b/tests/linker/link sdk/LinkSdkTest.cs @@ -1,7 +1,3 @@ -using System; -using Foundation; - -using NUnit.Framework; namespace LinkSdkTests { [TestFixture] diff --git a/tests/linker/link sdk/LocaleTest.cs b/tests/linker/link sdk/LocaleTest.cs index 38e400f8ad74..fa4e1fef6261 100644 --- a/tests/linker/link sdk/LocaleTest.cs +++ b/tests/linker/link sdk/LocaleTest.cs @@ -1,10 +1,5 @@ // Copyright 2016 Xamarin Inc. All rights reserved. -using System; -using System.Collections.Generic; -using Foundation; -using NUnit.Framework; - namespace LinkSdk { [TestFixture] diff --git a/tests/linker/link sdk/OptimizeGeneratedCodeTest.cs b/tests/linker/link sdk/OptimizeGeneratedCodeTest.cs index 12856dd8953f..719c37c36724 100644 --- a/tests/linker/link sdk/OptimizeGeneratedCodeTest.cs +++ b/tests/linker/link sdk/OptimizeGeneratedCodeTest.cs @@ -7,20 +7,14 @@ // Copyright 2012-2013, 2016 Xamarin Inc. All rights reserved. // -using System; -using System.Collections.Generic; using System.IO; using System.Linq; using System.Reflection; using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; using CoreGraphics; -using Foundation; -using ObjCRuntime; #if !__MACOS__ using UIKit; #endif -using NUnit.Framework; namespace Linker.Shared { diff --git a/tests/linker/link sdk/PclTest.cs b/tests/linker/link sdk/PclTest.cs index 451b74f2d548..9737f1ecaadb 100644 --- a/tests/linker/link sdk/PclTest.cs +++ b/tests/linker/link sdk/PclTest.cs @@ -1,12 +1,8 @@ -using System; using System.IO; using System.Net; using System.ServiceModel; using System.Windows.Input; using System.Xml; -using Foundation; -using ObjCRuntime; -using NUnit.Framework; namespace LinkSdk { diff --git a/tests/linker/link sdk/ReflectionTest.cs b/tests/linker/link sdk/ReflectionTest.cs index 28b515a68a63..9965f33878ca 100644 --- a/tests/linker/link sdk/ReflectionTest.cs +++ b/tests/linker/link sdk/ReflectionTest.cs @@ -1,9 +1,6 @@ // Copyright 2016 Xamarin Inc. All rights reserved. -using System; using System.Reflection; -using Foundation; -using NUnit.Framework; namespace Linker.Shared.Reflection { diff --git a/tests/linker/link sdk/TaskTest.cs b/tests/linker/link sdk/TaskTest.cs index 9313e728812c..b614bc21e4be 100644 --- a/tests/linker/link sdk/TaskTest.cs +++ b/tests/linker/link sdk/TaskTest.cs @@ -1,11 +1,6 @@ -using System; -using System.Collections.Generic; using System.Collections.Concurrent; using System.Threading; using System.Threading.Tasks; -using Foundation; -using ObjCRuntime; -using NUnit.Framework; namespace LinkSdk { diff --git a/tests/monotouch-test/ARKit/ARAnchorTest.cs b/tests/monotouch-test/ARKit/ARAnchorTest.cs index 3c1bab71dec4..567a7638839d 100644 --- a/tests/monotouch-test/ARKit/ARAnchorTest.cs +++ b/tests/monotouch-test/ARKit/ARAnchorTest.cs @@ -9,11 +9,7 @@ #if HAS_ARKIT -using System; using ARKit; -using Foundation; -using ObjCRuntime; -using NUnit.Framework; using Xamarin.Utils; using MatrixFloat4x4 = global::CoreGraphics.NMatrix4; diff --git a/tests/monotouch-test/ARKit/ARConfigurationTest.cs b/tests/monotouch-test/ARKit/ARConfigurationTest.cs index 616f0fbf38e0..567cf41d6182 100644 --- a/tests/monotouch-test/ARKit/ARConfigurationTest.cs +++ b/tests/monotouch-test/ARKit/ARConfigurationTest.cs @@ -1,11 +1,7 @@ #if HAS_ARKIT -using System; using System.Reflection; using ARKit; -using Foundation; -using ObjCRuntime; -using NUnit.Framework; using Xamarin.Utils; namespace MonoTouchFixtures.ARKit { diff --git a/tests/monotouch-test/ARKit/AREnvironmentProbeAnchorTest.cs b/tests/monotouch-test/ARKit/AREnvironmentProbeAnchorTest.cs index 69bb89dc9245..186da1aebbc3 100644 --- a/tests/monotouch-test/ARKit/AREnvironmentProbeAnchorTest.cs +++ b/tests/monotouch-test/ARKit/AREnvironmentProbeAnchorTest.cs @@ -9,11 +9,7 @@ #if HAS_ARKIT -using System; using ARKit; -using Foundation; -using ObjCRuntime; -using NUnit.Framework; using Xamarin.Utils; using VectorFloat3 = global::CoreGraphics.NVector3; diff --git a/tests/monotouch-test/ARKit/ARFaceGeometryTest.cs b/tests/monotouch-test/ARKit/ARFaceGeometryTest.cs index 9f9987873398..b69229252223 100644 --- a/tests/monotouch-test/ARKit/ARFaceGeometryTest.cs +++ b/tests/monotouch-test/ARKit/ARFaceGeometryTest.cs @@ -9,13 +9,8 @@ #if HAS_ARKIT -using System; -using System.Runtime.InteropServices; using System.Threading.Tasks; using ARKit; -using Foundation; -using NUnit.Framework; -using ObjCRuntime; using Xamarin.Utils; using VectorFloat2 = global::System.Numerics.Vector2; diff --git a/tests/monotouch-test/ARKit/ARPlaneGeometryTest.cs b/tests/monotouch-test/ARKit/ARPlaneGeometryTest.cs index a18689d9e5d0..7faf0ea2ae5e 100644 --- a/tests/monotouch-test/ARKit/ARPlaneGeometryTest.cs +++ b/tests/monotouch-test/ARKit/ARPlaneGeometryTest.cs @@ -9,13 +9,8 @@ #if HAS_ARKIT -using System; -using System.Runtime.InteropServices; using System.Threading.Tasks; using ARKit; -using Foundation; -using NUnit.Framework; -using ObjCRuntime; using Xamarin.Utils; using VectorFloat2 = global::System.Numerics.Vector2; diff --git a/tests/monotouch-test/ARKit/ARPointCloudTest.cs b/tests/monotouch-test/ARKit/ARPointCloudTest.cs index 4b3e2cc6fae4..f3a1bb31f5e4 100644 --- a/tests/monotouch-test/ARKit/ARPointCloudTest.cs +++ b/tests/monotouch-test/ARKit/ARPointCloudTest.cs @@ -9,14 +9,9 @@ #if HAS_ARKIT -using System; -using System.Runtime.InteropServices; using System.Threading.Tasks; using ARKit; using AVFoundation; -using Foundation; -using NUnit.Framework; -using ObjCRuntime; using Xamarin.Utils; using MatrixFloat2x2 = global::CoreGraphics.NMatrix2; diff --git a/tests/monotouch-test/ARKit/ARReferenceObjectTest.cs b/tests/monotouch-test/ARKit/ARReferenceObjectTest.cs index 0e35e6ce7bc6..b4e1e373fbbd 100644 --- a/tests/monotouch-test/ARKit/ARReferenceObjectTest.cs +++ b/tests/monotouch-test/ARKit/ARReferenceObjectTest.cs @@ -9,11 +9,7 @@ #if HAS_ARKIT -using System; using ARKit; -using Foundation; -using ObjCRuntime; -using NUnit.Framework; using Xamarin.Utils; using VectorFloat3 = global::CoreGraphics.NVector3; diff --git a/tests/monotouch-test/ARKit/ARSkeleton2DTest.cs b/tests/monotouch-test/ARKit/ARSkeleton2DTest.cs index a5b23d75bfeb..8155bf910b39 100644 --- a/tests/monotouch-test/ARKit/ARSkeleton2DTest.cs +++ b/tests/monotouch-test/ARKit/ARSkeleton2DTest.cs @@ -9,13 +9,8 @@ #if HAS_ARKIT -using System; -using System.Runtime.InteropServices; using System.Threading.Tasks; using ARKit; -using Foundation; -using NUnit.Framework; -using ObjCRuntime; using Xamarin.Utils; using Vector2 = global::System.Numerics.Vector2; diff --git a/tests/monotouch-test/ARKit/ARSkeleton3DTest.cs b/tests/monotouch-test/ARKit/ARSkeleton3DTest.cs index 931e29a7bed9..b0c41d273dd0 100644 --- a/tests/monotouch-test/ARKit/ARSkeleton3DTest.cs +++ b/tests/monotouch-test/ARKit/ARSkeleton3DTest.cs @@ -9,13 +9,8 @@ #if HAS_ARKIT -using System; -using System.Runtime.InteropServices; using System.Threading.Tasks; using ARKit; -using Foundation; -using NUnit.Framework; -using ObjCRuntime; using Xamarin.Utils; using Matrix4 = global::CoreGraphics.NMatrix4; diff --git a/tests/monotouch-test/ARKit/ARSkeletonTest.cs b/tests/monotouch-test/ARKit/ARSkeletonTest.cs index ed2432ff280d..28d6eddd37c2 100644 --- a/tests/monotouch-test/ARKit/ARSkeletonTest.cs +++ b/tests/monotouch-test/ARKit/ARSkeletonTest.cs @@ -1,12 +1,7 @@ #if HAS_ARKIT -using System; -using System.Runtime.InteropServices; using System.Threading.Tasks; using ARKit; -using Foundation; -using NUnit.Framework; -using ObjCRuntime; using Xamarin.Utils; namespace monotouchtest.ARKit { diff --git a/tests/monotouch-test/AVFoundation/AVAssetDownloadUrlSessionTests.cs b/tests/monotouch-test/AVFoundation/AVAssetDownloadUrlSessionTests.cs index 31060fb87273..fcade58c5006 100644 --- a/tests/monotouch-test/AVFoundation/AVAssetDownloadUrlSessionTests.cs +++ b/tests/monotouch-test/AVFoundation/AVAssetDownloadUrlSessionTests.cs @@ -10,12 +10,7 @@ #if !__TVOS__ && !MONOMAC -using System; -using ObjCRuntime; - -using Foundation; using AVFoundation; -using NUnit.Framework; namespace monotouchtest { [TestFixture] diff --git a/tests/monotouch-test/AVFoundation/AVAssetImageGeneratorTest.cs b/tests/monotouch-test/AVFoundation/AVAssetImageGeneratorTest.cs index b091166aee6b..6d3b9c2c035e 100644 --- a/tests/monotouch-test/AVFoundation/AVAssetImageGeneratorTest.cs +++ b/tests/monotouch-test/AVFoundation/AVAssetImageGeneratorTest.cs @@ -7,15 +7,11 @@ // Copyright 2012 Xamarin Inc. All rights reserved. // -using System; using System.IO; using System.Threading; using CoreGraphics; -using Foundation; using AVFoundation; using CoreMedia; -using ObjCRuntime; -using NUnit.Framework; using Xamarin.Utils; namespace MonoTouchFixtures.AVFoundation { diff --git a/tests/monotouch-test/AVFoundation/AVAudioConverterPrimeInfoTest.cs b/tests/monotouch-test/AVFoundation/AVAudioConverterPrimeInfoTest.cs index 98004a4ef41f..b789af1280ed 100644 --- a/tests/monotouch-test/AVFoundation/AVAudioConverterPrimeInfoTest.cs +++ b/tests/monotouch-test/AVFoundation/AVAudioConverterPrimeInfoTest.cs @@ -1,6 +1,4 @@ -using Foundation; using AVFoundation; -using NUnit.Framework; namespace MonoTouchFixtures.AVFoundation { [TestFixture] diff --git a/tests/monotouch-test/AVFoundation/AVAudioFormatTest.cs b/tests/monotouch-test/AVFoundation/AVAudioFormatTest.cs index 3fbaaed6a863..f03f7a517c2a 100644 --- a/tests/monotouch-test/AVFoundation/AVAudioFormatTest.cs +++ b/tests/monotouch-test/AVFoundation/AVAudioFormatTest.cs @@ -3,13 +3,8 @@ // Whitney Schmidt (whschm@microsoft.com) // Copyright 2020 Microsoft Corp. -using System; - using AudioToolbox; -using Foundation; using AVFoundation; -using NUnit.Framework; -using ObjCRuntime; using Xamarin.Utils; namespace MonoTouchFixtures.AVFoundation { diff --git a/tests/monotouch-test/AVFoundation/AVAudioIONode.cs b/tests/monotouch-test/AVFoundation/AVAudioIONode.cs index 4104fb5b8f27..6627f4a6f059 100644 --- a/tests/monotouch-test/AVFoundation/AVAudioIONode.cs +++ b/tests/monotouch-test/AVFoundation/AVAudioIONode.cs @@ -1,9 +1,6 @@ #if __MACOS__ -using System; -using NUnit.Framework; using AppKit; -using Foundation; using AudioUnit; using AUUnit = AudioUnit.AudioUnit; using AVFoundation; diff --git a/tests/monotouch-test/AVFoundation/AVAudioSinkNodeTest.cs b/tests/monotouch-test/AVFoundation/AVAudioSinkNodeTest.cs index d79c726d69c9..e0b19becf97a 100644 --- a/tests/monotouch-test/AVFoundation/AVAudioSinkNodeTest.cs +++ b/tests/monotouch-test/AVFoundation/AVAudioSinkNodeTest.cs @@ -1,13 +1,8 @@ -using System; using System.Linq; -using System.Runtime.InteropServices; using System.Threading; -using NUnit.Framework; - using AudioToolbox; using AVFoundation; -using Foundation; using Xamarin.Tests; diff --git a/tests/monotouch-test/AVFoundation/AVAudioSourceNodeTest.cs b/tests/monotouch-test/AVFoundation/AVAudioSourceNodeTest.cs index cd14184d1df0..34a013101784 100644 --- a/tests/monotouch-test/AVFoundation/AVAudioSourceNodeTest.cs +++ b/tests/monotouch-test/AVFoundation/AVAudioSourceNodeTest.cs @@ -1,16 +1,11 @@ -using System; using System.IO; using System.Linq; using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; using System.Threading; using System.Threading.Tasks; -using NUnit.Framework; - using AudioToolbox; using AVFoundation; -using Foundation; namespace MonoTouchFixtures.AVFoundation { [TestFixture] diff --git a/tests/monotouch-test/AVFoundation/AVAudioVoiceProcessingOtherAudioDuckingConfigurationTest.cs b/tests/monotouch-test/AVFoundation/AVAudioVoiceProcessingOtherAudioDuckingConfigurationTest.cs index ba4bbf57c9c5..d55e05afc0d9 100644 --- a/tests/monotouch-test/AVFoundation/AVAudioVoiceProcessingOtherAudioDuckingConfigurationTest.cs +++ b/tests/monotouch-test/AVFoundation/AVAudioVoiceProcessingOtherAudioDuckingConfigurationTest.cs @@ -4,12 +4,7 @@ #if !__TVOS__ -using System; - using AVFoundation; -using Foundation; - -using NUnit.Framework; #nullable enable diff --git a/tests/monotouch-test/AVFoundation/AVBeatRangeTest.cs b/tests/monotouch-test/AVFoundation/AVBeatRangeTest.cs index 2476189039fc..924989a628f2 100644 --- a/tests/monotouch-test/AVFoundation/AVBeatRangeTest.cs +++ b/tests/monotouch-test/AVFoundation/AVBeatRangeTest.cs @@ -1,6 +1,4 @@ -using Foundation; using AVFoundation; -using NUnit.Framework; namespace MonoTouchFixtures.AVFoundation { [TestFixture] diff --git a/tests/monotouch-test/AVFoundation/AVCaptionDimensionTest.cs b/tests/monotouch-test/AVFoundation/AVCaptionDimensionTest.cs index 0c59629969b7..fec6187991ea 100644 --- a/tests/monotouch-test/AVFoundation/AVCaptionDimensionTest.cs +++ b/tests/monotouch-test/AVFoundation/AVCaptionDimensionTest.cs @@ -1,9 +1,5 @@ #if __MACOS__ -using System; -using Foundation; using AVFoundation; -using NUnit.Framework; -using ObjCRuntime; using Xamarin.Utils; namespace MonoTouchFixtures.AVFoundation { diff --git a/tests/monotouch-test/AVFoundation/AVCaptionPointTest.cs b/tests/monotouch-test/AVFoundation/AVCaptionPointTest.cs index 863daaf81d9d..c0c33c7814bf 100644 --- a/tests/monotouch-test/AVFoundation/AVCaptionPointTest.cs +++ b/tests/monotouch-test/AVFoundation/AVCaptionPointTest.cs @@ -1,9 +1,5 @@ #if __MACOS__ -using System; -using Foundation; using AVFoundation; -using NUnit.Framework; -using ObjCRuntime; using Xamarin.Utils; namespace MonoTouchFixtures.AVFoundation { diff --git a/tests/monotouch-test/AVFoundation/AVCaptionSizeTest.cs b/tests/monotouch-test/AVFoundation/AVCaptionSizeTest.cs index 09bb8ca6ee3c..7d615951c51f 100644 --- a/tests/monotouch-test/AVFoundation/AVCaptionSizeTest.cs +++ b/tests/monotouch-test/AVFoundation/AVCaptionSizeTest.cs @@ -1,9 +1,5 @@ #if __MACOS__ -using System; -using Foundation; using AVFoundation; -using NUnit.Framework; -using ObjCRuntime; using Xamarin.Utils; namespace MonoTouchFixtures.AVFoundation { diff --git a/tests/monotouch-test/AVFoundation/AVCapturePhotoBracketSettingsTest.cs b/tests/monotouch-test/AVFoundation/AVCapturePhotoBracketSettingsTest.cs index 62b83c65623c..17fce955dc91 100644 --- a/tests/monotouch-test/AVFoundation/AVCapturePhotoBracketSettingsTest.cs +++ b/tests/monotouch-test/AVFoundation/AVCapturePhotoBracketSettingsTest.cs @@ -1,9 +1,6 @@ #if !__TVOS__ && !MONOMAC -using System; -using Foundation; using AVFoundation; -using NUnit.Framework; namespace monotouchtest { [TestFixture] diff --git a/tests/monotouch-test/AVFoundation/AVCaptureReactionTypeTest.cs b/tests/monotouch-test/AVFoundation/AVCaptureReactionTypeTest.cs index 451f58c27cdf..215435084bec 100644 --- a/tests/monotouch-test/AVFoundation/AVCaptureReactionTypeTest.cs +++ b/tests/monotouch-test/AVFoundation/AVCaptureReactionTypeTest.cs @@ -1,12 +1,7 @@ // // Unit tests for AVCaptureReactionType -using System; - using AVFoundation; -using Foundation; - -using NUnit.Framework; #nullable enable diff --git a/tests/monotouch-test/AVFoundation/AVCaptureWhiteBalanceGainsTest.cs b/tests/monotouch-test/AVFoundation/AVCaptureWhiteBalanceGainsTest.cs index a4efc398cf2a..474de9bfacf5 100644 --- a/tests/monotouch-test/AVFoundation/AVCaptureWhiteBalanceGainsTest.cs +++ b/tests/monotouch-test/AVFoundation/AVCaptureWhiteBalanceGainsTest.cs @@ -1,6 +1,4 @@ -using Foundation; using AVFoundation; -using NUnit.Framework; namespace MonoTouchFixtures.AVFoundation { [TestFixture] diff --git a/tests/monotouch-test/AVFoundation/AVDepthDataTests.cs b/tests/monotouch-test/AVFoundation/AVDepthDataTests.cs index e7f28d68fb79..573d561e498c 100644 --- a/tests/monotouch-test/AVFoundation/AVDepthDataTests.cs +++ b/tests/monotouch-test/AVFoundation/AVDepthDataTests.cs @@ -8,10 +8,7 @@ // Copyright 2017 Xamarin Inc. All rights reserved. // -using NUnit.Framework; - using AVFoundation; -using Foundation; using ImageIO; namespace MonoTouchFixtures.AVFoundation { diff --git a/tests/monotouch-test/AVFoundation/AVPlayerLayerTest.cs b/tests/monotouch-test/AVFoundation/AVPlayerLayerTest.cs index f34f73011104..d8fa4085e402 100644 --- a/tests/monotouch-test/AVFoundation/AVPlayerLayerTest.cs +++ b/tests/monotouch-test/AVFoundation/AVPlayerLayerTest.cs @@ -1,9 +1,6 @@ #if __MACOS__ -using System; -using NUnit.Framework; using AppKit; -using Foundation; using AudioUnit; using AVFoundation; using AUUnit = AudioUnit.AudioUnit; diff --git a/tests/monotouch-test/AVFoundation/AVSpeechSynthesisMarkerTest.cs b/tests/monotouch-test/AVFoundation/AVSpeechSynthesisMarkerTest.cs index 0c247c4fe3c1..ce63130e258b 100644 --- a/tests/monotouch-test/AVFoundation/AVSpeechSynthesisMarkerTest.cs +++ b/tests/monotouch-test/AVFoundation/AVSpeechSynthesisMarkerTest.cs @@ -1,12 +1,7 @@ // // Unit tests for AVSpeechSynthesisMarker -using System; - using AVFoundation; -using Foundation; - -using NUnit.Framework; #nullable enable diff --git a/tests/monotouch-test/AVFoundation/AVSpeechUtteranceTest.cs b/tests/monotouch-test/AVFoundation/AVSpeechUtteranceTest.cs index 16130eda0a97..247de454fb9a 100644 --- a/tests/monotouch-test/AVFoundation/AVSpeechUtteranceTest.cs +++ b/tests/monotouch-test/AVFoundation/AVSpeechUtteranceTest.cs @@ -1,12 +1,7 @@ // // Unit tests for AVSpeechUtterance -using System; - using AVFoundation; -using Foundation; - -using NUnit.Framework; #nullable enable diff --git a/tests/monotouch-test/AVFoundation/AVVideoSettingsCompressedTest.cs b/tests/monotouch-test/AVFoundation/AVVideoSettingsCompressedTest.cs index 1c0b56579760..abab966ec9d4 100644 --- a/tests/monotouch-test/AVFoundation/AVVideoSettingsCompressedTest.cs +++ b/tests/monotouch-test/AVFoundation/AVVideoSettingsCompressedTest.cs @@ -1,7 +1,5 @@ using System.IO; -using Foundation; using AVFoundation; -using NUnit.Framework; namespace monotouchtest.AVFoundation { [TestFixture] [Preserve (AllMembers = true)] diff --git a/tests/monotouch-test/AVFoundation/AudioPlayerTest.cs b/tests/monotouch-test/AVFoundation/AudioPlayerTest.cs index cb9d07ea57e1..c6e342276eab 100644 --- a/tests/monotouch-test/AVFoundation/AudioPlayerTest.cs +++ b/tests/monotouch-test/AVFoundation/AudioPlayerTest.cs @@ -8,10 +8,7 @@ // using System.IO; -using Foundation; using AVFoundation; -using NUnit.Framework; -using System; #nullable enable diff --git a/tests/monotouch-test/AVFoundation/AudioRecorderTest.cs b/tests/monotouch-test/AVFoundation/AudioRecorderTest.cs index e64c061933f7..6f02236258e8 100644 --- a/tests/monotouch-test/AVFoundation/AudioRecorderTest.cs +++ b/tests/monotouch-test/AVFoundation/AudioRecorderTest.cs @@ -5,10 +5,8 @@ #if !__TVOS__ -using Foundation; using AudioToolbox; using AVFoundation; -using NUnit.Framework; namespace MonoTouchFixtures.AVFoundation { [TestFixture] diff --git a/tests/monotouch-test/AVFoundation/CMTagCollectionVideoOutputPresetTest.cs b/tests/monotouch-test/AVFoundation/CMTagCollectionVideoOutputPresetTest.cs index 19a8efc5d66b..19d26abcc5f2 100644 --- a/tests/monotouch-test/AVFoundation/CMTagCollectionVideoOutputPresetTest.cs +++ b/tests/monotouch-test/AVFoundation/CMTagCollectionVideoOutputPresetTest.cs @@ -1,13 +1,8 @@ // // Unit tests for CMTagCollectionVideoOutputPreset -using System; - using AVFoundation; using CoreMedia; -using Foundation; - -using NUnit.Framework; #nullable enable diff --git a/tests/monotouch-test/AVFoundation/CaptureMetadataOutputTest.cs b/tests/monotouch-test/AVFoundation/CaptureMetadataOutputTest.cs index 3385465aaa4a..41e65471a733 100644 --- a/tests/monotouch-test/AVFoundation/CaptureMetadataOutputTest.cs +++ b/tests/monotouch-test/AVFoundation/CaptureMetadataOutputTest.cs @@ -9,13 +9,9 @@ #if !__TVOS__ && !MONOMAC -using System; using System.Reflection; using CoreGraphics; -using Foundation; using AVFoundation; -using ObjCRuntime; -using NUnit.Framework; using Xamarin.Utils; namespace MonoTouchFixtures.AVFoundation { diff --git a/tests/monotouch-test/AVFoundation/FourCCTest.cs b/tests/monotouch-test/AVFoundation/FourCCTest.cs index 3a91a42da210..bcd7fb138a3a 100644 --- a/tests/monotouch-test/AVFoundation/FourCCTest.cs +++ b/tests/monotouch-test/AVFoundation/FourCCTest.cs @@ -1,7 +1,4 @@ -using System; -using Foundation; using AVFoundation; -using NUnit.Framework; namespace MonoTouchFixtures.AVFoundation { [TestFixture] diff --git a/tests/monotouch-test/AVFoundation/MetadataObjectTest.cs b/tests/monotouch-test/AVFoundation/MetadataObjectTest.cs index a98b7b265ac3..31bc87d319ee 100644 --- a/tests/monotouch-test/AVFoundation/MetadataObjectTest.cs +++ b/tests/monotouch-test/AVFoundation/MetadataObjectTest.cs @@ -9,11 +9,7 @@ #if !__TVOS__ -using System; -using Foundation; using AVFoundation; -using ObjCRuntime; -using NUnit.Framework; using Xamarin.Utils; namespace MonoTouchFixtures.AVFoundation { diff --git a/tests/monotouch-test/AVFoundation/PlayerItemTest.cs b/tests/monotouch-test/AVFoundation/PlayerItemTest.cs index d4d9a8481059..2417f88695c0 100644 --- a/tests/monotouch-test/AVFoundation/PlayerItemTest.cs +++ b/tests/monotouch-test/AVFoundation/PlayerItemTest.cs @@ -8,13 +8,11 @@ // using AVFoundation; -using Foundation; #if MONOMAC using AppKit; #else using UIKit; #endif -using NUnit.Framework; namespace MonoTouchFixtures.AVFoundation { diff --git a/tests/monotouch-test/AVFoundation/PlayerItemVideoOutputTest.cs b/tests/monotouch-test/AVFoundation/PlayerItemVideoOutputTest.cs index 76a5a166863a..e6d9958c174d 100644 --- a/tests/monotouch-test/AVFoundation/PlayerItemVideoOutputTest.cs +++ b/tests/monotouch-test/AVFoundation/PlayerItemVideoOutputTest.cs @@ -7,12 +7,8 @@ // Copyright 2016 Xamarin Inc. All rights reserved. // -using System; using AVFoundation; using CoreVideo; -using Foundation; -using ObjCRuntime; -using NUnit.Framework; using Xamarin.Utils; namespace MonoTouchFixtures.AVFoundation { diff --git a/tests/monotouch-test/AVFoundation/QueuePlayerTest.cs b/tests/monotouch-test/AVFoundation/QueuePlayerTest.cs index 8f166661a9a1..04f927381abf 100644 --- a/tests/monotouch-test/AVFoundation/QueuePlayerTest.cs +++ b/tests/monotouch-test/AVFoundation/QueuePlayerTest.cs @@ -7,9 +7,7 @@ // Copyright 2013 Xamarin Inc. All rights reserved. // -using Foundation; using AVFoundation; -using NUnit.Framework; namespace MonoTouchFixtures.AVFoundation { diff --git a/tests/monotouch-test/AVFoundation/SpeechSynthesisVoiceTest.cs b/tests/monotouch-test/AVFoundation/SpeechSynthesisVoiceTest.cs index c776c2253f3f..1c84a7aaac46 100644 --- a/tests/monotouch-test/AVFoundation/SpeechSynthesisVoiceTest.cs +++ b/tests/monotouch-test/AVFoundation/SpeechSynthesisVoiceTest.cs @@ -9,14 +9,11 @@ #if !MONOMAC using AVFoundation; -using Foundation; -using ObjCRuntime; #if MONOMAC using AppKit; #else using UIKit; #endif -using NUnit.Framework; using Xamarin.Utils; namespace MonoTouchFixtures.AVFoundation { diff --git a/tests/monotouch-test/AVFoundation/UtilitiesTest.cs b/tests/monotouch-test/AVFoundation/UtilitiesTest.cs index f98d6750a466..63b8597f919d 100644 --- a/tests/monotouch-test/AVFoundation/UtilitiesTest.cs +++ b/tests/monotouch-test/AVFoundation/UtilitiesTest.cs @@ -7,18 +7,13 @@ // Copyright 2014 Xamarin Inc. All rights reserved. // -using System; -using System.Runtime.InteropServices; using CoreGraphics; -using Foundation; #if MONOMAC using AppKit; #else using UIKit; #endif using AVFoundation; -using ObjCRuntime; -using NUnit.Framework; namespace MonoTouchFixtures.AVFoundation { diff --git a/tests/monotouch-test/AVFoundation/VideoCompositionInstructionTest.cs b/tests/monotouch-test/AVFoundation/VideoCompositionInstructionTest.cs index b8363ca691d1..b20ac786e010 100644 --- a/tests/monotouch-test/AVFoundation/VideoCompositionInstructionTest.cs +++ b/tests/monotouch-test/AVFoundation/VideoCompositionInstructionTest.cs @@ -7,14 +7,12 @@ // Copyright 2013 Xamarin Inc. All rights reserved. // -using Foundation; #if MONOMAC using AppKit; #else using UIKit; #endif using AVFoundation; -using NUnit.Framework; namespace MonoTouchFixtures.AVFoundation { diff --git a/tests/monotouch-test/Accessibility/AXHearingUtilitiesTests.cs b/tests/monotouch-test/Accessibility/AXHearingUtilitiesTests.cs index 59e3069e5733..5929f72990e5 100644 --- a/tests/monotouch-test/Accessibility/AXHearingUtilitiesTests.cs +++ b/tests/monotouch-test/Accessibility/AXHearingUtilitiesTests.cs @@ -7,10 +7,7 @@ #if !__TVOS__ && !MONOMAC -using System; -using Foundation; using Accessibility; -using NUnit.Framework; namespace MonoTouchFixtures.Accessibility { diff --git a/tests/monotouch-test/Accessibility/AXPrefers.cs b/tests/monotouch-test/Accessibility/AXPrefers.cs index 3d1448a177b1..0208fa1151f4 100644 --- a/tests/monotouch-test/Accessibility/AXPrefers.cs +++ b/tests/monotouch-test/Accessibility/AXPrefers.cs @@ -2,10 +2,7 @@ // Copyright 2024 Microsoft Corp // -using System; -using Foundation; using Accessibility; -using NUnit.Framework; namespace MonoTouchFixtures.Accessibility { diff --git a/tests/monotouch-test/Accessibility/AXSettings.cs b/tests/monotouch-test/Accessibility/AXSettings.cs index af782a9e7347..ba7b854d1c50 100644 --- a/tests/monotouch-test/Accessibility/AXSettings.cs +++ b/tests/monotouch-test/Accessibility/AXSettings.cs @@ -2,13 +2,9 @@ // Copyright 2024 Microsoft Corp // -using System; using System.Threading.Tasks; using Accessibility; -using Foundation; - -using NUnit.Framework; namespace MonoTouchFixtures.Accessibility { diff --git a/tests/monotouch-test/AdSupport/IdentifierManagerTest.cs b/tests/monotouch-test/AdSupport/IdentifierManagerTest.cs index 7a9242f1e953..aa1055a0cf5f 100644 --- a/tests/monotouch-test/AdSupport/IdentifierManagerTest.cs +++ b/tests/monotouch-test/AdSupport/IdentifierManagerTest.cs @@ -9,11 +9,8 @@ #if !MONOMAC -using System; -using Foundation; using UIKit; using AdSupport; -using NUnit.Framework; namespace MonoTouchFixtures.AdSupport { diff --git a/tests/monotouch-test/AddressBook/AddressBookTest.cs b/tests/monotouch-test/AddressBook/AddressBookTest.cs index 81f30487c14c..4bd8e66706a4 100644 --- a/tests/monotouch-test/AddressBook/AddressBookTest.cs +++ b/tests/monotouch-test/AddressBook/AddressBookTest.cs @@ -9,12 +9,8 @@ #if !__MACCATALYST__ && HAS_ADDRESSBOOK -using System; -using Foundation; using UIKit; using AddressBook; -using ObjCRuntime; -using NUnit.Framework; using Xamarin.Utils; namespace MonoTouchFixtures.AddressBook { diff --git a/tests/monotouch-test/AddressBook/PersonTest.cs b/tests/monotouch-test/AddressBook/PersonTest.cs index 74e8316ac4ec..0ed91d0e7b81 100644 --- a/tests/monotouch-test/AddressBook/PersonTest.cs +++ b/tests/monotouch-test/AddressBook/PersonTest.cs @@ -9,12 +9,8 @@ #if !__TVOS__ && !MONOMAC -using System; -using Foundation; using UIKit; using AddressBook; -using ObjCRuntime; -using NUnit.Framework; using Xamarin.Utils; namespace MonoTouchFixtures.AddressBook { diff --git a/tests/monotouch-test/AddressBook/SourceTest.cs b/tests/monotouch-test/AddressBook/SourceTest.cs index 5f7090317c22..8cc76aaf1828 100644 --- a/tests/monotouch-test/AddressBook/SourceTest.cs +++ b/tests/monotouch-test/AddressBook/SourceTest.cs @@ -9,12 +9,8 @@ #if !__TVOS__ && !MONOMAC && !__MACCATALYST__ -using System; -using Foundation; using UIKit; using AddressBook; -using ObjCRuntime; -using NUnit.Framework; using Xamarin.Utils; namespace MonoTouchFixtures.AddressBook { diff --git a/tests/monotouch-test/AddressBookUI/AddressFormattingTest.cs b/tests/monotouch-test/AddressBookUI/AddressFormattingTest.cs index 943eae5d88b5..e8f12ba416e0 100644 --- a/tests/monotouch-test/AddressBookUI/AddressFormattingTest.cs +++ b/tests/monotouch-test/AddressBookUI/AddressFormattingTest.cs @@ -9,13 +9,9 @@ #if HAS_ADDRESSBOOKUI -using System; using System.Globalization; -using Foundation; using AddressBookUI; -using ObjCRuntime; using UIKit; -using NUnit.Framework; using Xamarin.Utils; namespace MonoTouchFixtures.AddressBookUI { diff --git a/tests/monotouch-test/AppKit/DerivedEventTest.cs b/tests/monotouch-test/AppKit/DerivedEventTest.cs index 76fdb3df6f41..8a8776cf1f2e 100644 --- a/tests/monotouch-test/AppKit/DerivedEventTest.cs +++ b/tests/monotouch-test/AppKit/DerivedEventTest.cs @@ -1,12 +1,8 @@ #if __MACOS__ -using System; -using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Threading.Tasks; -using NUnit.Framework; -using Foundation; using AppKit; using CoreGraphics; diff --git a/tests/monotouch-test/AppKit/NSAppearance.cs b/tests/monotouch-test/AppKit/NSAppearance.cs index df2a8180d53b..a4ad7b1717ab 100644 --- a/tests/monotouch-test/AppKit/NSAppearance.cs +++ b/tests/monotouch-test/AppKit/NSAppearance.cs @@ -1,10 +1,6 @@ #if __MACOS__ -using NUnit.Framework; -using System; using AppKit; -using ObjCRuntime; -using Foundation; namespace Xamarin.Mac.Tests { [TestFixture] diff --git a/tests/monotouch-test/AppKit/NSApplication.cs b/tests/monotouch-test/AppKit/NSApplication.cs index 0b05facd212a..74c7fed4c6db 100644 --- a/tests/monotouch-test/AppKit/NSApplication.cs +++ b/tests/monotouch-test/AppKit/NSApplication.cs @@ -1,10 +1,6 @@ #if __MACOS__ -using NUnit.Framework; -using System; using AppKit; -using ObjCRuntime; -using Foundation; namespace Xamarin.Mac.Tests { [TestFixture] diff --git a/tests/monotouch-test/AppKit/NSCellTest.cs b/tests/monotouch-test/AppKit/NSCellTest.cs index eeca1e970939..c4a6a5b3e2ee 100644 --- a/tests/monotouch-test/AppKit/NSCellTest.cs +++ b/tests/monotouch-test/AppKit/NSCellTest.cs @@ -1,12 +1,6 @@ #if __MACOS__ -using System; -using System.Runtime.InteropServices; using AppKit; -using Foundation; -using ObjCRuntime; - -using NUnit.Framework; namespace MonoMacFixtures.AppKit { [TestFixture] diff --git a/tests/monotouch-test/AppKit/NSClipView.cs b/tests/monotouch-test/AppKit/NSClipView.cs index 14cd6600d549..f79eafde9144 100644 --- a/tests/monotouch-test/AppKit/NSClipView.cs +++ b/tests/monotouch-test/AppKit/NSClipView.cs @@ -1,11 +1,7 @@ #if __MACOS__ -using NUnit.Framework; -using System; using AppKit; using CoreGraphics; -using Foundation; -using ObjCRuntime; namespace Xamarin.Mac.Tests { [TestFixture] diff --git a/tests/monotouch-test/AppKit/NSColor.cs b/tests/monotouch-test/AppKit/NSColor.cs index 6eec31ee91e1..d0efb2e77952 100644 --- a/tests/monotouch-test/AppKit/NSColor.cs +++ b/tests/monotouch-test/AppKit/NSColor.cs @@ -1,11 +1,7 @@ #if __MACOS__ -using System; using System.Threading.Tasks; -using NUnit.Framework; using AppKit; -using Foundation; -using ObjCRuntime; namespace Xamarin.Mac.Tests { [TestFixture] diff --git a/tests/monotouch-test/AppKit/NSControl.cs b/tests/monotouch-test/AppKit/NSControl.cs index 8857d089625d..6fd7d7e23367 100644 --- a/tests/monotouch-test/AppKit/NSControl.cs +++ b/tests/monotouch-test/AppKit/NSControl.cs @@ -1,10 +1,6 @@ #if __MACOS__ -using NUnit.Framework; -using System; using AppKit; -using Foundation; -using ObjCRuntime; namespace Xamarin.Mac.Tests { [TestFixture] diff --git a/tests/monotouch-test/AppKit/NSDraggingItem.cs b/tests/monotouch-test/AppKit/NSDraggingItem.cs index 91e0743f95f1..bd578912922c 100644 --- a/tests/monotouch-test/AppKit/NSDraggingItem.cs +++ b/tests/monotouch-test/AppKit/NSDraggingItem.cs @@ -1,10 +1,6 @@ #if __MACOS__ -using System; -using NUnit.Framework; using AppKit; -using ObjCRuntime; -using Foundation; namespace Xamarin.Mac.Tests { [TestFixture] diff --git a/tests/monotouch-test/AppKit/NSEvent.cs b/tests/monotouch-test/AppKit/NSEvent.cs index e77159d81e43..640c31eda996 100644 --- a/tests/monotouch-test/AppKit/NSEvent.cs +++ b/tests/monotouch-test/AppKit/NSEvent.cs @@ -1,11 +1,7 @@ #if __MACOS__ -using NUnit.Framework; -using System; using AppKit; using CoreGraphics; -using Foundation; -using ObjCRuntime; namespace Xamarin.Mac.Tests { [TestFixture] diff --git a/tests/monotouch-test/AppKit/NSFont.cs b/tests/monotouch-test/AppKit/NSFont.cs index 44110e452504..fc69e6ae01ac 100644 --- a/tests/monotouch-test/AppKit/NSFont.cs +++ b/tests/monotouch-test/AppKit/NSFont.cs @@ -1,10 +1,6 @@ #if __MACOS__ -using System; -using NUnit.Framework; using AppKit; -using ObjCRuntime; -using Foundation; using CoreGraphics; using CoreText; diff --git a/tests/monotouch-test/AppKit/NSGradient.cs b/tests/monotouch-test/AppKit/NSGradient.cs index 3d8765ea6674..f441ee5c3f0e 100644 --- a/tests/monotouch-test/AppKit/NSGradient.cs +++ b/tests/monotouch-test/AppKit/NSGradient.cs @@ -1,10 +1,6 @@ #if __MACOS__ -using System; -using NUnit.Framework; using AppKit; -using Foundation; -using ObjCRuntime; namespace Xamarin.Mac.Tests { [TestFixture] diff --git a/tests/monotouch-test/AppKit/NSGraphics.cs b/tests/monotouch-test/AppKit/NSGraphics.cs index efb3c4193354..e2537d0c54ee 100644 --- a/tests/monotouch-test/AppKit/NSGraphics.cs +++ b/tests/monotouch-test/AppKit/NSGraphics.cs @@ -1,10 +1,7 @@ #if __MACOS__ -using System; using System.Threading.Tasks; -using NUnit.Framework; using AppKit; -using Foundation; namespace Xamarin.Mac.Tests { [TestFixture] diff --git a/tests/monotouch-test/AppKit/NSGridViewTest.cs b/tests/monotouch-test/AppKit/NSGridViewTest.cs index a0bb19ffe2b7..9640d05af1de 100644 --- a/tests/monotouch-test/AppKit/NSGridViewTest.cs +++ b/tests/monotouch-test/AppKit/NSGridViewTest.cs @@ -2,13 +2,9 @@ // Unit tests for NSGridView // - #if __MACOS__ -using System; using AppKit; -using Foundation; -using NUnit.Framework; namespace MonoTouchFixtures.AppKit { diff --git a/tests/monotouch-test/AppKit/NSImage.cs b/tests/monotouch-test/AppKit/NSImage.cs index 232cb797b57b..390d03ea6cdc 100644 --- a/tests/monotouch-test/AppKit/NSImage.cs +++ b/tests/monotouch-test/AppKit/NSImage.cs @@ -1,11 +1,7 @@ #if __MACOS__ -using NUnit.Framework; -using System; using AppKit; using CoreGraphics; -using Foundation; -using ObjCRuntime; namespace Xamarin.Mac.Tests { [TestFixture] diff --git a/tests/monotouch-test/AppKit/NSLayoutManagerTests.cs b/tests/monotouch-test/AppKit/NSLayoutManagerTests.cs index 4236ef3d8f1c..6ecdf24637b4 100644 --- a/tests/monotouch-test/AppKit/NSLayoutManagerTests.cs +++ b/tests/monotouch-test/AppKit/NSLayoutManagerTests.cs @@ -1,10 +1,6 @@ #if __MACOS__ -using System; -using NUnit.Framework; using AppKit; -using ObjCRuntime; -using Foundation; using CoreGraphics; namespace Xamarin.Mac.Tests { diff --git a/tests/monotouch-test/AppKit/NSOpenGLPixelFormat.cs b/tests/monotouch-test/AppKit/NSOpenGLPixelFormat.cs index 35f1da896a08..02ade0fbb44d 100644 --- a/tests/monotouch-test/AppKit/NSOpenGLPixelFormat.cs +++ b/tests/monotouch-test/AppKit/NSOpenGLPixelFormat.cs @@ -1,9 +1,6 @@ #if __MACOS__ -using System; -using NUnit.Framework; using AppKit; -using Foundation; namespace Xamarin.Mac.Tests { [TestFixture] diff --git a/tests/monotouch-test/AppKit/NSOutlineView.cs b/tests/monotouch-test/AppKit/NSOutlineView.cs index 6a211d9dba1b..ef19f1023834 100644 --- a/tests/monotouch-test/AppKit/NSOutlineView.cs +++ b/tests/monotouch-test/AppKit/NSOutlineView.cs @@ -1,10 +1,7 @@ #if __MACOS__ -using System; using System.Threading.Tasks; -using NUnit.Framework; using AppKit; -using Foundation; namespace Xamarin.Mac.Tests { [TestFixture] diff --git a/tests/monotouch-test/AppKit/NSPasteboard.cs b/tests/monotouch-test/AppKit/NSPasteboard.cs index c4dd02cc3a28..1e8bcc02bf39 100644 --- a/tests/monotouch-test/AppKit/NSPasteboard.cs +++ b/tests/monotouch-test/AppKit/NSPasteboard.cs @@ -1,15 +1,9 @@ #if __MACOS__ -using System; -using System.Collections.Generic; using System.Linq; using System.Threading; -using NUnit.Framework; - using AppKit; using DataDetection; -using ObjCRuntime; -using Foundation; using UniformTypeIdentifiers; namespace Xamarin.Mac.Tests { diff --git a/tests/monotouch-test/AppKit/NSPathControl.cs b/tests/monotouch-test/AppKit/NSPathControl.cs index cfe19b280a33..ef10103e81f3 100644 --- a/tests/monotouch-test/AppKit/NSPathControl.cs +++ b/tests/monotouch-test/AppKit/NSPathControl.cs @@ -1,10 +1,6 @@ #if __MACOS__ -using System; -using NUnit.Framework; using AppKit; -using ObjCRuntime; -using Foundation; namespace Xamarin.Mac.Tests { [TestFixture] diff --git a/tests/monotouch-test/AppKit/NSPathControlItem.cs b/tests/monotouch-test/AppKit/NSPathControlItem.cs index b4433e2ce2a0..a306e75ffb46 100644 --- a/tests/monotouch-test/AppKit/NSPathControlItem.cs +++ b/tests/monotouch-test/AppKit/NSPathControlItem.cs @@ -1,10 +1,6 @@ #if __MACOS__ -using System; -using NUnit.Framework; using AppKit; -using ObjCRuntime; -using Foundation; namespace Xamarin.Mac.Tests { [Preserve (AllMembers = true)] diff --git a/tests/monotouch-test/AppKit/NSScreen.cs b/tests/monotouch-test/AppKit/NSScreen.cs index f389e915bb95..f2faae10f34e 100644 --- a/tests/monotouch-test/AppKit/NSScreen.cs +++ b/tests/monotouch-test/AppKit/NSScreen.cs @@ -1,11 +1,7 @@ #if __MACOS__ -using NUnit.Framework; -using System; using System.Threading; using AppKit; -using ObjCRuntime; -using Foundation; namespace Xamarin.Mac.Tests { [TestFixture] diff --git a/tests/monotouch-test/AppKit/NSSearchField.cs b/tests/monotouch-test/AppKit/NSSearchField.cs index ebbcb4ca6760..98475e0cbc19 100644 --- a/tests/monotouch-test/AppKit/NSSearchField.cs +++ b/tests/monotouch-test/AppKit/NSSearchField.cs @@ -1,10 +1,6 @@ #if __MACOS__ -using System; -using NUnit.Framework; using AppKit; -using ObjCRuntime; -using Foundation; using Xamarin.Utils; namespace Xamarin.Mac.Tests { diff --git a/tests/monotouch-test/AppKit/NSSlider.cs b/tests/monotouch-test/AppKit/NSSlider.cs index f1cc2d327414..e65d154d420b 100644 --- a/tests/monotouch-test/AppKit/NSSlider.cs +++ b/tests/monotouch-test/AppKit/NSSlider.cs @@ -1,10 +1,6 @@ #if __MACOS__ -using NUnit.Framework; -using System; using AppKit; -using ObjCRuntime; -using Foundation; using Xamarin.Utils; namespace Xamarin.Mac.Tests { diff --git a/tests/monotouch-test/AppKit/NSSplitViewController.cs b/tests/monotouch-test/AppKit/NSSplitViewController.cs index 7eeb2afe57fe..b22c6230daa9 100644 --- a/tests/monotouch-test/AppKit/NSSplitViewController.cs +++ b/tests/monotouch-test/AppKit/NSSplitViewController.cs @@ -1,11 +1,7 @@ #if __MACOS__ -using System; -using NUnit.Framework; using System.Linq; using AppKit; -using ObjCRuntime; -using Foundation; namespace Xamarin.Mac.Tests { [Preserve (AllMembers = true)] diff --git a/tests/monotouch-test/AppKit/NSSplitViewItem.cs b/tests/monotouch-test/AppKit/NSSplitViewItem.cs index de3c784815d4..2f1e26eed8c9 100644 --- a/tests/monotouch-test/AppKit/NSSplitViewItem.cs +++ b/tests/monotouch-test/AppKit/NSSplitViewItem.cs @@ -1,11 +1,7 @@ #if __MACOS__ -using System; -using NUnit.Framework; using System.Linq; using AppKit; -using ObjCRuntime; -using Foundation; namespace Xamarin.Mac.Tests { [Preserve (AllMembers = true)] diff --git a/tests/monotouch-test/AppKit/NSStackView.cs b/tests/monotouch-test/AppKit/NSStackView.cs index 3ad646ce080b..f6a15913f308 100644 --- a/tests/monotouch-test/AppKit/NSStackView.cs +++ b/tests/monotouch-test/AppKit/NSStackView.cs @@ -1,10 +1,6 @@ #if __MACOS__ -using System; -using NUnit.Framework; using AppKit; -using ObjCRuntime; -using Foundation; namespace Xamarin.Mac.Tests { [Preserve (AllMembers = true)] diff --git a/tests/monotouch-test/AppKit/NSStepperCell.cs b/tests/monotouch-test/AppKit/NSStepperCell.cs index 8d14239fd74c..aedf7405e8c3 100644 --- a/tests/monotouch-test/AppKit/NSStepperCell.cs +++ b/tests/monotouch-test/AppKit/NSStepperCell.cs @@ -1,9 +1,6 @@ #if __MACOS__ -using System; -using NUnit.Framework; using AppKit; -using Foundation; namespace apitest { [TestFixture] diff --git a/tests/monotouch-test/AppKit/NSStoryboardSegue.cs b/tests/monotouch-test/AppKit/NSStoryboardSegue.cs index 5334acc2d115..cdab19a93b9a 100644 --- a/tests/monotouch-test/AppKit/NSStoryboardSegue.cs +++ b/tests/monotouch-test/AppKit/NSStoryboardSegue.cs @@ -1,10 +1,6 @@ #if __MACOS__ -using System; -using NUnit.Framework; using AppKit; -using ObjCRuntime; -using Foundation; namespace Xamarin.Mac.Tests { [Preserve (AllMembers = true)] diff --git a/tests/monotouch-test/AppKit/NSTabViewController.cs b/tests/monotouch-test/AppKit/NSTabViewController.cs index 254c148fbd1a..73ef6a0656ed 100644 --- a/tests/monotouch-test/AppKit/NSTabViewController.cs +++ b/tests/monotouch-test/AppKit/NSTabViewController.cs @@ -1,11 +1,7 @@ #if __MACOS__ -using System; -using NUnit.Framework; using System.Linq; using AppKit; -using ObjCRuntime; -using Foundation; using Xamarin.Utils; namespace Xamarin.Mac.Tests { diff --git a/tests/monotouch-test/AppKit/NSTabViewItem.cs b/tests/monotouch-test/AppKit/NSTabViewItem.cs index a8066c981cc1..86ff62c9f75a 100644 --- a/tests/monotouch-test/AppKit/NSTabViewItem.cs +++ b/tests/monotouch-test/AppKit/NSTabViewItem.cs @@ -1,10 +1,6 @@ #if __MACOS__ -using System; -using NUnit.Framework; using AppKit; -using ObjCRuntime; -using Foundation; namespace Xamarin.Mac.Tests { [Preserve (AllMembers = true)] diff --git a/tests/monotouch-test/AppKit/NSTableColumn.cs b/tests/monotouch-test/AppKit/NSTableColumn.cs index 2b8ff2a35ae9..41ef96d27b26 100644 --- a/tests/monotouch-test/AppKit/NSTableColumn.cs +++ b/tests/monotouch-test/AppKit/NSTableColumn.cs @@ -1,10 +1,6 @@ #if __MACOS__ -using System; -using NUnit.Framework; using AppKit; -using ObjCRuntime; -using Foundation; namespace Xamarin.Mac.Tests { [Preserve (AllMembers = true)] diff --git a/tests/monotouch-test/AppKit/NSTableRowView.cs b/tests/monotouch-test/AppKit/NSTableRowView.cs index d1c65fe8a7e3..65d57746335c 100644 --- a/tests/monotouch-test/AppKit/NSTableRowView.cs +++ b/tests/monotouch-test/AppKit/NSTableRowView.cs @@ -1,10 +1,6 @@ #if __MACOS__ -using System; -using NUnit.Framework; using AppKit; -using ObjCRuntime; -using Foundation; namespace Xamarin.Mac.Tests { [Preserve (AllMembers = true)] diff --git a/tests/monotouch-test/AppKit/NSTableView.cs b/tests/monotouch-test/AppKit/NSTableView.cs index 70da75022cb5..b577332f00c4 100644 --- a/tests/monotouch-test/AppKit/NSTableView.cs +++ b/tests/monotouch-test/AppKit/NSTableView.cs @@ -1,10 +1,7 @@ #if __MACOS__ -using System; using System.Threading.Tasks; -using NUnit.Framework; using AppKit; -using Foundation; namespace Xamarin.Mac.Tests { [TestFixture] diff --git a/tests/monotouch-test/AppKit/NSTextField.cs b/tests/monotouch-test/AppKit/NSTextField.cs index 3a0f3934d847..7ecd8bb8cfd5 100644 --- a/tests/monotouch-test/AppKit/NSTextField.cs +++ b/tests/monotouch-test/AppKit/NSTextField.cs @@ -1,10 +1,6 @@ #if __MACOS__ -using System; -using NUnit.Framework; using AppKit; -using ObjCRuntime; -using Foundation; namespace Xamarin.Mac.Tests { [Preserve (AllMembers = true)] diff --git a/tests/monotouch-test/AppKit/NSTextFinder.cs b/tests/monotouch-test/AppKit/NSTextFinder.cs index 07139c001f31..c922d955e69a 100644 --- a/tests/monotouch-test/AppKit/NSTextFinder.cs +++ b/tests/monotouch-test/AppKit/NSTextFinder.cs @@ -1,12 +1,9 @@ #if __MACOS__ -using System; using System.Threading.Tasks; -using NUnit.Framework; using AppKit; using AudioUnit; using AudioToolbox; -using Foundation; namespace Xamarin.Mac.Tests { [TestFixture] diff --git a/tests/monotouch-test/AppKit/NSTextInputClient.cs b/tests/monotouch-test/AppKit/NSTextInputClient.cs index e96149694a16..3554327c1a18 100644 --- a/tests/monotouch-test/AppKit/NSTextInputClient.cs +++ b/tests/monotouch-test/AppKit/NSTextInputClient.cs @@ -1,10 +1,7 @@ #if __MACOS__ -using System; -using NUnit.Framework; using AppKit; using CoreGraphics; -using Foundation; namespace apitest { [TestFixture] diff --git a/tests/monotouch-test/AppKit/NSTextView.cs b/tests/monotouch-test/AppKit/NSTextView.cs index 3a48e3a0181c..44ead4188bb7 100644 --- a/tests/monotouch-test/AppKit/NSTextView.cs +++ b/tests/monotouch-test/AppKit/NSTextView.cs @@ -1,10 +1,6 @@ #if __MACOS__ -using System; -using NUnit.Framework; using AppKit; -using ObjCRuntime; -using Foundation; namespace Xamarin.Mac.Tests { [Preserve (AllMembers = true)] diff --git a/tests/monotouch-test/AppKit/NSToolbar.cs b/tests/monotouch-test/AppKit/NSToolbar.cs index 2f9329b6b0cc..f77f29feddbf 100644 --- a/tests/monotouch-test/AppKit/NSToolbar.cs +++ b/tests/monotouch-test/AppKit/NSToolbar.cs @@ -1,10 +1,6 @@ #if __MACOS__ -using System; -using NUnit.Framework; using AppKit; -using ObjCRuntime; -using Foundation; namespace Xamarin.Mac.Tests { [Preserve (AllMembers = true)] diff --git a/tests/monotouch-test/AppKit/NSToolbarItem.cs b/tests/monotouch-test/AppKit/NSToolbarItem.cs index d4aaade8460c..21df96163c84 100644 --- a/tests/monotouch-test/AppKit/NSToolbarItem.cs +++ b/tests/monotouch-test/AppKit/NSToolbarItem.cs @@ -1,10 +1,6 @@ #if __MACOS__ -using System; -using NUnit.Framework; using AppKit; -using ObjCRuntime; -using Foundation; namespace Xamarin.Mac.Tests { [Preserve (AllMembers = true)] diff --git a/tests/monotouch-test/AppKit/NSUserDefaultsController.cs b/tests/monotouch-test/AppKit/NSUserDefaultsController.cs index 265560d76c81..85389769d65e 100644 --- a/tests/monotouch-test/AppKit/NSUserDefaultsController.cs +++ b/tests/monotouch-test/AppKit/NSUserDefaultsController.cs @@ -1,10 +1,6 @@ #if __MACOS__ -using System; -using NUnit.Framework; using AppKit; -using ObjCRuntime; -using Foundation; namespace Xamarin.Mac.Tests { [Preserve (AllMembers = true)] diff --git a/tests/monotouch-test/AppKit/NSView.cs b/tests/monotouch-test/AppKit/NSView.cs index 1b7087bc1249..f73101d7f269 100644 --- a/tests/monotouch-test/AppKit/NSView.cs +++ b/tests/monotouch-test/AppKit/NSView.cs @@ -1,13 +1,8 @@ #if __MACOS__ -using System; -using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Reflection; -using NUnit.Framework; using AppKit; -using ObjCRuntime; -using Foundation; namespace Xamarin.Mac.Tests { [Preserve (AllMembers = true)] diff --git a/tests/monotouch-test/AppKit/NSViewController.cs b/tests/monotouch-test/AppKit/NSViewController.cs index d6293e872b05..3fc32683deed 100644 --- a/tests/monotouch-test/AppKit/NSViewController.cs +++ b/tests/monotouch-test/AppKit/NSViewController.cs @@ -1,10 +1,6 @@ #if __MACOS__ -using System; -using NUnit.Framework; using AppKit; -using ObjCRuntime; -using Foundation; namespace Xamarin.Mac.Tests { [Preserve (AllMembers = true)] diff --git a/tests/monotouch-test/AppKit/NSVisualEffectView.cs b/tests/monotouch-test/AppKit/NSVisualEffectView.cs index 4d822731ffad..95e0a48b0f8c 100644 --- a/tests/monotouch-test/AppKit/NSVisualEffectView.cs +++ b/tests/monotouch-test/AppKit/NSVisualEffectView.cs @@ -1,10 +1,6 @@ #if __MACOS__ -using System; -using NUnit.Framework; using AppKit; -using ObjCRuntime; -using Foundation; namespace Xamarin.Mac.Tests { [Preserve (AllMembers = true)] diff --git a/tests/monotouch-test/AppKit/NSWindowController.cs b/tests/monotouch-test/AppKit/NSWindowController.cs index 96fb8585c723..60a8ed62bb0e 100644 --- a/tests/monotouch-test/AppKit/NSWindowController.cs +++ b/tests/monotouch-test/AppKit/NSWindowController.cs @@ -1,12 +1,7 @@ #if __MACOS__ -using System; -using System.Collections.Generic; using System.Reflection; -using NUnit.Framework; using AppKit; -using ObjCRuntime; -using Foundation; namespace Xamarin.Mac.Tests { [Preserve (AllMembers = true)] diff --git a/tests/monotouch-test/AppKit/NSWorkspace.cs b/tests/monotouch-test/AppKit/NSWorkspace.cs index 618b18b85022..2696f1f2fce3 100644 --- a/tests/monotouch-test/AppKit/NSWorkspace.cs +++ b/tests/monotouch-test/AppKit/NSWorkspace.cs @@ -1,10 +1,6 @@ #if __MACOS__ -using NUnit.Framework; -using System; using AppKit; -using Foundation; -using ObjCRuntime; namespace Xamarin.Mac.Tests { [TestFixture] diff --git a/tests/monotouch-test/Asserts.cs b/tests/monotouch-test/Asserts.cs index 457065d0ce13..897b15d77030 100644 --- a/tests/monotouch-test/Asserts.cs +++ b/tests/monotouch-test/Asserts.cs @@ -1,6 +1,3 @@ -using System; -using System.Collections.Generic; -using System.Runtime.InteropServices; using System.Text; using ModelIO; @@ -31,8 +28,6 @@ using pfloat = System.Single; #endif -using NUnit.Framework; - public static class Asserts { public static void AreEqual (bool expected, bool actual, string message) { @@ -544,7 +539,6 @@ public static void AreEqual (SCNVector4 expected, SCNVector4 actual, string mess Assert.Fail (msg); } - public static void AreEqual (SCNVector4 expected, SCNVector4 actual, pfloat delta, string message) { if (AreEqual (expected.X, actual.X, delta, out var dX) & @@ -659,7 +653,6 @@ public static void AreEqual (SCNMatrix4 expected, SCNMatrix4 actual, pfloat delt Assert.Fail (msg); } - // The m## arguments correspond with the M## fields in SCNMatrix4 // For .NET this means the first four values are the first column (and the first row for legacy Xamarin). public static void AreEqual (SCNMatrix4 actual, string message, diff --git a/tests/monotouch-test/AssertsMac.cs b/tests/monotouch-test/AssertsMac.cs index 118d0210f442..dcdc645a4cbf 100644 --- a/tests/monotouch-test/AssertsMac.cs +++ b/tests/monotouch-test/AssertsMac.cs @@ -1,14 +1,9 @@ #if __MACOS__ -using System; using System.Reflection; -using NUnit.Framework; using Xamarin.Tests; using Xamarin.Utils; -using ObjCRuntime; -using Foundation; - namespace Xamarin.Mac.Tests { public static class Asserts { public static bool IsAtLeastYosemite { diff --git a/tests/monotouch-test/AudioToolbox/AudioBalanceFadeTest.cs b/tests/monotouch-test/AudioToolbox/AudioBalanceFadeTest.cs index fe87774b9ba1..5e0a3f55a00e 100644 --- a/tests/monotouch-test/AudioToolbox/AudioBalanceFadeTest.cs +++ b/tests/monotouch-test/AudioToolbox/AudioBalanceFadeTest.cs @@ -7,9 +7,7 @@ // Copyright 2012 Xamarin Inc. All rights reserved. // -using Foundation; using AudioToolbox; -using NUnit.Framework; namespace MonoTouchFixtures.AudioToolbox { diff --git a/tests/monotouch-test/AudioToolbox/AudioBufferList.cs b/tests/monotouch-test/AudioToolbox/AudioBufferList.cs index 39cc9187e581..15dca28c24e4 100644 --- a/tests/monotouch-test/AudioToolbox/AudioBufferList.cs +++ b/tests/monotouch-test/AudioToolbox/AudioBufferList.cs @@ -1,12 +1,5 @@ -using System; -using System.Runtime.InteropServices; using AudioToolbox; -using Foundation; - -using ObjCRuntime; - -using NUnit.Framework; namespace MonoTouchFixtures.AudioToolbox { diff --git a/tests/monotouch-test/AudioToolbox/AudioChannelLayoutTest.cs b/tests/monotouch-test/AudioToolbox/AudioChannelLayoutTest.cs index 1192a6ef0433..9cb98eb73c46 100644 --- a/tests/monotouch-test/AudioToolbox/AudioChannelLayoutTest.cs +++ b/tests/monotouch-test/AudioToolbox/AudioChannelLayoutTest.cs @@ -7,9 +7,7 @@ // Copyright 2012 Xamarin Inc. All rights reserved. // -using Foundation; using AudioToolbox; -using NUnit.Framework; namespace MonoTouchFixtures.AudioToolbox { diff --git a/tests/monotouch-test/AudioToolbox/AudioComponentTest.cs b/tests/monotouch-test/AudioToolbox/AudioComponentTest.cs index fc974706cf5f..08741c8d35aa 100644 --- a/tests/monotouch-test/AudioToolbox/AudioComponentTest.cs +++ b/tests/monotouch-test/AudioToolbox/AudioComponentTest.cs @@ -1,17 +1,12 @@ // Copyright 2011 Xamarin Inc. All rights reserved #if IOS || MONOMAC -using System; using System.Drawing; using System.IO; -using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; -using Foundation; using AudioToolbox; using AudioUnit; -using CoreFoundation; -using NUnit.Framework; namespace MonoTouchFixtures.AudioToolbox { diff --git a/tests/monotouch-test/AudioToolbox/AudioConverterTest.cs b/tests/monotouch-test/AudioToolbox/AudioConverterTest.cs index 6820beaa25cd..f87d66f4c716 100644 --- a/tests/monotouch-test/AudioToolbox/AudioConverterTest.cs +++ b/tests/monotouch-test/AudioToolbox/AudioConverterTest.cs @@ -1,22 +1,15 @@ // Copyright 2022 Xamarin Inc. All rights reserved #if __IOS__ || __MACOS__ -using System; using System.Diagnostics; using System.Drawing; using System.IO; using System.Linq; -using System.Collections.Generic; -using System.Runtime.InteropServices; using System.Threading.Tasks; using AudioToolbox; using AudioUnit; using AVFoundation; -using CoreFoundation; -using Foundation; - -using NUnit.Framework; namespace MonoTouchFixtures.AudioToolbox { diff --git a/tests/monotouch-test/AudioToolbox/AudioFileGlobalInfoTest.cs b/tests/monotouch-test/AudioToolbox/AudioFileGlobalInfoTest.cs index 96a318fca7ce..d4af2624c2aa 100644 --- a/tests/monotouch-test/AudioToolbox/AudioFileGlobalInfoTest.cs +++ b/tests/monotouch-test/AudioToolbox/AudioFileGlobalInfoTest.cs @@ -9,14 +9,10 @@ #nullable enable -using System; using System.Linq; -using Foundation; using AudioToolbox; -using NUnit.Framework; - namespace MonoTouchFixtures.AudioToolbox { [TestFixture] diff --git a/tests/monotouch-test/AudioToolbox/AudioFileStreamTest.cs b/tests/monotouch-test/AudioToolbox/AudioFileStreamTest.cs index 69c18f12eb14..a493f9fb9816 100644 --- a/tests/monotouch-test/AudioToolbox/AudioFileStreamTest.cs +++ b/tests/monotouch-test/AudioToolbox/AudioFileStreamTest.cs @@ -7,9 +7,7 @@ // Copyright 2012 Xamarin Inc. All rights reserved. // -using Foundation; using AudioToolbox; -using NUnit.Framework; namespace MonoTouchFixtures.AudioToolbox { diff --git a/tests/monotouch-test/AudioToolbox/AudioFileTest.cs b/tests/monotouch-test/AudioToolbox/AudioFileTest.cs index dbdcc61d5468..0dac320b1bcb 100644 --- a/tests/monotouch-test/AudioToolbox/AudioFileTest.cs +++ b/tests/monotouch-test/AudioToolbox/AudioFileTest.cs @@ -1,13 +1,8 @@ // Copyright 2011 Xamarin Inc. All rights reserved -using System; using System.IO; -using System.Runtime.InteropServices; -using Foundation; using AudioToolbox; -using CoreFoundation; -using NUnit.Framework; namespace MonoTouchFixtures.AudioToolbox { diff --git a/tests/monotouch-test/AudioToolbox/AudioFormatAvailabilityTest.cs b/tests/monotouch-test/AudioToolbox/AudioFormatAvailabilityTest.cs index 5c7aae23afd1..0bcc7d79bfa9 100644 --- a/tests/monotouch-test/AudioToolbox/AudioFormatAvailabilityTest.cs +++ b/tests/monotouch-test/AudioToolbox/AudioFormatAvailabilityTest.cs @@ -7,9 +7,7 @@ // Copyright 2012 Xamarin Inc. All rights reserved. // -using Foundation; using AudioToolbox; -using NUnit.Framework; namespace MonoTouchFixtures.AudioToolbox { diff --git a/tests/monotouch-test/AudioToolbox/AudioFormatTest.cs b/tests/monotouch-test/AudioToolbox/AudioFormatTest.cs index 8a9c6bd4212d..76a617005ff1 100644 --- a/tests/monotouch-test/AudioToolbox/AudioFormatTest.cs +++ b/tests/monotouch-test/AudioToolbox/AudioFormatTest.cs @@ -7,9 +7,7 @@ // Copyright 2012 Xamarin Inc. All rights reserved. // -using Foundation; using AudioToolbox; -using NUnit.Framework; namespace MonoTouchFixtures.AudioToolbox { diff --git a/tests/monotouch-test/AudioToolbox/AudioQueueTest.cs b/tests/monotouch-test/AudioToolbox/AudioQueueTest.cs index e86eb7f442a4..c5f3e064efb1 100644 --- a/tests/monotouch-test/AudioToolbox/AudioQueueTest.cs +++ b/tests/monotouch-test/AudioToolbox/AudioQueueTest.cs @@ -7,10 +7,7 @@ // Copyright 2012 Xamarin Inc. All rights reserved. // -using System.Collections.Generic; -using Foundation; using AudioToolbox; -using NUnit.Framework; namespace MonoTouchFixtures.AudioToolbox { diff --git a/tests/monotouch-test/AudioToolbox/AudioStreamBasicDescriptionTest.cs b/tests/monotouch-test/AudioToolbox/AudioStreamBasicDescriptionTest.cs index 301515f6fe2f..5dcb29710f7f 100644 --- a/tests/monotouch-test/AudioToolbox/AudioStreamBasicDescriptionTest.cs +++ b/tests/monotouch-test/AudioToolbox/AudioStreamBasicDescriptionTest.cs @@ -7,9 +7,7 @@ // Copyright 2012 Xamarin Inc. All rights reserved. // -using Foundation; using AudioToolbox; -using NUnit.Framework; namespace MonoTouchFixtures.AudioToolbox { diff --git a/tests/monotouch-test/AudioToolbox/AudioUnitTest.cs b/tests/monotouch-test/AudioToolbox/AudioUnitTest.cs index 491920d5a7fe..5b6d362b0d31 100644 --- a/tests/monotouch-test/AudioToolbox/AudioUnitTest.cs +++ b/tests/monotouch-test/AudioToolbox/AudioUnitTest.cs @@ -9,15 +9,11 @@ #if __MACOS__ -using System; using System.Threading; -using Foundation; using AudioToolbox; using AudioUnit; -using NUnit.Framework; - namespace MonoTouchFixtures.AudioToolbox { [TestFixture] [Preserve (AllMembers = true)] diff --git a/tests/monotouch-test/AudioToolbox/FourCCTest.cs b/tests/monotouch-test/AudioToolbox/FourCCTest.cs index 029a19e0ecc7..24248bd38943 100644 --- a/tests/monotouch-test/AudioToolbox/FourCCTest.cs +++ b/tests/monotouch-test/AudioToolbox/FourCCTest.cs @@ -7,10 +7,7 @@ // Copyright 2012-2014 Xamarin Inc. All rights reserved. // -using Foundation; using AudioToolbox; -using ObjCRuntime; -using NUnit.Framework; namespace MonoTouchFixtures.AudioToolbox { diff --git a/tests/monotouch-test/AudioToolbox/MusicPlayer.cs b/tests/monotouch-test/AudioToolbox/MusicPlayer.cs index 6ea837f6a7e6..f9639a2fe6aa 100644 --- a/tests/monotouch-test/AudioToolbox/MusicPlayer.cs +++ b/tests/monotouch-test/AudioToolbox/MusicPlayer.cs @@ -7,13 +7,7 @@ // Copyright 2023 Microsoft Corp. All rights reserved. // -using System; - using AudioToolbox; -using Foundation; -using ObjCRuntime; - -using NUnit.Framework; namespace MonoTouchFixtures.AudioToolbox { diff --git a/tests/monotouch-test/AudioToolbox/MusicSequenceTest.cs b/tests/monotouch-test/AudioToolbox/MusicSequenceTest.cs index e772912b610a..9776a53d2f44 100644 --- a/tests/monotouch-test/AudioToolbox/MusicSequenceTest.cs +++ b/tests/monotouch-test/AudioToolbox/MusicSequenceTest.cs @@ -9,11 +9,7 @@ #if !MONOMAC -using System; using AudioToolbox; -using Foundation; -using ObjCRuntime; -using NUnit.Framework; namespace MonoTouchFixtures.AudioToolbox { diff --git a/tests/monotouch-test/AudioToolbox/MusicTrackTest.cs b/tests/monotouch-test/AudioToolbox/MusicTrackTest.cs index 3ef37f60a34a..b9cae1aa4ea2 100644 --- a/tests/monotouch-test/AudioToolbox/MusicTrackTest.cs +++ b/tests/monotouch-test/AudioToolbox/MusicTrackTest.cs @@ -9,12 +9,8 @@ #if !MONOMAC && !__TVOS__ -using System; using AudioToolbox; -using Foundation; -using ObjCRuntime; using CoreMidi; -using NUnit.Framework; namespace MonoTouchFixtures.AudioToolbox { diff --git a/tests/monotouch-test/AudioToolbox/SoundBankTest.cs b/tests/monotouch-test/AudioToolbox/SoundBankTest.cs index 0acea5607bff..6f5075059bf6 100644 --- a/tests/monotouch-test/AudioToolbox/SoundBankTest.cs +++ b/tests/monotouch-test/AudioToolbox/SoundBankTest.cs @@ -7,11 +7,7 @@ // Copyright 2013 Xamarin Inc. All rights reserved // -using System; -using Foundation; using AudioToolbox; -using ObjCRuntime; -using NUnit.Framework; using Xamarin.Utils; namespace MonoTouchFixtures.AudioToolbox { diff --git a/tests/monotouch-test/AudioToolbox/SystemSoundTest.cs b/tests/monotouch-test/AudioToolbox/SystemSoundTest.cs index 36bcc8005b7c..946efd148956 100644 --- a/tests/monotouch-test/AudioToolbox/SystemSoundTest.cs +++ b/tests/monotouch-test/AudioToolbox/SystemSoundTest.cs @@ -7,14 +7,10 @@ // Copyright 2012 Xamarin Inc. All rights reserved. // -using System; using System.IO; using System.Threading.Tasks; -using Foundation; using AudioToolbox; -using ObjCRuntime; -using NUnit.Framework; using Xamarin.Utils; namespace MonoTouchFixtures.AudioToolbox { diff --git a/tests/monotouch-test/AudioUnit/AUAudioUnitFactoryTest.cs b/tests/monotouch-test/AudioUnit/AUAudioUnitFactoryTest.cs index 9342264cd1a3..1fe4293ae359 100644 --- a/tests/monotouch-test/AudioUnit/AUAudioUnitFactoryTest.cs +++ b/tests/monotouch-test/AudioUnit/AUAudioUnitFactoryTest.cs @@ -7,11 +7,6 @@ // Copyright 2016 Xamarin Inc. All rights reserved. // -using System; - -using NUnit.Framework; - -using Foundation; using AudioUnit; namespace MonoTouchFixtures.AudioUnit { diff --git a/tests/monotouch-test/AudioUnit/AUGraphTest.cs b/tests/monotouch-test/AudioUnit/AUGraphTest.cs index b01589cd3f77..73aa779ae8b0 100644 --- a/tests/monotouch-test/AudioUnit/AUGraphTest.cs +++ b/tests/monotouch-test/AudioUnit/AUGraphTest.cs @@ -7,13 +7,7 @@ // Copyright 2012 Xamarin Inc. All rights reserved. // -using System; -using System.Runtime.InteropServices; -using NUnit.Framework; - -using Foundation; using AudioUnit; -using ObjCRuntime; namespace MonoTouchFixtures.AudioUnit { diff --git a/tests/monotouch-test/AudioUnit/AUGraphTestMac.cs b/tests/monotouch-test/AudioUnit/AUGraphTestMac.cs index 290291a68d63..b9e99e62b40d 100644 --- a/tests/monotouch-test/AudioUnit/AUGraphTestMac.cs +++ b/tests/monotouch-test/AudioUnit/AUGraphTestMac.cs @@ -1,12 +1,9 @@ #if __MACOS__ -using System; using System.Threading; -using NUnit.Framework; using AppKit; using AudioUnit; using AudioToolbox; -using Foundation; namespace Xamarin.Mac.Tests { [TestFixture] diff --git a/tests/monotouch-test/AudioUnit/AUParameterNodeTest.cs b/tests/monotouch-test/AudioUnit/AUParameterNodeTest.cs index b1433f5cff48..6b0ac617062a 100644 --- a/tests/monotouch-test/AudioUnit/AUParameterNodeTest.cs +++ b/tests/monotouch-test/AudioUnit/AUParameterNodeTest.cs @@ -7,12 +7,8 @@ // Copyright 2016 Xamarin Inc. All rights reserved. // -using System; using System.Threading; -using NUnit.Framework; - -using Foundation; using AudioUnit; namespace monotouchtest { diff --git a/tests/monotouch-test/AudioUnit/AVSpeechSynthesisProviderAudioUnitTest.cs b/tests/monotouch-test/AudioUnit/AVSpeechSynthesisProviderAudioUnitTest.cs index b95d47b49448..78116f2749de 100644 --- a/tests/monotouch-test/AudioUnit/AVSpeechSynthesisProviderAudioUnitTest.cs +++ b/tests/monotouch-test/AudioUnit/AVSpeechSynthesisProviderAudioUnitTest.cs @@ -2,15 +2,8 @@ // Unit tests for AVSpeechSynthesisProviderAudioUnit // -using System; -using System.Runtime.InteropServices; - -using NUnit.Framework; - using AudioUnit; using AVFoundation; -using Foundation; -using ObjCRuntime; namespace MonoTouchFixtures.AudioUnit { [TestFixture] diff --git a/tests/monotouch-test/AudioUnit/AudioUnit.cs b/tests/monotouch-test/AudioUnit/AudioUnit.cs index f13174a2f8ac..68d655f12b46 100644 --- a/tests/monotouch-test/AudioUnit/AudioUnit.cs +++ b/tests/monotouch-test/AudioUnit/AudioUnit.cs @@ -1,12 +1,9 @@ #if __MACOS__ -using System; using System.Threading.Tasks; -using NUnit.Framework; using AppKit; using AudioUnit; using theUnit = AudioUnit.AudioUnit; -using Foundation; namespace Xamarin.Mac.Tests { [TestFixture] diff --git a/tests/monotouch-test/AudioUnit/AudioUnitTest.cs b/tests/monotouch-test/AudioUnit/AudioUnitTest.cs index 660f8b5f89e2..c4fa750ba3aa 100644 --- a/tests/monotouch-test/AudioUnit/AudioUnitTest.cs +++ b/tests/monotouch-test/AudioUnit/AudioUnitTest.cs @@ -2,14 +2,8 @@ // Unit tests for AudioUnit // -using System.Runtime.InteropServices; - -using NUnit.Framework; - -using Foundation; using AudioUnit; using AudioToolbox; -using ObjCRuntime; namespace MonoTouchFixtures.AudioUnit { [TestFixture] diff --git a/tests/monotouch-test/AudioUnit/ExtAudioFileTest.cs b/tests/monotouch-test/AudioUnit/ExtAudioFileTest.cs index 53257fc37793..7c1905ffe41b 100644 --- a/tests/monotouch-test/AudioUnit/ExtAudioFileTest.cs +++ b/tests/monotouch-test/AudioUnit/ExtAudioFileTest.cs @@ -7,10 +7,7 @@ // Copyright 2012 Xamarin Inc. All rights reserved. // -using NUnit.Framework; -using Foundation; using AudioUnit; -using CoreFoundation; namespace MonoTouchFixtures.AudioUnit { diff --git a/tests/monotouch-test/AuthenticationServices/PublicPrivateKeyAuthenticationTests.cs b/tests/monotouch-test/AuthenticationServices/PublicPrivateKeyAuthenticationTests.cs index 33c8d311af1d..9ca83740977b 100644 --- a/tests/monotouch-test/AuthenticationServices/PublicPrivateKeyAuthenticationTests.cs +++ b/tests/monotouch-test/AuthenticationServices/PublicPrivateKeyAuthenticationTests.cs @@ -7,10 +7,7 @@ #if !__TVOS__ -using System; -using Foundation; using AuthenticationServices; -using NUnit.Framework; namespace MonoTouchFixtures.AuthenticationServices { diff --git a/tests/monotouch-test/BackgroundTasks/BGTaskSchedulerTest.cs b/tests/monotouch-test/BackgroundTasks/BGTaskSchedulerTest.cs index dc9a67be6f9a..098448c55665 100644 --- a/tests/monotouch-test/BackgroundTasks/BGTaskSchedulerTest.cs +++ b/tests/monotouch-test/BackgroundTasks/BGTaskSchedulerTest.cs @@ -1,9 +1,6 @@ #if __IOS__ || __TVOS__ -using Foundation; using BackgroundTasks; -using ObjCRuntime; -using NUnit.Framework; using System.Threading; namespace MonoTouchFixtures.BackgroundTasks { diff --git a/tests/monotouch-test/CarPlay/CPMessageListItemTests.cs b/tests/monotouch-test/CarPlay/CPMessageListItemTests.cs index 2b4bc6f67b4e..39b870b86876 100644 --- a/tests/monotouch-test/CarPlay/CPMessageListItemTests.cs +++ b/tests/monotouch-test/CarPlay/CPMessageListItemTests.cs @@ -8,12 +8,8 @@ // #if HAS_CARPLAY -using System; -using NUnit.Framework; using CarPlay; -using Foundation; -using ObjCRuntime; using Xamarin.Utils; namespace MonoTouchFixtures.CarPlay { diff --git a/tests/monotouch-test/CloudKit/CKFetchRecordChangesOperationTest.cs b/tests/monotouch-test/CloudKit/CKFetchRecordChangesOperationTest.cs index c3f771e417e8..c945247a5b10 100644 --- a/tests/monotouch-test/CloudKit/CKFetchRecordChangesOperationTest.cs +++ b/tests/monotouch-test/CloudKit/CKFetchRecordChangesOperationTest.cs @@ -1,8 +1,4 @@ -using System; -using NUnit.Framework; -using Foundation; using CloudKit; -using ObjCRuntime; using Xamarin.Utils; namespace MonoTouchFixtures.CloudKit { diff --git a/tests/monotouch-test/CloudKit/CKFetchRecordZonesOperationTest.cs b/tests/monotouch-test/CloudKit/CKFetchRecordZonesOperationTest.cs index 816b74e1133a..cdca38a6b5d2 100644 --- a/tests/monotouch-test/CloudKit/CKFetchRecordZonesOperationTest.cs +++ b/tests/monotouch-test/CloudKit/CKFetchRecordZonesOperationTest.cs @@ -1,8 +1,4 @@ -using System; -using NUnit.Framework; -using Foundation; using CloudKit; -using ObjCRuntime; using Xamarin.Utils; namespace MonoTouchFixtures.CloudKit { diff --git a/tests/monotouch-test/CloudKit/CKFetchRecordsOperationTest.cs b/tests/monotouch-test/CloudKit/CKFetchRecordsOperationTest.cs index a9e32819d9c1..7b3a86b4c80f 100644 --- a/tests/monotouch-test/CloudKit/CKFetchRecordsOperationTest.cs +++ b/tests/monotouch-test/CloudKit/CKFetchRecordsOperationTest.cs @@ -1,8 +1,4 @@ -using System; -using NUnit.Framework; -using Foundation; using CloudKit; -using ObjCRuntime; using Xamarin.Utils; namespace MonoTouchFixtures.CloudKit { diff --git a/tests/monotouch-test/CloudKit/CKFetchSubscriptionsOperationTest.cs b/tests/monotouch-test/CloudKit/CKFetchSubscriptionsOperationTest.cs index 479a76d15ecf..14992f42f8d5 100644 --- a/tests/monotouch-test/CloudKit/CKFetchSubscriptionsOperationTest.cs +++ b/tests/monotouch-test/CloudKit/CKFetchSubscriptionsOperationTest.cs @@ -1,8 +1,4 @@ -using System; -using NUnit.Framework; -using Foundation; using CloudKit; -using ObjCRuntime; using Xamarin.Utils; namespace MonoTouchFixtures.CloudKit { diff --git a/tests/monotouch-test/CloudKit/CKModifyRecordZonesOperationTest.cs b/tests/monotouch-test/CloudKit/CKModifyRecordZonesOperationTest.cs index 37bc946a4ea7..4ef7c2457e42 100644 --- a/tests/monotouch-test/CloudKit/CKModifyRecordZonesOperationTest.cs +++ b/tests/monotouch-test/CloudKit/CKModifyRecordZonesOperationTest.cs @@ -1,8 +1,4 @@ -using System; -using NUnit.Framework; -using Foundation; using CloudKit; -using ObjCRuntime; using Xamarin.Utils; namespace MonoTouchFixtures.CloudKit { diff --git a/tests/monotouch-test/CloudKit/CKModifyRecordsOperationTest.cs b/tests/monotouch-test/CloudKit/CKModifyRecordsOperationTest.cs index 315d073f90c7..48bed8ccd3fb 100644 --- a/tests/monotouch-test/CloudKit/CKModifyRecordsOperationTest.cs +++ b/tests/monotouch-test/CloudKit/CKModifyRecordsOperationTest.cs @@ -1,8 +1,4 @@ -using System; -using NUnit.Framework; -using Foundation; using CloudKit; -using ObjCRuntime; using Xamarin.Utils; namespace MonoTouchFixtures.CloudKit { diff --git a/tests/monotouch-test/CloudKit/CKModifySubscriptionsOperationTest.cs b/tests/monotouch-test/CloudKit/CKModifySubscriptionsOperationTest.cs index 832f2160201c..a27932189e1e 100644 --- a/tests/monotouch-test/CloudKit/CKModifySubscriptionsOperationTest.cs +++ b/tests/monotouch-test/CloudKit/CKModifySubscriptionsOperationTest.cs @@ -1,8 +1,4 @@ -using System; -using NUnit.Framework; -using Foundation; using CloudKit; -using ObjCRuntime; using Xamarin.Utils; namespace MonoTouchFixtures.CloudKit { diff --git a/tests/monotouch-test/CloudKit/CKQueryOperationTest.cs b/tests/monotouch-test/CloudKit/CKQueryOperationTest.cs index 8f938030a89a..7c983936b458 100644 --- a/tests/monotouch-test/CloudKit/CKQueryOperationTest.cs +++ b/tests/monotouch-test/CloudKit/CKQueryOperationTest.cs @@ -1,8 +1,4 @@ -using System; -using NUnit.Framework; -using Foundation; using CloudKit; -using ObjCRuntime; using Xamarin.Utils; namespace MonoTouchFixtures.CloudKit { diff --git a/tests/monotouch-test/CloudKit/CKUserIdentityLookupInfoTest.cs b/tests/monotouch-test/CloudKit/CKUserIdentityLookupInfoTest.cs index 3ef97633b877..2c329ecdabb5 100644 --- a/tests/monotouch-test/CloudKit/CKUserIdentityLookupInfoTest.cs +++ b/tests/monotouch-test/CloudKit/CKUserIdentityLookupInfoTest.cs @@ -1,6 +1,3 @@ -using System; -using NUnit.Framework; -using Foundation; using CloudKit; namespace MonoTouchFixtures.CloudKit { diff --git a/tests/monotouch-test/Compression/CompressionStreamTest.cs b/tests/monotouch-test/Compression/CompressionStreamTest.cs index 4653d4f837ea..8b2dfc94e50e 100644 --- a/tests/monotouch-test/Compression/CompressionStreamTest.cs +++ b/tests/monotouch-test/Compression/CompressionStreamTest.cs @@ -1,12 +1,8 @@ -using System; using System.IO; using System.IO.Compression; -using Foundation; using Compression; -using NUnit.Framework; - using DeflateStream = Compression.CompressionStream; // done to not differ from the mono tests namespace MonoTouchFixtures.Compression { diff --git a/tests/monotouch-test/Compression/ThoroughCompressionStreamTest.cs b/tests/monotouch-test/Compression/ThoroughCompressionStreamTest.cs index 0139a4a2fbdd..5895ebf0ccf9 100644 --- a/tests/monotouch-test/Compression/ThoroughCompressionStreamTest.cs +++ b/tests/monotouch-test/Compression/ThoroughCompressionStreamTest.cs @@ -1,12 +1,8 @@ using System.IO; using System.IO.Compression; -using Foundation; using Compression; -using NUnit.Framework; - - namespace MonoTouchFixtures.Compression { // Special test case that tests the compression class against files that diff --git a/tests/monotouch-test/Contacts/ContactFetchRequestTest.cs b/tests/monotouch-test/Contacts/ContactFetchRequestTest.cs index c3f2789bb383..71fbbec87888 100644 --- a/tests/monotouch-test/Contacts/ContactFetchRequestTest.cs +++ b/tests/monotouch-test/Contacts/ContactFetchRequestTest.cs @@ -9,11 +9,7 @@ #if !__TVOS__ -using System; using Contacts; -using Foundation; -using ObjCRuntime; -using NUnit.Framework; namespace MonoTouchFixtures.Contacts { diff --git a/tests/monotouch-test/Contacts/ContactFormatterTest.cs b/tests/monotouch-test/Contacts/ContactFormatterTest.cs index 0312a7ab362b..35fa3eefa5bd 100644 --- a/tests/monotouch-test/Contacts/ContactFormatterTest.cs +++ b/tests/monotouch-test/Contacts/ContactFormatterTest.cs @@ -9,10 +9,7 @@ #if !__TVOS__ -using System; using Contacts; -using Foundation; -using NUnit.Framework; namespace MonoTouchFixtures.Contacts { diff --git a/tests/monotouch-test/Contacts/ContactStoreTest.cs b/tests/monotouch-test/Contacts/ContactStoreTest.cs index f775820663f0..055be0b2d32a 100644 --- a/tests/monotouch-test/Contacts/ContactStoreTest.cs +++ b/tests/monotouch-test/Contacts/ContactStoreTest.cs @@ -10,9 +10,6 @@ #if !__TVOS__ using Contacts; -using Foundation; -using ObjCRuntime; -using NUnit.Framework; namespace MonoTouchFixtures.Contacts { diff --git a/tests/monotouch-test/Contacts/ContactTest.cs b/tests/monotouch-test/Contacts/ContactTest.cs index 08c67b7b5bb1..24c1fb56205a 100644 --- a/tests/monotouch-test/Contacts/ContactTest.cs +++ b/tests/monotouch-test/Contacts/ContactTest.cs @@ -9,10 +9,7 @@ #if !__TVOS__ -using System; using Contacts; -using Foundation; -using NUnit.Framework; namespace MonoTouchFixtures.Contacts { diff --git a/tests/monotouch-test/Contacts/ContactVCardSerializationTest.cs b/tests/monotouch-test/Contacts/ContactVCardSerializationTest.cs index 083969176d25..ed47d209310c 100644 --- a/tests/monotouch-test/Contacts/ContactVCardSerializationTest.cs +++ b/tests/monotouch-test/Contacts/ContactVCardSerializationTest.cs @@ -9,10 +9,7 @@ #if !__TVOS__ -using System; using Contacts; -using Foundation; -using NUnit.Framework; namespace MonoTouchFixtures.Contacts { diff --git a/tests/monotouch-test/Contacts/MutableContactTest.cs b/tests/monotouch-test/Contacts/MutableContactTest.cs index 8519da06198a..3f1293fe772a 100644 --- a/tests/monotouch-test/Contacts/MutableContactTest.cs +++ b/tests/monotouch-test/Contacts/MutableContactTest.cs @@ -9,10 +9,7 @@ #if !__TVOS__ -using System; using Contacts; -using Foundation; -using NUnit.Framework; namespace MonoTouchFixtures.Contacts { diff --git a/tests/monotouch-test/CoreAnimation/CABasicAnimation.cs b/tests/monotouch-test/CoreAnimation/CABasicAnimation.cs index c56f499c889f..81c8a6275293 100644 --- a/tests/monotouch-test/CoreAnimation/CABasicAnimation.cs +++ b/tests/monotouch-test/CoreAnimation/CABasicAnimation.cs @@ -1,12 +1,9 @@ #if __MACOS__ -using System; using System.Threading.Tasks; -using NUnit.Framework; using AppKit; using CoreAnimation; using CoreGraphics; -using Foundation; namespace Xamarin.Mac.Tests { [TestFixture] diff --git a/tests/monotouch-test/CoreAnimation/CAFrameRateRangeTest.cs b/tests/monotouch-test/CoreAnimation/CAFrameRateRangeTest.cs index 424765b00627..9ab666d1270e 100644 --- a/tests/monotouch-test/CoreAnimation/CAFrameRateRangeTest.cs +++ b/tests/monotouch-test/CoreAnimation/CAFrameRateRangeTest.cs @@ -1,7 +1,4 @@ -using System; -using NUnit.Framework; -using Foundation; using CoreAnimation; namespace MonoTouchFixtures.CoreAnimation { diff --git a/tests/monotouch-test/CoreAnimation/CAKeyFrameAnimation.cs b/tests/monotouch-test/CoreAnimation/CAKeyFrameAnimation.cs index 10de75ca9576..4145c0afb31c 100644 --- a/tests/monotouch-test/CoreAnimation/CAKeyFrameAnimation.cs +++ b/tests/monotouch-test/CoreAnimation/CAKeyFrameAnimation.cs @@ -1,12 +1,9 @@ #if __MACOS__ -using System; using System.Threading.Tasks; -using NUnit.Framework; using AppKit; using CoreAnimation; using CoreGraphics; -using Foundation; namespace Xamarin.Mac.Tests { [TestFixture] diff --git a/tests/monotouch-test/CoreAnimation/CALayer.cs b/tests/monotouch-test/CoreAnimation/CALayer.cs index f4751a2bb806..4cda76ebab25 100644 --- a/tests/monotouch-test/CoreAnimation/CALayer.cs +++ b/tests/monotouch-test/CoreAnimation/CALayer.cs @@ -1,12 +1,9 @@ #if __MACOS__ -using System; using System.Threading.Tasks; -using NUnit.Framework; using AppKit; using CoreAnimation; using CoreGraphics; -using Foundation; namespace Xamarin.Mac.Tests { [TestFixture] diff --git a/tests/monotouch-test/CoreAnimation/CAOpenGLLayer.cs b/tests/monotouch-test/CoreAnimation/CAOpenGLLayer.cs index fff7826cde90..74d23366135f 100644 --- a/tests/monotouch-test/CoreAnimation/CAOpenGLLayer.cs +++ b/tests/monotouch-test/CoreAnimation/CAOpenGLLayer.cs @@ -1,12 +1,8 @@ #if __MACOS__ -using System; -using NUnit.Framework; using AppKit; -using Foundation; using CoreAnimation; using OpenGL; -using ObjCRuntime; namespace Xamarin.Mac.Tests { [TestFixture] diff --git a/tests/monotouch-test/CoreAnimation/CATextLayerTests.cs b/tests/monotouch-test/CoreAnimation/CATextLayerTests.cs index d97617aa62f3..6976c48cc09f 100644 --- a/tests/monotouch-test/CoreAnimation/CATextLayerTests.cs +++ b/tests/monotouch-test/CoreAnimation/CATextLayerTests.cs @@ -8,10 +8,6 @@ // Copyright 2017 Xamarin Inc. All rights reserved. // -using System; -using NUnit.Framework; - -using Foundation; using CoreAnimation; namespace MonoTouchFixtures.CoreAnimation { diff --git a/tests/monotouch-test/CoreAnimation/EmitterCellTest.cs b/tests/monotouch-test/CoreAnimation/EmitterCellTest.cs index 326e6812147e..9583ac6598d2 100644 --- a/tests/monotouch-test/CoreAnimation/EmitterCellTest.cs +++ b/tests/monotouch-test/CoreAnimation/EmitterCellTest.cs @@ -7,10 +7,7 @@ // Copyright 2013 Xamarin Inc. All rights reserved. // -using System; -using Foundation; using CoreAnimation; -using NUnit.Framework; namespace MonoTouchFixtures.CoreAnimation { diff --git a/tests/monotouch-test/CoreAnimation/LayerTest.cs b/tests/monotouch-test/CoreAnimation/LayerTest.cs index 84ae35283251..ed7f174462d7 100644 --- a/tests/monotouch-test/CoreAnimation/LayerTest.cs +++ b/tests/monotouch-test/CoreAnimation/LayerTest.cs @@ -7,14 +7,11 @@ // Copyright 2011 Xamarin Inc. All rights reserved. // -using System; using System.Diagnostics; using System.Linq; using System.Threading; using CoreGraphics; -using Foundation; using CoreAnimation; -using NUnit.Framework; namespace MonoTouchFixtures.CoreAnimation { diff --git a/tests/monotouch-test/CoreAnimation/MediaTimingFunctionTest.cs b/tests/monotouch-test/CoreAnimation/MediaTimingFunctionTest.cs index e1fa6340d0e2..dafbe6be4128 100644 --- a/tests/monotouch-test/CoreAnimation/MediaTimingFunctionTest.cs +++ b/tests/monotouch-test/CoreAnimation/MediaTimingFunctionTest.cs @@ -7,11 +7,8 @@ // Copyright 2012 Xamarin Inc. All rights reserved. // -using System; using CoreGraphics; -using Foundation; using CoreAnimation; -using NUnit.Framework; namespace MonoTouchFixtures.CoreMotion { diff --git a/tests/monotouch-test/CoreAnimation/ShapeLayerTest.cs b/tests/monotouch-test/CoreAnimation/ShapeLayerTest.cs index 59462c9afbf0..c68894fd83db 100644 --- a/tests/monotouch-test/CoreAnimation/ShapeLayerTest.cs +++ b/tests/monotouch-test/CoreAnimation/ShapeLayerTest.cs @@ -7,7 +7,6 @@ // Copyright 2012 Xamarin Inc. All rights reserved. // -using Foundation; using CoreAnimation; using CoreGraphics; #if MONOMAC @@ -16,7 +15,6 @@ #else using UIKit; #endif -using NUnit.Framework; namespace MonoTouchFixtures.CoreAnimation { diff --git a/tests/monotouch-test/CoreAnimation/TransactionTest.cs b/tests/monotouch-test/CoreAnimation/TransactionTest.cs index 5375f542727c..53d914050964 100644 --- a/tests/monotouch-test/CoreAnimation/TransactionTest.cs +++ b/tests/monotouch-test/CoreAnimation/TransactionTest.cs @@ -8,8 +8,6 @@ // using CoreAnimation; -using Foundation; -using NUnit.Framework; namespace MonoTouchFixtures.CoreAnimation { diff --git a/tests/monotouch-test/CoreAudioKit/AUViewController.cs b/tests/monotouch-test/CoreAudioKit/AUViewController.cs index 6462dac7123b..868189156e66 100644 --- a/tests/monotouch-test/CoreAudioKit/AUViewController.cs +++ b/tests/monotouch-test/CoreAudioKit/AUViewController.cs @@ -9,9 +9,7 @@ #if !__TVOS__ -using Foundation; using CoreAudioKit; -using NUnit.Framework; namespace MonoTouchFixtures.CoreAudioKit { diff --git a/tests/monotouch-test/CoreBluetooth/CentralManagerTest.cs b/tests/monotouch-test/CoreBluetooth/CentralManagerTest.cs index 6c5c5be7e5e7..725f0733e1f0 100644 --- a/tests/monotouch-test/CoreBluetooth/CentralManagerTest.cs +++ b/tests/monotouch-test/CoreBluetooth/CentralManagerTest.cs @@ -9,16 +9,11 @@ #if !__MACCATALYST__ -using System; using System.Threading; -using Foundation; using CoreBluetooth; -using CoreFoundation; -using ObjCRuntime; #if !MONOMAC using UIKit; #endif -using NUnit.Framework; using Xamarin.Utils; namespace MonoTouchFixtures.CoreBluetooth { diff --git a/tests/monotouch-test/CoreBluetooth/ErrorTest.cs b/tests/monotouch-test/CoreBluetooth/ErrorTest.cs index 0914642e8065..c2e1e3ee8617 100644 --- a/tests/monotouch-test/CoreBluetooth/ErrorTest.cs +++ b/tests/monotouch-test/CoreBluetooth/ErrorTest.cs @@ -7,9 +7,7 @@ // Copyright 2015 Xamarin Inc. All rights reserved. // -using Foundation; using CoreBluetooth; -using NUnit.Framework; namespace MonoTouchFixtures.CoreBluetooth { diff --git a/tests/monotouch-test/CoreBluetooth/PeerTest.cs b/tests/monotouch-test/CoreBluetooth/PeerTest.cs index d610910fc585..5b7397579da2 100644 --- a/tests/monotouch-test/CoreBluetooth/PeerTest.cs +++ b/tests/monotouch-test/CoreBluetooth/PeerTest.cs @@ -7,10 +7,7 @@ // Copyright 2014 Xamarin Inc. All rights reserved. // -using Foundation; using CoreBluetooth; -using ObjCRuntime; -using NUnit.Framework; using Xamarin.Utils; namespace MonoTouchFixtures.CoreBluetooth { diff --git a/tests/monotouch-test/CoreBluetooth/PeripheralScanningOptionsTest.cs b/tests/monotouch-test/CoreBluetooth/PeripheralScanningOptionsTest.cs index 4d658d1aec7e..cc8edbe775bb 100644 --- a/tests/monotouch-test/CoreBluetooth/PeripheralScanningOptionsTest.cs +++ b/tests/monotouch-test/CoreBluetooth/PeripheralScanningOptionsTest.cs @@ -7,12 +7,8 @@ // Copyright 2014 Xamarin Inc. All rights reserved. // -using System; -using Foundation; using CoreBluetooth; -using NUnit.Framework; - namespace MonoTouchFixtures.CoreBluetooth { [TestFixture] diff --git a/tests/monotouch-test/CoreBluetooth/UuidTest.cs b/tests/monotouch-test/CoreBluetooth/UuidTest.cs index 11039c015f57..a805d81baf56 100644 --- a/tests/monotouch-test/CoreBluetooth/UuidTest.cs +++ b/tests/monotouch-test/CoreBluetooth/UuidTest.cs @@ -8,17 +8,13 @@ // Copyright 2012-2014 Xamarin Inc. All rights reserved. // -using System; -using Foundation; using CoreBluetooth; -using ObjCRuntime; #if MONOMAC using AppKit; #else using UIKit; #endif -using NUnit.Framework; using Xamarin.Utils; namespace MonoTouchFixtures.CoreBluetooth { diff --git a/tests/monotouch-test/CoreData/AttributeDescriptionTest.cs b/tests/monotouch-test/CoreData/AttributeDescriptionTest.cs index 761c7dc6f608..4406a88bd688 100644 --- a/tests/monotouch-test/CoreData/AttributeDescriptionTest.cs +++ b/tests/monotouch-test/CoreData/AttributeDescriptionTest.cs @@ -7,10 +7,7 @@ // Copyright 2011-2012 Xamarin Inc. All rights reserved. // -using System; -using Foundation; using CoreData; -using NUnit.Framework; namespace MonoTouchFixtures.CoreData { diff --git a/tests/monotouch-test/CoreData/ExpressionDescriptionTest.cs b/tests/monotouch-test/CoreData/ExpressionDescriptionTest.cs index d9a497239467..9a09f0ee1287 100644 --- a/tests/monotouch-test/CoreData/ExpressionDescriptionTest.cs +++ b/tests/monotouch-test/CoreData/ExpressionDescriptionTest.cs @@ -1,7 +1,4 @@ -using System; -using Foundation; using CoreData; -using NUnit.Framework; namespace MonoTouchFixtures.CoreData { diff --git a/tests/monotouch-test/CoreData/FetchRequestExpressionTest.cs b/tests/monotouch-test/CoreData/FetchRequestExpressionTest.cs index 621ba89c0328..2ade5dbe0ed2 100644 --- a/tests/monotouch-test/CoreData/FetchRequestExpressionTest.cs +++ b/tests/monotouch-test/CoreData/FetchRequestExpressionTest.cs @@ -1,7 +1,4 @@ -using System; -using Foundation; using CoreData; -using NUnit.Framework; namespace MonoTouchFixtures.CoreData { diff --git a/tests/monotouch-test/CoreData/FetchRequestTest.cs b/tests/monotouch-test/CoreData/FetchRequestTest.cs index 2c94a53efebd..989c968457b3 100644 --- a/tests/monotouch-test/CoreData/FetchRequestTest.cs +++ b/tests/monotouch-test/CoreData/FetchRequestTest.cs @@ -7,10 +7,7 @@ // Copyright 2014 Xamarin Inc. All rights reserved. // -using System; using CoreData; -using Foundation; -using NUnit.Framework; namespace MonoTouchFixtures.CoreData { diff --git a/tests/monotouch-test/CoreData/FetchedResultsControllerTest.cs b/tests/monotouch-test/CoreData/FetchedResultsControllerTest.cs index 71f0c947e7d5..fff9593997f5 100644 --- a/tests/monotouch-test/CoreData/FetchedResultsControllerTest.cs +++ b/tests/monotouch-test/CoreData/FetchedResultsControllerTest.cs @@ -8,11 +8,8 @@ // #if !MONOMAC -using System; using System.Linq; -using Foundation; using CoreData; -using NUnit.Framework; namespace MonoTouchFixtures.CoreData { diff --git a/tests/monotouch-test/CoreData/ManagedObjectContextTest.cs b/tests/monotouch-test/CoreData/ManagedObjectContextTest.cs index 7b73cb4195c0..76bcfdf805cf 100644 --- a/tests/monotouch-test/CoreData/ManagedObjectContextTest.cs +++ b/tests/monotouch-test/CoreData/ManagedObjectContextTest.cs @@ -7,11 +7,7 @@ // Copyright 2012 Xamarin Inc. All rights reserved. // -using System; -using Foundation; using CoreData; -using ObjCRuntime; -using NUnit.Framework; using Xamarin.Utils; namespace MonoTouchFixtures.CoreData { diff --git a/tests/monotouch-test/CoreData/ManagedObjectModelTest.cs b/tests/monotouch-test/CoreData/ManagedObjectModelTest.cs index 15af271ccfc1..940bc15fa7ee 100644 --- a/tests/monotouch-test/CoreData/ManagedObjectModelTest.cs +++ b/tests/monotouch-test/CoreData/ManagedObjectModelTest.cs @@ -7,10 +7,7 @@ // Copyright 2014 Xamarin Inc. All rights reserved. // -using System; using CoreData; -using Foundation; -using NUnit.Framework; namespace MonoTouchFixtures.CoreData { diff --git a/tests/monotouch-test/CoreData/NSPersistentStoreCoordinatorTest.cs b/tests/monotouch-test/CoreData/NSPersistentStoreCoordinatorTest.cs index b66e9379157d..bdb9355d09fa 100644 --- a/tests/monotouch-test/CoreData/NSPersistentStoreCoordinatorTest.cs +++ b/tests/monotouch-test/CoreData/NSPersistentStoreCoordinatorTest.cs @@ -4,13 +4,9 @@ #if !TVOS -using System; using System.Linq; using CoreData; -using Foundation; - -using NUnit.Framework; namespace MonoTouchFixtures.CoreData { diff --git a/tests/monotouch-test/CoreData/NSQueryGenerationTokenTest.cs b/tests/monotouch-test/CoreData/NSQueryGenerationTokenTest.cs index b52d20a6f848..97611a73a5bc 100644 --- a/tests/monotouch-test/CoreData/NSQueryGenerationTokenTest.cs +++ b/tests/monotouch-test/CoreData/NSQueryGenerationTokenTest.cs @@ -1,6 +1,4 @@ using CoreData; -using Foundation; -using NUnit.Framework; namespace MonoTouchFixtures.CoreData { [TestFixture] diff --git a/tests/monotouch-test/CoreData/PropertyDescriptionTest.cs b/tests/monotouch-test/CoreData/PropertyDescriptionTest.cs index d8d970420881..288541e917e7 100644 --- a/tests/monotouch-test/CoreData/PropertyDescriptionTest.cs +++ b/tests/monotouch-test/CoreData/PropertyDescriptionTest.cs @@ -1,7 +1,4 @@ -using System; -using Foundation; using CoreData; -using NUnit.Framework; namespace MonoTouchFixtures.CoreData { diff --git a/tests/monotouch-test/CoreFoundation/ArrayTest.cs b/tests/monotouch-test/CoreFoundation/ArrayTest.cs index f8628af2625a..93da4f12a9ad 100644 --- a/tests/monotouch-test/CoreFoundation/ArrayTest.cs +++ b/tests/monotouch-test/CoreFoundation/ArrayTest.cs @@ -1,14 +1,5 @@ #nullable enable -using System; -using System.Runtime.InteropServices; - -using CoreFoundation; -using Foundation; -using ObjCRuntime; - -using NUnit.Framework; - namespace MonoTouchFixtures.CoreFoundation { [TestFixture] diff --git a/tests/monotouch-test/CoreFoundation/BundleTest.cs b/tests/monotouch-test/CoreFoundation/BundleTest.cs index 6bd1b7884e20..85024aa0ba3c 100644 --- a/tests/monotouch-test/CoreFoundation/BundleTest.cs +++ b/tests/monotouch-test/CoreFoundation/BundleTest.cs @@ -1,13 +1,8 @@ // // Copyright 2015 Xamarin Inc // -using System; -using System.Collections.Generic; using System.IO; using System.Linq; -using Foundation; -using CoreFoundation; -using NUnit.Framework; namespace MonoTouchFixtures.CoreFoundation { diff --git a/tests/monotouch-test/CoreFoundation/CFNotificationCenterTest.cs b/tests/monotouch-test/CoreFoundation/CFNotificationCenterTest.cs index c30243bb0adf..67128cb914a1 100644 --- a/tests/monotouch-test/CoreFoundation/CFNotificationCenterTest.cs +++ b/tests/monotouch-test/CoreFoundation/CFNotificationCenterTest.cs @@ -7,13 +7,8 @@ // Copyright 2015 Xamarin Inc. All rights reserved. // -using System; using System.Threading; -using Foundation; -using CoreFoundation; -using NUnit.Framework; - namespace MonoTouchFixtures.CoreFoundation { [TestFixture] [Preserve (AllMembers = true)] diff --git a/tests/monotouch-test/CoreFoundation/DispatchBlockTests.cs b/tests/monotouch-test/CoreFoundation/DispatchBlockTests.cs index dbea34ba1c77..80fb6b2ae5f5 100644 --- a/tests/monotouch-test/CoreFoundation/DispatchBlockTests.cs +++ b/tests/monotouch-test/CoreFoundation/DispatchBlockTests.cs @@ -7,12 +7,6 @@ // Copyright 2019 Microsoft Corp. // -using System; - -using Foundation; -using CoreFoundation; -using ObjCRuntime; -using NUnit.Framework; using Xamarin.Utils; namespace MonoTouchFixtures.CoreFoundation { diff --git a/tests/monotouch-test/CoreFoundation/DispatchDataTest.cs b/tests/monotouch-test/CoreFoundation/DispatchDataTest.cs index 3e0bb21aa57f..4e32da2464a9 100644 --- a/tests/monotouch-test/CoreFoundation/DispatchDataTest.cs +++ b/tests/monotouch-test/CoreFoundation/DispatchDataTest.cs @@ -1,10 +1,5 @@ -using System; using System.Text; -using Foundation; -using CoreFoundation; -using NUnit.Framework; - namespace MonoTouchFixtures.CoreFoundation { [TestFixture] diff --git a/tests/monotouch-test/CoreFoundation/DispatchGroupTest.cs b/tests/monotouch-test/CoreFoundation/DispatchGroupTest.cs index 9ed204884537..771e42661424 100644 --- a/tests/monotouch-test/CoreFoundation/DispatchGroupTest.cs +++ b/tests/monotouch-test/CoreFoundation/DispatchGroupTest.cs @@ -7,12 +7,6 @@ // Copyright 2013 Xamarin Inc. All rights reserved. // -using System; - -using Foundation; -using CoreFoundation; -using ObjCRuntime; -using NUnit.Framework; using Xamarin.Utils; namespace MonoTouchFixtures.CoreFoundation { diff --git a/tests/monotouch-test/CoreFoundation/DispatchQueueTest.cs b/tests/monotouch-test/CoreFoundation/DispatchQueueTest.cs index 1b7700ca17bf..0565463f4668 100644 --- a/tests/monotouch-test/CoreFoundation/DispatchQueueTest.cs +++ b/tests/monotouch-test/CoreFoundation/DispatchQueueTest.cs @@ -7,19 +7,14 @@ // Copyright 2018 Microsoft Corp. All rights reserved. // -using System; using System.IO; using System.Threading.Tasks; -using CoreFoundation; -using Foundation; -using ObjCRuntime; #if MONOMAC using AppKit; #else using UIKit; #endif -using NUnit.Framework; using Xamarin.Utils; namespace MonoTouchFixtures.CoreFoundation { diff --git a/tests/monotouch-test/CoreFoundation/DispatchTests.cs b/tests/monotouch-test/CoreFoundation/DispatchTests.cs index f4ce978fc9ef..1782049f7bd2 100644 --- a/tests/monotouch-test/CoreFoundation/DispatchTests.cs +++ b/tests/monotouch-test/CoreFoundation/DispatchTests.cs @@ -7,18 +7,13 @@ // Copyright 2012 Xamarin Inc. All rights reserved. // -using System; using System.IO; using CoreGraphics; -using CoreFoundation; -using Foundation; -using ObjCRuntime; #if MONOMAC using AppKit; #else using UIKit; #endif -using NUnit.Framework; using System.Threading; using Xamarin.Utils; diff --git a/tests/monotouch-test/CoreFoundation/MutableString.cs b/tests/monotouch-test/CoreFoundation/MutableString.cs index fe579a0ef85c..5883b9e37b69 100644 --- a/tests/monotouch-test/CoreFoundation/MutableString.cs +++ b/tests/monotouch-test/CoreFoundation/MutableString.cs @@ -1,7 +1,3 @@ -using System; -using Foundation; -using CoreFoundation; -using NUnit.Framework; namespace MonoTouchFixtures.CoreFoundation { diff --git a/tests/monotouch-test/CoreFoundation/NativeObjectTest.cs b/tests/monotouch-test/CoreFoundation/NativeObjectTest.cs index b1e32465cb1a..42df872e372c 100644 --- a/tests/monotouch-test/CoreFoundation/NativeObjectTest.cs +++ b/tests/monotouch-test/CoreFoundation/NativeObjectTest.cs @@ -1,8 +1,4 @@ -using System; using System.Runtime.CompilerServices; -using CoreFoundation; -using Foundation; -using NUnit.Framework; namespace MonoTouchFixtures.CoreFoundation { diff --git a/tests/monotouch-test/CoreFoundation/NetworkTest.cs b/tests/monotouch-test/CoreFoundation/NetworkTest.cs index 7acc0de149a7..a02509ac2c32 100644 --- a/tests/monotouch-test/CoreFoundation/NetworkTest.cs +++ b/tests/monotouch-test/CoreFoundation/NetworkTest.cs @@ -7,18 +7,13 @@ // Copyright 2012 Xamarin Inc. All rights reserved. // -using System; using System.Net; using System.Threading.Tasks; using System.IO; -using Foundation; -using CoreFoundation; -using NUnit.Framework; // Mac tries to use CFNetwork Namespace instead of Class for calls without this: using PlatformCFNetwork = CoreFoundation.CFNetwork; using MonoTests.System.Net.Http; - namespace MonoTouchFixtures.CoreFoundation { [TestFixture] diff --git a/tests/monotouch-test/CoreFoundation/NotificationCenterTest.cs b/tests/monotouch-test/CoreFoundation/NotificationCenterTest.cs index d804d01e77e8..32842b0f7a71 100644 --- a/tests/monotouch-test/CoreFoundation/NotificationCenterTest.cs +++ b/tests/monotouch-test/CoreFoundation/NotificationCenterTest.cs @@ -7,10 +7,6 @@ // Copyright 2015 Xamarin Inc. All rights reserved. // -using Foundation; -using CoreFoundation; -using NUnit.Framework; - namespace MonoTouchFixtures.CoreFoundation { [TestFixture] diff --git a/tests/monotouch-test/CoreFoundation/OSLogTest.cs b/tests/monotouch-test/CoreFoundation/OSLogTest.cs index 7f44d1d39ec1..4bf02078000f 100644 --- a/tests/monotouch-test/CoreFoundation/OSLogTest.cs +++ b/tests/monotouch-test/CoreFoundation/OSLogTest.cs @@ -1,6 +1,3 @@ -using Foundation; - -using NUnit.Framework; namespace MonoTouchFixtures.CoreFoundation { diff --git a/tests/monotouch-test/CoreFoundation/PropertyListTests.cs b/tests/monotouch-test/CoreFoundation/PropertyListTests.cs index a3c3bc6d794e..2de0479afe5c 100644 --- a/tests/monotouch-test/CoreFoundation/PropertyListTests.cs +++ b/tests/monotouch-test/CoreFoundation/PropertyListTests.cs @@ -7,15 +7,7 @@ // Copyright 2015 Xamarin Inc. All rights reserved. // -using System; using System.IO; -using System.Runtime.InteropServices; - -using CoreFoundation; -using Foundation; -using ObjCRuntime; - -using NUnit.Framework; namespace MonoTouchFixtures.CoreFoundation { diff --git a/tests/monotouch-test/CoreFoundation/ProxyTest.cs b/tests/monotouch-test/CoreFoundation/ProxyTest.cs index ccc53f6fe75f..99c7c214d68b 100644 --- a/tests/monotouch-test/CoreFoundation/ProxyTest.cs +++ b/tests/monotouch-test/CoreFoundation/ProxyTest.cs @@ -7,18 +7,12 @@ // Copyright 2012 Xamarin Inc. All rights reserved. // -using System; using System.Threading; using System.IO; using System.Net; -using Foundation; -using CoreFoundation; -using ObjCRuntime; -using NUnit.Framework; using MonoTests.System.Net.Http; - namespace MonoTouchFixtures.CoreFoundation { [TestFixture] diff --git a/tests/monotouch-test/CoreFoundation/RunLoopTest.cs b/tests/monotouch-test/CoreFoundation/RunLoopTest.cs index 3513915bd6ab..86080d03ea20 100644 --- a/tests/monotouch-test/CoreFoundation/RunLoopTest.cs +++ b/tests/monotouch-test/CoreFoundation/RunLoopTest.cs @@ -7,12 +7,6 @@ // Copyright 2023 Microsoft Corp. All rights reserved. // -using System; -using Foundation; -using CoreFoundation; - -using NUnit.Framework; - namespace MonoTouchFixtures.CoreFoundation { [TestFixture] diff --git a/tests/monotouch-test/CoreFoundation/SocketTest.cs b/tests/monotouch-test/CoreFoundation/SocketTest.cs index e89408f4495b..055a17b56f56 100644 --- a/tests/monotouch-test/CoreFoundation/SocketTest.cs +++ b/tests/monotouch-test/CoreFoundation/SocketTest.cs @@ -7,16 +7,10 @@ // Copyright 2019 Microsoft Inc. All rights reserved. // -using System; using System.Linq; using System.Net; using System.Net.Sockets; -using System.Runtime.InteropServices; using System.Threading; -using Foundation; -using CoreFoundation; -using ObjCRuntime; -using NUnit.Framework; namespace MonoTouchFixtures.CoreFoundation { diff --git a/tests/monotouch-test/CoreFoundation/StringTest.cs b/tests/monotouch-test/CoreFoundation/StringTest.cs index ea97f80eca22..6a10688c42f2 100644 --- a/tests/monotouch-test/CoreFoundation/StringTest.cs +++ b/tests/monotouch-test/CoreFoundation/StringTest.cs @@ -7,11 +7,6 @@ // Copyright 2012-2014 Xamarin Inc. All rights reserved. // -using System; -using Foundation; -using CoreFoundation; -using NUnit.Framework; - namespace MonoTouchFixtures.CoreFoundation { [TestFixture] diff --git a/tests/monotouch-test/CoreFoundation/UrlTest.cs b/tests/monotouch-test/CoreFoundation/UrlTest.cs index a1a8080e966a..248171776acf 100644 --- a/tests/monotouch-test/CoreFoundation/UrlTest.cs +++ b/tests/monotouch-test/CoreFoundation/UrlTest.cs @@ -7,13 +7,8 @@ // Copyright 2012 Xamarin Inc. All rights reserved. // -using System; using System.IO; -using Foundation; -using CoreFoundation; -using ObjCRuntime; -using NUnit.Framework; using Xamarin.Utils; namespace MonoTouchFixtures.CoreFoundation { diff --git a/tests/monotouch-test/CoreGraphics/AffineTransformTest.cs b/tests/monotouch-test/CoreGraphics/AffineTransformTest.cs index bf25e74fa22c..e16da0416ac7 100644 --- a/tests/monotouch-test/CoreGraphics/AffineTransformTest.cs +++ b/tests/monotouch-test/CoreGraphics/AffineTransformTest.cs @@ -8,14 +8,7 @@ // Copyright 2019 Microsoft Corporation // -using System; -using System.Runtime.InteropServices; -using Foundation; using CoreGraphics; -using CoreFoundation; -using ObjCRuntime; - -using NUnit.Framework; namespace MonoTouchFixtures.CoreGraphics { diff --git a/tests/monotouch-test/CoreGraphics/BitmapContextTest.cs b/tests/monotouch-test/CoreGraphics/BitmapContextTest.cs index 6f237c5d8ccb..d90ed4b04591 100644 --- a/tests/monotouch-test/CoreGraphics/BitmapContextTest.cs +++ b/tests/monotouch-test/CoreGraphics/BitmapContextTest.cs @@ -7,12 +7,7 @@ // Copyright 2012-2014 Xamarin Inc. All rights reserved. // -using System; -using System.Runtime.InteropServices; - -using Foundation; using CoreGraphics; -using NUnit.Framework; namespace MonoTouchFixtures.CoreGraphics { diff --git a/tests/monotouch-test/CoreGraphics/CGEventTests.cs b/tests/monotouch-test/CoreGraphics/CGEventTests.cs index f20fbbfb9e73..0472e7b7bf78 100644 --- a/tests/monotouch-test/CoreGraphics/CGEventTests.cs +++ b/tests/monotouch-test/CoreGraphics/CGEventTests.cs @@ -1,16 +1,12 @@ -using System; using System.Diagnostics; -using System.Runtime.InteropServices; using System.Text; -using Foundation; #if MONOMAC using AppKit; #else using UIKit; #endif using CoreGraphics; -using NUnit.Framework; namespace MonoTouchFixtures.CoreGraphics { diff --git a/tests/monotouch-test/CoreGraphics/CGImageMetadataTests.cs b/tests/monotouch-test/CoreGraphics/CGImageMetadataTests.cs index dcc4ac585872..6801d4d497c8 100644 --- a/tests/monotouch-test/CoreGraphics/CGImageMetadataTests.cs +++ b/tests/monotouch-test/CoreGraphics/CGImageMetadataTests.cs @@ -4,17 +4,13 @@ using System.IO; -using Foundation; #if MONOMAC using AppKit; #else using UIKit; #endif using CoreGraphics; -using NUnit.Framework; using ImageIO; -using System.Runtime.InteropServices; -using System.Collections.Generic; namespace MonoTouchFixtures.CoreGraphics { [TestFixture] diff --git a/tests/monotouch-test/CoreGraphics/CGImagePropertiesExifTest.cs b/tests/monotouch-test/CoreGraphics/CGImagePropertiesExifTest.cs index ec7ab88493bd..fad44b8bd059 100644 --- a/tests/monotouch-test/CoreGraphics/CGImagePropertiesExifTest.cs +++ b/tests/monotouch-test/CoreGraphics/CGImagePropertiesExifTest.cs @@ -1,17 +1,13 @@ -using System; using System.IO; using CoreGraphics; using CoreImage; -using Foundation; #if MONOMAC using AppKit; #else using UIKit; #endif -using NUnit.Framework; - namespace monotouchtest.CoreGraphics { [TestFixture] [Preserve (AllMembers = true)] diff --git a/tests/monotouch-test/CoreGraphics/CGImagePropertiesGPSTest.cs b/tests/monotouch-test/CoreGraphics/CGImagePropertiesGPSTest.cs index 59bd00a036dd..fe8cb4696c8a 100644 --- a/tests/monotouch-test/CoreGraphics/CGImagePropertiesGPSTest.cs +++ b/tests/monotouch-test/CoreGraphics/CGImagePropertiesGPSTest.cs @@ -1,17 +1,13 @@ -using System; using System.IO; using CoreGraphics; using CoreImage; -using Foundation; #if MONOMAC using AppKit; #else using UIKit; #endif -using NUnit.Framework; - namespace monotouchtest.CoreGraphics { [TestFixture] [Preserve (AllMembers = true)] diff --git a/tests/monotouch-test/CoreGraphics/CGImagePropertiesIptcTest.cs b/tests/monotouch-test/CoreGraphics/CGImagePropertiesIptcTest.cs index 9cc093cde9c1..12ce7ef85071 100644 --- a/tests/monotouch-test/CoreGraphics/CGImagePropertiesIptcTest.cs +++ b/tests/monotouch-test/CoreGraphics/CGImagePropertiesIptcTest.cs @@ -1,17 +1,13 @@ -using System; using System.IO; using CoreGraphics; using CoreImage; -using Foundation; #if MONOMAC using AppKit; #else using UIKit; #endif -using NUnit.Framework; - namespace monotouchtest.CoreGraphics { [TestFixture] [Preserve (AllMembers = true)] diff --git a/tests/monotouch-test/CoreGraphics/CGImagePropertiesJfifTest.cs b/tests/monotouch-test/CoreGraphics/CGImagePropertiesJfifTest.cs index 2879a6e426b0..768227636ed2 100644 --- a/tests/monotouch-test/CoreGraphics/CGImagePropertiesJfifTest.cs +++ b/tests/monotouch-test/CoreGraphics/CGImagePropertiesJfifTest.cs @@ -1,17 +1,13 @@ -using System; using System.IO; using CoreGraphics; using CoreImage; -using Foundation; #if MONOMAC using AppKit; #else using UIKit; #endif -using NUnit.Framework; - namespace monotouchtest.CoreGraphics { [TestFixture] [Preserve (AllMembers = true)] diff --git a/tests/monotouch-test/CoreGraphics/CGImagePropertiesPngTest.cs b/tests/monotouch-test/CoreGraphics/CGImagePropertiesPngTest.cs index 8c95c76b37ca..0ee7dc6c0076 100644 --- a/tests/monotouch-test/CoreGraphics/CGImagePropertiesPngTest.cs +++ b/tests/monotouch-test/CoreGraphics/CGImagePropertiesPngTest.cs @@ -1,17 +1,13 @@ -using System; using System.IO; using CoreGraphics; using CoreImage; -using Foundation; #if MONOMAC using AppKit; #else using UIKit; #endif -using NUnit.Framework; - namespace monotouchtest.CoreGraphics { [TestFixture] [Preserve (AllMembers = true)] diff --git a/tests/monotouch-test/CoreGraphics/CGImagePropertiesTiffTest.cs b/tests/monotouch-test/CoreGraphics/CGImagePropertiesTiffTest.cs index 355c75d0793b..95f4cde81b48 100644 --- a/tests/monotouch-test/CoreGraphics/CGImagePropertiesTiffTest.cs +++ b/tests/monotouch-test/CoreGraphics/CGImagePropertiesTiffTest.cs @@ -1,17 +1,13 @@ -using System; using System.IO; using CoreGraphics; using CoreImage; -using Foundation; #if MONOMAC using AppKit; #else using UIKit; #endif -using NUnit.Framework; - namespace monotouchtest.CoreGraphics { [TestFixture] [Preserve (AllMembers = true)] diff --git a/tests/monotouch-test/CoreGraphics/CGImageTest.cs b/tests/monotouch-test/CoreGraphics/CGImageTest.cs index 9977228886f0..d09372141921 100644 --- a/tests/monotouch-test/CoreGraphics/CGImageTest.cs +++ b/tests/monotouch-test/CoreGraphics/CGImageTest.cs @@ -10,14 +10,12 @@ using System.IO; -using Foundation; #if MONOMAC using AppKit; #else using UIKit; #endif using CoreGraphics; -using NUnit.Framework; namespace MonoTouchFixtures.CoreGraphics { diff --git a/tests/monotouch-test/CoreGraphics/ColorConversionInfoTest.cs b/tests/monotouch-test/CoreGraphics/ColorConversionInfoTest.cs index ba108af955ef..d1d3396fac6d 100644 --- a/tests/monotouch-test/CoreGraphics/ColorConversionInfoTest.cs +++ b/tests/monotouch-test/CoreGraphics/ColorConversionInfoTest.cs @@ -7,12 +7,7 @@ // Copyright 2016 Xamarin Inc. All rights reserved. // -using System; -using System.Runtime.InteropServices; using CoreGraphics; -using Foundation; -using ObjCRuntime; -using NUnit.Framework; using GColorConversionInfoTriple = CoreGraphics.CGColorConversionInfoTriple; diff --git a/tests/monotouch-test/CoreGraphics/ColorSpaceTest.cs b/tests/monotouch-test/CoreGraphics/ColorSpaceTest.cs index 96ba2959a48b..b61cd34e189b 100644 --- a/tests/monotouch-test/CoreGraphics/ColorSpaceTest.cs +++ b/tests/monotouch-test/CoreGraphics/ColorSpaceTest.cs @@ -7,17 +7,13 @@ // Copyright 2012-2013, 2016 Xamarin Inc. All rights reserved. // -using System; using System.IO; -using Foundation; #if MONOMAC using AppKit; #else using UIKit; #endif using CoreGraphics; -using ObjCRuntime; -using NUnit.Framework; namespace MonoTouchFixtures.CoreGraphics { diff --git a/tests/monotouch-test/CoreGraphics/ColorTest.cs b/tests/monotouch-test/CoreGraphics/ColorTest.cs index 70f5fc5d7841..106b110f30a4 100644 --- a/tests/monotouch-test/CoreGraphics/ColorTest.cs +++ b/tests/monotouch-test/CoreGraphics/ColorTest.cs @@ -7,11 +7,7 @@ // Copyright 2015 Xamarin Inc. All rights reserved. // -using System; -using Foundation; -using ObjCRuntime; using CoreGraphics; -using NUnit.Framework; namespace MonoTouchFixtures.CoreGraphics { diff --git a/tests/monotouch-test/CoreGraphics/ContextTest.cs b/tests/monotouch-test/CoreGraphics/ContextTest.cs index b159b67d7cd4..1994a8ae2ef4 100644 --- a/tests/monotouch-test/CoreGraphics/ContextTest.cs +++ b/tests/monotouch-test/CoreGraphics/ContextTest.cs @@ -7,13 +7,9 @@ // Copyright 2013 Xamarin Inc. All rights reserved. // -using System; using System.IO; -using Foundation; using CoreGraphics; -using ObjCRuntime; -using NUnit.Framework; namespace MonoTouchFixtures.CoreGraphics { diff --git a/tests/monotouch-test/CoreGraphics/DataConsumerTest.cs b/tests/monotouch-test/CoreGraphics/DataConsumerTest.cs index 848e4818b89a..7ec008451ba1 100644 --- a/tests/monotouch-test/CoreGraphics/DataConsumerTest.cs +++ b/tests/monotouch-test/CoreGraphics/DataConsumerTest.cs @@ -7,12 +7,7 @@ // Copyright 2015 Xamarin Inc. All rights reserved. // -using System; -using System.Runtime.InteropServices; -using Foundation; using CoreGraphics; -using ObjCRuntime; -using NUnit.Framework; namespace MonoTouchFixtures.CoreGraphics { diff --git a/tests/monotouch-test/CoreGraphics/DataProviderTest.cs b/tests/monotouch-test/CoreGraphics/DataProviderTest.cs index e906f29fb8a1..28bab218c9bc 100644 --- a/tests/monotouch-test/CoreGraphics/DataProviderTest.cs +++ b/tests/monotouch-test/CoreGraphics/DataProviderTest.cs @@ -7,14 +7,9 @@ // Copyright 2014-2015 Xamarin Inc. All rights reserved. // -using System; using System.IO; -using System.Runtime.InteropServices; using System.Text; -using Foundation; using CoreGraphics; -using ObjCRuntime; -using NUnit.Framework; namespace MonoTouchFixtures.CoreGraphics { diff --git a/tests/monotouch-test/CoreGraphics/FontTest.cs b/tests/monotouch-test/CoreGraphics/FontTest.cs index bf640bc3a3e5..8073f7035bb8 100644 --- a/tests/monotouch-test/CoreGraphics/FontTest.cs +++ b/tests/monotouch-test/CoreGraphics/FontTest.cs @@ -7,17 +7,12 @@ // Copyright 2015 Xamarin Inc. All rights reserved. // -using System; -using System.Runtime.InteropServices; -using Foundation; using CoreGraphics; -using ObjCRuntime; #if MONOMAC using AppKit; #else using UIKit; #endif -using NUnit.Framework; namespace MonoTouchFixtures.CoreGraphics { diff --git a/tests/monotouch-test/CoreGraphics/FunctionTest.cs b/tests/monotouch-test/CoreGraphics/FunctionTest.cs index acddc6a49922..5985a35a8539 100644 --- a/tests/monotouch-test/CoreGraphics/FunctionTest.cs +++ b/tests/monotouch-test/CoreGraphics/FunctionTest.cs @@ -8,14 +8,8 @@ // #if !MONOMAC -using System; -using System.Collections.Generic; - -using Foundation; using CoreGraphics; using UIKit; -using ObjCRuntime; -using NUnit.Framework; namespace MonoTouchFixtures.CoreGraphics { diff --git a/tests/monotouch-test/CoreGraphics/GeometryTest.cs b/tests/monotouch-test/CoreGraphics/GeometryTest.cs index dc74cb1f3a30..f60ced6f596c 100644 --- a/tests/monotouch-test/CoreGraphics/GeometryTest.cs +++ b/tests/monotouch-test/CoreGraphics/GeometryTest.cs @@ -7,11 +7,7 @@ // Copyright 2014 Xamarin Inc. All rights reserved. // -using System; -using Foundation; using CoreGraphics; -using ObjCRuntime; -using NUnit.Framework; namespace MonoTouchFixtures.CoreGraphics { diff --git a/tests/monotouch-test/CoreGraphics/GradientTest.cs b/tests/monotouch-test/CoreGraphics/GradientTest.cs index 36a220fc181d..ac6abb42f5cb 100644 --- a/tests/monotouch-test/CoreGraphics/GradientTest.cs +++ b/tests/monotouch-test/CoreGraphics/GradientTest.cs @@ -7,9 +7,6 @@ // Copyright 2012, 2015 Xamarin Inc. All rights reserved. // -using System; -using System.Runtime.InteropServices; -using Foundation; #if MONOMAC using AppKit; using UIColor = AppKit.NSColor; @@ -17,8 +14,6 @@ using UIKit; #endif using CoreGraphics; -using ObjCRuntime; -using NUnit.Framework; namespace MonoTouchFixtures.CoreGraphics { diff --git a/tests/monotouch-test/CoreGraphics/PDFContentStreamTest.cs b/tests/monotouch-test/CoreGraphics/PDFContentStreamTest.cs index ea66380b19fb..4d51c1944ceb 100644 --- a/tests/monotouch-test/CoreGraphics/PDFContentStreamTest.cs +++ b/tests/monotouch-test/CoreGraphics/PDFContentStreamTest.cs @@ -7,10 +7,7 @@ // Copyright 2014 Xamarin Inc. All rights reserved. // -using System; -using Foundation; using CoreGraphics; -using NUnit.Framework; namespace MonoTouchFixtures.CoreGraphics { diff --git a/tests/monotouch-test/CoreGraphics/PDFContextTest.cs b/tests/monotouch-test/CoreGraphics/PDFContextTest.cs index 3cec0525f837..3c29942c9311 100644 --- a/tests/monotouch-test/CoreGraphics/PDFContextTest.cs +++ b/tests/monotouch-test/CoreGraphics/PDFContextTest.cs @@ -7,11 +7,7 @@ // Copyright 2014 Xamarin Inc. All rights reserved. // -using System; using CoreGraphics; -using Foundation; -using ObjCRuntime; -using NUnit.Framework; namespace MonoTouchFixtures.CoreGraphics { diff --git a/tests/monotouch-test/CoreGraphics/PDFDocumentTest.cs b/tests/monotouch-test/CoreGraphics/PDFDocumentTest.cs index 353226dd1ee0..c0aab11187fb 100644 --- a/tests/monotouch-test/CoreGraphics/PDFDocumentTest.cs +++ b/tests/monotouch-test/CoreGraphics/PDFDocumentTest.cs @@ -7,13 +7,8 @@ // Copyright 2012 Xamarin Inc. All rights reserved. // -using System; -using System.Collections.Generic; using System.Text; -using Foundation; using CoreGraphics; -using ObjCRuntime; -using NUnit.Framework; namespace MonoTouchFixtures.CoreGraphics { diff --git a/tests/monotouch-test/CoreGraphics/PDFInfoTest.cs b/tests/monotouch-test/CoreGraphics/PDFInfoTest.cs index b237f11a5f52..9d0f3b704957 100644 --- a/tests/monotouch-test/CoreGraphics/PDFInfoTest.cs +++ b/tests/monotouch-test/CoreGraphics/PDFInfoTest.cs @@ -7,9 +7,6 @@ // Copyright 2012-2014 Xamarin Inc. All rights reserved. // -using System; -using Foundation; -using ObjCRuntime; #if MONOMAC using AppKit; #else @@ -17,8 +14,6 @@ #endif using CoreGraphics; -using NUnit.Framework; - namespace MonoTouchFixtures.CoreGraphics { [TestFixture] diff --git a/tests/monotouch-test/CoreGraphics/PDFOperatorTableTest.cs b/tests/monotouch-test/CoreGraphics/PDFOperatorTableTest.cs index 7cc78eefff85..519244a2c7f6 100644 --- a/tests/monotouch-test/CoreGraphics/PDFOperatorTableTest.cs +++ b/tests/monotouch-test/CoreGraphics/PDFOperatorTableTest.cs @@ -7,10 +7,7 @@ // Copyright 2014 Xamarin Inc. All rights reserved. // -using System; -using Foundation; using CoreGraphics; -using NUnit.Framework; namespace MonoTouchFixtures.CoreGraphics { diff --git a/tests/monotouch-test/CoreGraphics/PDFScannerTest.cs b/tests/monotouch-test/CoreGraphics/PDFScannerTest.cs index 856ddb8e687e..def94c38556b 100644 --- a/tests/monotouch-test/CoreGraphics/PDFScannerTest.cs +++ b/tests/monotouch-test/CoreGraphics/PDFScannerTest.cs @@ -7,13 +7,7 @@ // Copyright 2014 Xamarin Inc. All rights reserved. // -using System; -using System.Runtime.InteropServices; - -using Foundation; using CoreGraphics; -using ObjCRuntime; -using NUnit.Framework; namespace MonoTouchFixtures.CoreGraphics { diff --git a/tests/monotouch-test/CoreGraphics/PathTest.cs b/tests/monotouch-test/CoreGraphics/PathTest.cs index 65b3123b1910..6149a1d4dd18 100644 --- a/tests/monotouch-test/CoreGraphics/PathTest.cs +++ b/tests/monotouch-test/CoreGraphics/PathTest.cs @@ -7,12 +7,7 @@ // Copyright 2013-2014 Xamarin Inc. All rights reserved. // -using System; -using System.Runtime.InteropServices; -using Foundation; using CoreGraphics; -using ObjCRuntime; -using NUnit.Framework; namespace MonoTouchFixtures.CoreGraphics { diff --git a/tests/monotouch-test/CoreGraphics/PatternTest.cs b/tests/monotouch-test/CoreGraphics/PatternTest.cs index 73c3f271196f..0c75ccefd175 100644 --- a/tests/monotouch-test/CoreGraphics/PatternTest.cs +++ b/tests/monotouch-test/CoreGraphics/PatternTest.cs @@ -7,12 +7,7 @@ // Copyright 2019 Microsoft Corp. All rights reserved. // -using System; -using System.Runtime.InteropServices; - using CoreGraphics; -using Foundation; -using ObjCRuntime; #if __MACOS__ using AppKit; using UIImage = AppKit.NSImage; @@ -21,8 +16,6 @@ using UIKit; #endif -using NUnit.Framework; - namespace MonoTouchFixtures.CoreGraphics { [TestFixture] diff --git a/tests/monotouch-test/CoreGraphics/PdfTagTypeTest.cs b/tests/monotouch-test/CoreGraphics/PdfTagTypeTest.cs index 46642c430941..da9fdecbb354 100644 --- a/tests/monotouch-test/CoreGraphics/PdfTagTypeTest.cs +++ b/tests/monotouch-test/CoreGraphics/PdfTagTypeTest.cs @@ -1,7 +1,4 @@ using CoreGraphics; -using Foundation; -using ObjCRuntime; -using NUnit.Framework; namespace MonoTouchFixtures.CoreGraphics { diff --git a/tests/monotouch-test/CoreGraphics/PointTest.cs b/tests/monotouch-test/CoreGraphics/PointTest.cs index d4aa6356e45a..c7bb4948cad5 100644 --- a/tests/monotouch-test/CoreGraphics/PointTest.cs +++ b/tests/monotouch-test/CoreGraphics/PointTest.cs @@ -5,11 +5,7 @@ // Sebastien Pouliot < sebastien.pouliot@gmail.com> // -using System; -using Foundation; using CoreGraphics; -using ObjCRuntime; -using NUnit.Framework; namespace MonoTouchFixtures.CoreGraphics { diff --git a/tests/monotouch-test/CoreGraphics/RectTest.cs b/tests/monotouch-test/CoreGraphics/RectTest.cs index 76b929fa27fd..ced9f14f8e65 100644 --- a/tests/monotouch-test/CoreGraphics/RectTest.cs +++ b/tests/monotouch-test/CoreGraphics/RectTest.cs @@ -7,11 +7,7 @@ // Copyright 2016 Xamarin Inc. All rights reserved. // -using System; -using Foundation; using CoreGraphics; -using ObjCRuntime; -using NUnit.Framework; namespace MonoTouchFixtures.CoreGraphics { [TestFixture] diff --git a/tests/monotouch-test/CoreGraphics/SizeTest.cs b/tests/monotouch-test/CoreGraphics/SizeTest.cs index d8c090597d30..81a49950175a 100644 --- a/tests/monotouch-test/CoreGraphics/SizeTest.cs +++ b/tests/monotouch-test/CoreGraphics/SizeTest.cs @@ -5,11 +5,7 @@ // Sebastien Pouliot < sebastien.pouliot@gmail.com> // -using System; -using Foundation; using CoreGraphics; -using ObjCRuntime; -using NUnit.Framework; namespace MonoTouchFixtures.CoreGraphics { diff --git a/tests/monotouch-test/CoreGraphics/VectorTest.cs b/tests/monotouch-test/CoreGraphics/VectorTest.cs index 013a4353bedf..c56d98b4af4b 100644 --- a/tests/monotouch-test/CoreGraphics/VectorTest.cs +++ b/tests/monotouch-test/CoreGraphics/VectorTest.cs @@ -5,11 +5,7 @@ // Sebastien Pouliot < sebastien.pouliot@gmail.com> // -using System; -using Foundation; using CoreGraphics; -using ObjCRuntime; -using NUnit.Framework; namespace MonoTouchFixtures.CoreGraphics { diff --git a/tests/monotouch-test/CoreImage/CIFilter.cs b/tests/monotouch-test/CoreImage/CIFilter.cs index 0ef07f2d3065..a27462f9910f 100644 --- a/tests/monotouch-test/CoreImage/CIFilter.cs +++ b/tests/monotouch-test/CoreImage/CIFilter.cs @@ -1,10 +1,6 @@ #if __MACOS__ -using NUnit.Framework; -using System; using AppKit; -using Foundation; -using ObjCRuntime; using CoreImage; using CoreGraphics; diff --git a/tests/monotouch-test/CoreImage/CIKernelTests.cs b/tests/monotouch-test/CoreImage/CIKernelTests.cs index c62c640ef20d..f2830a36e6b3 100644 --- a/tests/monotouch-test/CoreImage/CIKernelTests.cs +++ b/tests/monotouch-test/CoreImage/CIKernelTests.cs @@ -1,10 +1,7 @@ -using System; using System.Threading; -using Foundation; using CoreImage; using CoreGraphics; -using ObjCRuntime; #if MONOMAC using AppKit; using PlatformImage = AppKit.NSImage; @@ -12,7 +9,6 @@ using UIKit; using PlatformImage = UIKit.UIImage; #endif -using NUnit.Framework; using Xamarin.Utils; namespace MonoTouchFixtures.CoreImage { diff --git a/tests/monotouch-test/CoreImage/CoreContextTest.cs b/tests/monotouch-test/CoreImage/CoreContextTest.cs index 6a8490215c6b..e26c721d84c6 100644 --- a/tests/monotouch-test/CoreImage/CoreContextTest.cs +++ b/tests/monotouch-test/CoreImage/CoreContextTest.cs @@ -7,14 +7,11 @@ // Copyright 2012 Xamarin Inc. All rights reserved. // -using System; using System.Drawing; -using Foundation; using CoreImage; using CoreGraphics; using CoreVideo; -using ObjCRuntime; #if MONOMAC using AppKit; using OpenGL; @@ -25,8 +22,6 @@ #endif #endif -using NUnit.Framework; - namespace MonoTouchFixtures.CoreImage { [TestFixture] diff --git a/tests/monotouch-test/CoreImage/CoreVectorTest.cs b/tests/monotouch-test/CoreImage/CoreVectorTest.cs index a140b24b5f9d..8ffdc8ee4b21 100644 --- a/tests/monotouch-test/CoreImage/CoreVectorTest.cs +++ b/tests/monotouch-test/CoreImage/CoreVectorTest.cs @@ -7,12 +7,7 @@ // Copyright 2012 Xamarin Inc. All rights reserved. // -using System; - -using Foundation; using CoreImage; -using ObjCRuntime; -using NUnit.Framework; namespace MonoTouchFixtures.CoreImage { diff --git a/tests/monotouch-test/CoreImage/DetectorTest.cs b/tests/monotouch-test/CoreImage/DetectorTest.cs index 474d39009450..75b38c53613d 100644 --- a/tests/monotouch-test/CoreImage/DetectorTest.cs +++ b/tests/monotouch-test/CoreImage/DetectorTest.cs @@ -8,7 +8,6 @@ // Copyright 2012-2013 Xamarin Inc. All rights reserved. // -using Foundation; using CoreImage; using CoreGraphics; #if MONOMAC @@ -16,7 +15,6 @@ #else using UIKit; #endif -using NUnit.Framework; namespace MonoTouchFixtures.CoreImage { diff --git a/tests/monotouch-test/CoreImage/FilterTest.cs b/tests/monotouch-test/CoreImage/FilterTest.cs index 5a526100074e..a736bbf7a32a 100644 --- a/tests/monotouch-test/CoreImage/FilterTest.cs +++ b/tests/monotouch-test/CoreImage/FilterTest.cs @@ -7,16 +7,11 @@ // Copyright 2013-2015 Xamarin Inc. All rights reserved. // -using System; using System.IO; -using System.Runtime.InteropServices; using CoreGraphics; using CoreImage; using CoreText; -using Foundation; -using ObjCRuntime; -using NUnit.Framework; using Xamarin.Utils; namespace MonoTouchFixtures.CoreImage { diff --git a/tests/monotouch-test/CoreImage/ImageInitializationOptionsTest.cs b/tests/monotouch-test/CoreImage/ImageInitializationOptionsTest.cs index 9e1915204c3f..41baff7b4294 100644 --- a/tests/monotouch-test/CoreImage/ImageInitializationOptionsTest.cs +++ b/tests/monotouch-test/CoreImage/ImageInitializationOptionsTest.cs @@ -7,18 +7,14 @@ // Copyright 2014 Xamarin Inc. All rights reserved. // -using System; using CoreGraphics; using CoreImage; -using Foundation; -using ObjCRuntime; #if MONOMAC using AppKit; #else using UIKit; #endif -using NUnit.Framework; using Xamarin.Utils; namespace MonoTouchFixtures.CoreImage { diff --git a/tests/monotouch-test/CoreImage/ImageTest.cs b/tests/monotouch-test/CoreImage/ImageTest.cs index e85c00fb9b42..42812e5d5dd3 100644 --- a/tests/monotouch-test/CoreImage/ImageTest.cs +++ b/tests/monotouch-test/CoreImage/ImageTest.cs @@ -7,10 +7,8 @@ // Copyright 2012 Xamarin Inc. All rights reserved. // -using System; using System.IO; -using Foundation; #if MONOMAC using AppKit; #else @@ -18,8 +16,6 @@ #endif using CoreImage; using CoreGraphics; -using ObjCRuntime; -using NUnit.Framework; using Xamarin.Utils; namespace MonoTouchFixtures.CoreImage { diff --git a/tests/monotouch-test/CoreLocation/BeaconRegionTest.cs b/tests/monotouch-test/CoreLocation/BeaconRegionTest.cs index 680df1f3d464..a8de5b4c828f 100644 --- a/tests/monotouch-test/CoreLocation/BeaconRegionTest.cs +++ b/tests/monotouch-test/CoreLocation/BeaconRegionTest.cs @@ -9,11 +9,8 @@ #if !__TVOS__ && !MONOMAC -using Foundation; using UIKit; using CoreLocation; -using ObjCRuntime; -using NUnit.Framework; using Xamarin.Utils; namespace MonoTouchFixtures.CoreLocation { diff --git a/tests/monotouch-test/CoreLocation/LocationManagerTest.cs b/tests/monotouch-test/CoreLocation/LocationManagerTest.cs index 6b22a4a8862d..859238a095a4 100644 --- a/tests/monotouch-test/CoreLocation/LocationManagerTest.cs +++ b/tests/monotouch-test/CoreLocation/LocationManagerTest.cs @@ -2,11 +2,7 @@ #if __IOS__ -using Foundation; using CoreLocation; -using ObjCRuntime; - -using NUnit.Framework; namespace MonoTouchFixtures.CoreLocation { diff --git a/tests/monotouch-test/CoreML/MLMultiArrayTest.cs b/tests/monotouch-test/CoreML/MLMultiArrayTest.cs index 6f9388ba0a82..50736984ad0e 100644 --- a/tests/monotouch-test/CoreML/MLMultiArrayTest.cs +++ b/tests/monotouch-test/CoreML/MLMultiArrayTest.cs @@ -7,14 +7,7 @@ // Copyright 2017 Microsoft Inc. All rights reserved. // -using System; -using System.Runtime.InteropServices; - -using Foundation; using CoreML; -using ObjCRuntime; - -using NUnit.Framework; namespace MonoTouchFixtures.CoreML { diff --git a/tests/monotouch-test/CoreMedia/BlockBufferTest.cs b/tests/monotouch-test/CoreMedia/BlockBufferTest.cs index 03696da5d9b8..484fcf00989c 100644 --- a/tests/monotouch-test/CoreMedia/BlockBufferTest.cs +++ b/tests/monotouch-test/CoreMedia/BlockBufferTest.cs @@ -7,13 +7,9 @@ // Copyright 2014 Xamarin Inc. All rights reserved. // -using System; -using System.Runtime.InteropServices; using System.Reflection; -using Foundation; using CoreMedia; -using NUnit.Framework; namespace MonoTouchFixtures.CoreMedia { diff --git a/tests/monotouch-test/CoreMedia/CMClockOrTimebaseTest.cs b/tests/monotouch-test/CoreMedia/CMClockOrTimebaseTest.cs index 7809520325c5..48a7673b80d1 100644 --- a/tests/monotouch-test/CoreMedia/CMClockOrTimebaseTest.cs +++ b/tests/monotouch-test/CoreMedia/CMClockOrTimebaseTest.cs @@ -1,8 +1,4 @@ -using System; -using Foundation; using CoreMedia; -using ObjCRuntime; -using NUnit.Framework; using Xamarin.Utils; namespace MonoTouchFixtures.CoreMedia { diff --git a/tests/monotouch-test/CoreMedia/CMClockTest.cs b/tests/monotouch-test/CoreMedia/CMClockTest.cs index a68a23c054c9..24b4e11c93ab 100644 --- a/tests/monotouch-test/CoreMedia/CMClockTest.cs +++ b/tests/monotouch-test/CoreMedia/CMClockTest.cs @@ -8,12 +8,7 @@ // Copyright 2012-2014 Xamarin Inc All rights reserved. // -using System; -using System.Runtime.InteropServices; using CoreMedia; -using Foundation; -using ObjCRuntime; -using NUnit.Framework; using Xamarin.Utils; namespace MonoTouchFixtures.CoreMedia { diff --git a/tests/monotouch-test/CoreMedia/CMFormatDescriptionTest.cs b/tests/monotouch-test/CoreMedia/CMFormatDescriptionTest.cs index 4fb670f642da..b9fb6269ee4f 100644 --- a/tests/monotouch-test/CoreMedia/CMFormatDescriptionTest.cs +++ b/tests/monotouch-test/CoreMedia/CMFormatDescriptionTest.cs @@ -6,18 +6,13 @@ // // Copyright 2012-2014 Xamarin Inc All rights reserved. // -using System; -using System.Collections.Generic; -using Foundation; using CoreMedia; using AVFoundation; -using ObjCRuntime; #if MONOMAC using AppKit; #else using UIKit; #endif -using NUnit.Framework; using Xamarin.Utils; namespace MonoTouchFixtures.CoreMedia { diff --git a/tests/monotouch-test/CoreMedia/CMMemoryPoolTest.cs b/tests/monotouch-test/CoreMedia/CMMemoryPoolTest.cs index 180a8a1b0010..e481c8a91ade 100644 --- a/tests/monotouch-test/CoreMedia/CMMemoryPoolTest.cs +++ b/tests/monotouch-test/CoreMedia/CMMemoryPoolTest.cs @@ -6,11 +6,7 @@ // // Copyright 2012 Xamarin Inc All rights reserved. // -using System; -using Foundation; using CoreMedia; -using ObjCRuntime; -using NUnit.Framework; using Xamarin.Utils; namespace MonoTouchFixtures.CoreMedia { diff --git a/tests/monotouch-test/CoreMedia/CMTagCollectionTests.cs b/tests/monotouch-test/CoreMedia/CMTagCollectionTests.cs index 7552e289e6b8..57db0e5a1a6c 100644 --- a/tests/monotouch-test/CoreMedia/CMTagCollectionTests.cs +++ b/tests/monotouch-test/CoreMedia/CMTagCollectionTests.cs @@ -6,14 +6,8 @@ // // Copyright 2024 Microsoft Corp. All rights reserved. // -using System; -using CoreFoundation; using CoreMedia; -using Foundation; -using ObjCRuntime; - -using NUnit.Framework; using Xamarin.Utils; diff --git a/tests/monotouch-test/CoreMedia/CMTagTests.cs b/tests/monotouch-test/CoreMedia/CMTagTests.cs index 4ca189525b51..916859abff9d 100644 --- a/tests/monotouch-test/CoreMedia/CMTagTests.cs +++ b/tests/monotouch-test/CoreMedia/CMTagTests.cs @@ -6,14 +6,8 @@ // // Copyright 2025 Microsoft Corp. All rights reserved. // -using System; -using CoreFoundation; using CoreMedia; -using Foundation; -using ObjCRuntime; - -using NUnit.Framework; using Xamarin.Utils; diff --git a/tests/monotouch-test/CoreMedia/CMTaggedBufferGroupTests.cs b/tests/monotouch-test/CoreMedia/CMTaggedBufferGroupTests.cs index 5e9fac685948..eb638bf29f62 100644 --- a/tests/monotouch-test/CoreMedia/CMTaggedBufferGroupTests.cs +++ b/tests/monotouch-test/CoreMedia/CMTaggedBufferGroupTests.cs @@ -6,15 +6,9 @@ // // Copyright 2024 Microsoft Corp. All rights reserved. // -using System; -using CoreFoundation; using CoreMedia; using CoreVideo; -using Foundation; -using ObjCRuntime; - -using NUnit.Framework; using Xamarin.Utils; diff --git a/tests/monotouch-test/CoreMedia/CMTimeRangeTests.cs b/tests/monotouch-test/CoreMedia/CMTimeRangeTests.cs index de8ced27ab2b..b6b780bd0a9f 100644 --- a/tests/monotouch-test/CoreMedia/CMTimeRangeTests.cs +++ b/tests/monotouch-test/CoreMedia/CMTimeRangeTests.cs @@ -7,10 +7,7 @@ // // Copyright 2015 Xamarin Inc. All rights reserved. // -using System; -using Foundation; using CoreMedia; -using NUnit.Framework; namespace MonoTouchFixtures.CoreMedia { [TestFixture] diff --git a/tests/monotouch-test/CoreMedia/CMTimeTests.cs b/tests/monotouch-test/CoreMedia/CMTimeTests.cs index b5aa73a5b473..f62ede6ac17e 100644 --- a/tests/monotouch-test/CoreMedia/CMTimeTests.cs +++ b/tests/monotouch-test/CoreMedia/CMTimeTests.cs @@ -7,16 +7,12 @@ // // Copyright 2012-2014 Xamarin Inc. All rights reserved. // -using System; -using Foundation; using CoreMedia; -using ObjCRuntime; #if MONOMAC using AppKit; #else using UIKit; #endif -using NUnit.Framework; using Xamarin.Utils; namespace MonoTouchFixtures.CoreMedia { diff --git a/tests/monotouch-test/CoreMedia/CMTimebaseTest.cs b/tests/monotouch-test/CoreMedia/CMTimebaseTest.cs index 8e9c12e9768c..032d48e05866 100644 --- a/tests/monotouch-test/CoreMedia/CMTimebaseTest.cs +++ b/tests/monotouch-test/CoreMedia/CMTimebaseTest.cs @@ -6,11 +6,7 @@ // // Copyright 2012-2014 Xamarin Inc All rights reserved. // -using System; -using Foundation; using CoreMedia; -using ObjCRuntime; -using NUnit.Framework; using Xamarin.Utils; namespace MonoTouchFixtures.CoreMedia { diff --git a/tests/monotouch-test/CoreMedia/EnumTest.cs b/tests/monotouch-test/CoreMedia/EnumTest.cs index 0e4f042bd80c..33d33e29b68b 100644 --- a/tests/monotouch-test/CoreMedia/EnumTest.cs +++ b/tests/monotouch-test/CoreMedia/EnumTest.cs @@ -6,10 +6,7 @@ // // Copyright 2014 Xamarin Inc. All rights reserved. // -using System; -using Foundation; using CoreMedia; -using NUnit.Framework; namespace MonoTouchFixtures.CoreMedia { diff --git a/tests/monotouch-test/CoreMedia/SampleBufferTest.cs b/tests/monotouch-test/CoreMedia/SampleBufferTest.cs index fb2cb1d268d4..22b6c53cb06d 100644 --- a/tests/monotouch-test/CoreMedia/SampleBufferTest.cs +++ b/tests/monotouch-test/CoreMedia/SampleBufferTest.cs @@ -6,15 +6,11 @@ // // Copyright 2012 Xamarin Inc. All rights reserved. // -using System; -using Foundation; #if !__TVOS__ using EventKit; #endif -using ObjCRuntime; using CoreVideo; using CoreMedia; -using NUnit.Framework; using Xamarin.Utils; namespace MonoTouchFixtures.CoreMedia { diff --git a/tests/monotouch-test/CoreMidi/Midi2DeviceManufacturerTest.cs b/tests/monotouch-test/CoreMidi/Midi2DeviceManufacturerTest.cs index 99965d2215b4..2af633824e76 100644 --- a/tests/monotouch-test/CoreMidi/Midi2DeviceManufacturerTest.cs +++ b/tests/monotouch-test/CoreMidi/Midi2DeviceManufacturerTest.cs @@ -3,10 +3,7 @@ // #if !__TVOS__ -using System; -using Foundation; using CoreMidi; -using NUnit.Framework; namespace MonoTouchFixtures.CoreMidi { [TestFixture] diff --git a/tests/monotouch-test/CoreMidi/Midi2DeviceRevisionLevelTest.cs b/tests/monotouch-test/CoreMidi/Midi2DeviceRevisionLevelTest.cs index fd8e2f3b1cc1..b0603c4dbc31 100644 --- a/tests/monotouch-test/CoreMidi/Midi2DeviceRevisionLevelTest.cs +++ b/tests/monotouch-test/CoreMidi/Midi2DeviceRevisionLevelTest.cs @@ -3,10 +3,7 @@ // #if !__TVOS__ -using System; -using Foundation; using CoreMidi; -using NUnit.Framework; namespace MonoTouchFixtures.CoreMidi { [TestFixture] diff --git a/tests/monotouch-test/CoreMidi/MidiCIProfileIdTest.cs b/tests/monotouch-test/CoreMidi/MidiCIProfileIdTest.cs index b99c08ee70cd..f7f6c3db2681 100644 --- a/tests/monotouch-test/CoreMidi/MidiCIProfileIdTest.cs +++ b/tests/monotouch-test/CoreMidi/MidiCIProfileIdTest.cs @@ -3,10 +3,7 @@ // #if !__TVOS__ -using System; -using Foundation; using CoreMidi; -using NUnit.Framework; namespace MonoTouchFixtures.CoreMidi { [TestFixture] diff --git a/tests/monotouch-test/CoreMidi/MidiClientTest.cs b/tests/monotouch-test/CoreMidi/MidiClientTest.cs index c6bb161b2781..a53f8adf6cbd 100644 --- a/tests/monotouch-test/CoreMidi/MidiClientTest.cs +++ b/tests/monotouch-test/CoreMidi/MidiClientTest.cs @@ -8,13 +8,9 @@ // #if !__TVOS__ -using System; using System.Diagnostics; using CoreMidi; -using Foundation; - -using NUnit.Framework; namespace MonoTouchFixtures.CoreMidi { [TestFixture] diff --git a/tests/monotouch-test/CoreMidi/MidiEndpointTest.cs b/tests/monotouch-test/CoreMidi/MidiEndpointTest.cs index 179cce057b57..503876358950 100644 --- a/tests/monotouch-test/CoreMidi/MidiEndpointTest.cs +++ b/tests/monotouch-test/CoreMidi/MidiEndpointTest.cs @@ -9,10 +9,7 @@ // #if !__TVOS__ -using System; -using Foundation; using CoreMidi; -using NUnit.Framework; namespace MonoTouchFixtures.CoreMidi { [TestFixture] diff --git a/tests/monotouch-test/CoreMidi/MidiThruConnectionParamsTest.cs b/tests/monotouch-test/CoreMidi/MidiThruConnectionParamsTest.cs index 032f657440da..a97742d89aea 100644 --- a/tests/monotouch-test/CoreMidi/MidiThruConnectionParamsTest.cs +++ b/tests/monotouch-test/CoreMidi/MidiThruConnectionParamsTest.cs @@ -8,16 +8,12 @@ // #if !__TVOS__ -using System; using System.Diagnostics; using System.Linq; using System.Reflection; -using Foundation; using CoreMidi; -using NUnit.Framework; - namespace MonoTouchFixtures.CoreMidi { [TestFixture] diff --git a/tests/monotouch-test/CoreMidi/MidiThruConnectionTests.cs b/tests/monotouch-test/CoreMidi/MidiThruConnectionTests.cs index 76869fc32f74..a02d3f23ce44 100644 --- a/tests/monotouch-test/CoreMidi/MidiThruConnectionTests.cs +++ b/tests/monotouch-test/CoreMidi/MidiThruConnectionTests.cs @@ -9,11 +9,8 @@ // #if !__TVOS__ -using System; -using Foundation; using CoreMidi; -using NUnit.Framework; namespace MonoTouchFixtures.CoreMidi { diff --git a/tests/monotouch-test/CoreServices/FSEventStreamTest.cs b/tests/monotouch-test/CoreServices/FSEventStreamTest.cs index a4dacbf45097..f00bb0ad0232 100644 --- a/tests/monotouch-test/CoreServices/FSEventStreamTest.cs +++ b/tests/monotouch-test/CoreServices/FSEventStreamTest.cs @@ -4,19 +4,11 @@ #if __MACOS__ -using System; -using System.Collections.Generic; using System.IO; -using System.Runtime.InteropServices; using System.Threading; using System.Threading.Tasks; -using CoreFoundation; using CoreServices; -using Foundation; -using ObjCRuntime; - -using NUnit.Framework; namespace MonoTouchFixtures.CoreServices { using static FSEventStreamCreateFlags; diff --git a/tests/monotouch-test/CoreServices/HttpMessageTest.cs b/tests/monotouch-test/CoreServices/HttpMessageTest.cs index be273c22a89b..fe73ce19ab8f 100644 --- a/tests/monotouch-test/CoreServices/HttpMessageTest.cs +++ b/tests/monotouch-test/CoreServices/HttpMessageTest.cs @@ -7,12 +7,8 @@ // Copyright 2014 Xamarin Inc. All rights reserved. // -using System; using System.Net; using CFNetwork; -using Foundation; -using CoreFoundation; -using NUnit.Framework; using MonoTests.System.Net.Http; using System.Threading; using static CoreFoundation.CFStream; diff --git a/tests/monotouch-test/CoreText/CTFontCollectionTest.cs b/tests/monotouch-test/CoreText/CTFontCollectionTest.cs index f48b793edfa3..6e969bf338b0 100644 --- a/tests/monotouch-test/CoreText/CTFontCollectionTest.cs +++ b/tests/monotouch-test/CoreText/CTFontCollectionTest.cs @@ -7,12 +7,8 @@ // Copyright 2018 Microsoft. All rights reserved. // -using System; using System.Linq; -using Foundation; using CoreText; -using ObjCRuntime; -using NUnit.Framework; namespace MonoTouchFixtures.CoreText { diff --git a/tests/monotouch-test/CoreText/CTFrameTests.cs b/tests/monotouch-test/CoreText/CTFrameTests.cs index e97f37ff0724..021a3a415da3 100644 --- a/tests/monotouch-test/CoreText/CTFrameTests.cs +++ b/tests/monotouch-test/CoreText/CTFrameTests.cs @@ -7,12 +7,8 @@ // Copyright 2012 Xamarin Inc. All rights reserved. // -using System; -using Foundation; using CoreText; using CoreGraphics; -using ObjCRuntime; -using NUnit.Framework; namespace MonoTouchFixtures.CoreText { diff --git a/tests/monotouch-test/CoreText/CTLineTest.cs b/tests/monotouch-test/CoreText/CTLineTest.cs index 68ff1a17c1cc..f2e9d3f2420e 100644 --- a/tests/monotouch-test/CoreText/CTLineTest.cs +++ b/tests/monotouch-test/CoreText/CTLineTest.cs @@ -7,18 +7,14 @@ // Copyright 2012 Xamarin Inc. All rights reserved. // -using System; -using Foundation; #if MONOMAC using AppKit; using UIColor = AppKit.NSColor; #else -using ObjCRuntime; using UIKit; #endif using CoreGraphics; using CoreText; -using NUnit.Framework; using System.Drawing; namespace MonoTouchFixtures.CoreText { diff --git a/tests/monotouch-test/CoreText/CTParagraphStyleTests.cs b/tests/monotouch-test/CoreText/CTParagraphStyleTests.cs index 410844a01878..770ad15462f9 100644 --- a/tests/monotouch-test/CoreText/CTParagraphStyleTests.cs +++ b/tests/monotouch-test/CoreText/CTParagraphStyleTests.cs @@ -7,13 +7,9 @@ // Copyright 2017 Xamarin Inc. All rights reserved. // -using System; -using NUnit.Framework; using System.Linq; -using Foundation; using CoreText; -using ObjCRuntime; namespace MonoTouchFixtures.CoreText { diff --git a/tests/monotouch-test/CoreText/FontDescriptorTest.cs b/tests/monotouch-test/CoreText/FontDescriptorTest.cs index 738507f8e822..461b40427325 100644 --- a/tests/monotouch-test/CoreText/FontDescriptorTest.cs +++ b/tests/monotouch-test/CoreText/FontDescriptorTest.cs @@ -7,19 +7,15 @@ // Copyright 2012 Xamarin Inc. All rights reserved. // -using System; using System.Threading; using System.Threading.Tasks; -using Foundation; using CoreText; #if MONOMAC using AppKit; #else using UIKit; #endif -using ObjCRuntime; -using NUnit.Framework; using System.Linq; namespace MonoTouchFixtures.CoreText { diff --git a/tests/monotouch-test/CoreText/FontManagerTest.cs b/tests/monotouch-test/CoreText/FontManagerTest.cs index 63ab0b683b9a..072bb530ed46 100644 --- a/tests/monotouch-test/CoreText/FontManagerTest.cs +++ b/tests/monotouch-test/CoreText/FontManagerTest.cs @@ -7,16 +7,13 @@ // Copyright 2015 Xamarin Inc. All rights reserved. // -using System; using System.IO; -using Foundation; using CoreText; #if MONOMAC using AppKit; #else using UIKit; #endif -using NUnit.Framework; using System.Linq; namespace MonoTouchFixtures.CoreText { diff --git a/tests/monotouch-test/CoreText/FontTest.cs b/tests/monotouch-test/CoreText/FontTest.cs index a94a58dd3184..fc00ed2dd3b0 100644 --- a/tests/monotouch-test/CoreText/FontTest.cs +++ b/tests/monotouch-test/CoreText/FontTest.cs @@ -7,17 +7,13 @@ // Copyright 2015 Xamarin Inc. All rights reserved. // -using System; using CoreGraphics; using CoreText; -using Foundation; -using ObjCRuntime; #if MONOMAC using AppKit; #else using UIKit; #endif -using NUnit.Framework; namespace MonoTouchFixtures.CoreText { diff --git a/tests/monotouch-test/CoreText/GlyphInfoTest.cs b/tests/monotouch-test/CoreText/GlyphInfoTest.cs index 446804042843..d7d9b8680d8d 100644 --- a/tests/monotouch-test/CoreText/GlyphInfoTest.cs +++ b/tests/monotouch-test/CoreText/GlyphInfoTest.cs @@ -1,9 +1,5 @@ -using System; using CoreText; -using Foundation; - -using NUnit.Framework; namespace MonoTouchFixtures.CoreText { diff --git a/tests/monotouch-test/CoreText/RunTest.cs b/tests/monotouch-test/CoreText/RunTest.cs index 5344902d741f..5571d4677ed7 100644 --- a/tests/monotouch-test/CoreText/RunTest.cs +++ b/tests/monotouch-test/CoreText/RunTest.cs @@ -1,11 +1,7 @@ -using System; using CoreGraphics; using CoreText; -using Foundation; -using ObjCRuntime; -using NUnit.Framework; using MonoTouchFixtures.CoreGraphics; namespace MonoTouchFixtures.CoreText { diff --git a/tests/monotouch-test/CoreText/StringAttributes.cs b/tests/monotouch-test/CoreText/StringAttributes.cs index 7d44afcfbb86..e0dac19f34d9 100644 --- a/tests/monotouch-test/CoreText/StringAttributes.cs +++ b/tests/monotouch-test/CoreText/StringAttributes.cs @@ -7,8 +7,6 @@ // Copyright 2012 Xamarin Inc. All rights reserved. // -using System; -using Foundation; #if MONOMAC using AppKit; using UIColor = AppKit.NSColor; @@ -17,7 +15,6 @@ #endif using CoreGraphics; using CoreText; -using NUnit.Framework; using System.Drawing; namespace MonoTouchFixtures.CoreText { diff --git a/tests/monotouch-test/CoreVideo/CVDisplayLinkTest.cs b/tests/monotouch-test/CoreVideo/CVDisplayLinkTest.cs index eb39df123a95..63d9d99d287a 100644 --- a/tests/monotouch-test/CoreVideo/CVDisplayLinkTest.cs +++ b/tests/monotouch-test/CoreVideo/CVDisplayLinkTest.cs @@ -1,9 +1,5 @@ #if __MACOS__ -using System; using CoreGraphics; -using Foundation; -using NUnit.Framework; -using ObjCRuntime; using CoreVideo; using Xamarin.Utils; diff --git a/tests/monotouch-test/CoreVideo/CVImageBufferTests.cs b/tests/monotouch-test/CoreVideo/CVImageBufferTests.cs index f4f6645f366e..6fb930980c42 100644 --- a/tests/monotouch-test/CoreVideo/CVImageBufferTests.cs +++ b/tests/monotouch-test/CoreVideo/CVImageBufferTests.cs @@ -7,10 +7,6 @@ // Copyright 2017 Xamarin Inc. All rights reserved. // -using System; -using Foundation; -using NUnit.Framework; -using ObjCRuntime; using CoreVideo; namespace MonoTouchFixtures.CoreVideo { diff --git a/tests/monotouch-test/CoreVideo/CVMetalBufferCacheTest.cs b/tests/monotouch-test/CoreVideo/CVMetalBufferCacheTest.cs index 9577d1562a2f..f8434b21532a 100644 --- a/tests/monotouch-test/CoreVideo/CVMetalBufferCacheTest.cs +++ b/tests/monotouch-test/CoreVideo/CVMetalBufferCacheTest.cs @@ -2,14 +2,8 @@ // Unit tests for CVMetalBufferCache // -using System; - using CoreVideo; -using Foundation; using Metal; -using ObjCRuntime; - -using NUnit.Framework; namespace MonoTouchFixtures.CoreVideo { diff --git a/tests/monotouch-test/CoreVideo/CVMetalBufferTest.cs b/tests/monotouch-test/CoreVideo/CVMetalBufferTest.cs index 46d62e8c1bc2..71f64c7a9f2a 100644 --- a/tests/monotouch-test/CoreVideo/CVMetalBufferTest.cs +++ b/tests/monotouch-test/CoreVideo/CVMetalBufferTest.cs @@ -2,15 +2,8 @@ // Unit tests for CVMetalBuffer // -using System; -using System.Collections.Generic; - using CoreVideo; -using Foundation; using Metal; -using ObjCRuntime; - -using NUnit.Framework; namespace MonoTouchFixtures.CoreVideo { diff --git a/tests/monotouch-test/CoreVideo/CVMetalTextureCacheTests.cs b/tests/monotouch-test/CoreVideo/CVMetalTextureCacheTests.cs index 8fce9ff6dce9..0410390b9b80 100644 --- a/tests/monotouch-test/CoreVideo/CVMetalTextureCacheTests.cs +++ b/tests/monotouch-test/CoreVideo/CVMetalTextureCacheTests.cs @@ -9,10 +9,6 @@ #if !MONOMAC -using System; -using Foundation; -using NUnit.Framework; -using ObjCRuntime; using CoreVideo; using Metal; diff --git a/tests/monotouch-test/CoreVideo/CoreVideoEnumsTest.cs b/tests/monotouch-test/CoreVideo/CoreVideoEnumsTest.cs index aa6036b900f9..b5637b64672e 100644 --- a/tests/monotouch-test/CoreVideo/CoreVideoEnumsTest.cs +++ b/tests/monotouch-test/CoreVideo/CoreVideoEnumsTest.cs @@ -7,10 +7,7 @@ // Copyright 2014 Xamarin Inc. All rights reserved. // -using System; using CoreVideo; -using Foundation; -using NUnit.Framework; namespace MonoTouchFixtures.CoreVideo { diff --git a/tests/monotouch-test/CoreVideo/PixelBufferAttributesTest.cs b/tests/monotouch-test/CoreVideo/PixelBufferAttributesTest.cs index ba64286cb629..998c15b09940 100644 --- a/tests/monotouch-test/CoreVideo/PixelBufferAttributesTest.cs +++ b/tests/monotouch-test/CoreVideo/PixelBufferAttributesTest.cs @@ -6,12 +6,7 @@ // Copyright 2014 Xamarin Inc. All rights reserved. // -using System; -using CoreFoundation; -using Foundation; using CoreVideo; -using ObjCRuntime; -using NUnit.Framework; namespace MonoTouchFixtures.CoreVideo { diff --git a/tests/monotouch-test/CoreVideo/PixelBufferPoolTest.cs b/tests/monotouch-test/CoreVideo/PixelBufferPoolTest.cs index e3ac50ab11c6..5d883bc3cd4e 100644 --- a/tests/monotouch-test/CoreVideo/PixelBufferPoolTest.cs +++ b/tests/monotouch-test/CoreVideo/PixelBufferPoolTest.cs @@ -7,12 +7,8 @@ // Copyright 2012 Xamarin Inc. All rights reserved. // -using System; using System.Drawing; -using Foundation; -using ObjCRuntime; using CoreVideo; -using NUnit.Framework; namespace MonoTouchFixtures.CoreVideo { diff --git a/tests/monotouch-test/CoreVideo/PixelBufferTest.cs b/tests/monotouch-test/CoreVideo/PixelBufferTest.cs index c7f061bb6d9b..1e4e6b5e15ce 100644 --- a/tests/monotouch-test/CoreVideo/PixelBufferTest.cs +++ b/tests/monotouch-test/CoreVideo/PixelBufferTest.cs @@ -7,15 +7,9 @@ // Copyright 2016 Xamarin Inc. All rights reserved. // -using System; using System.Drawing; -using System.Runtime.InteropServices; -using Foundation; -using ObjCRuntime; using CoreVideo; -using NUnit.Framework; - namespace MonoTouchFixtures.CoreVideo { [TestFixture] diff --git a/tests/monotouch-test/CoreVideo/PixelFormatDescriptionTest.cs b/tests/monotouch-test/CoreVideo/PixelFormatDescriptionTest.cs index 84a8827f9b9c..7624f76e94ff 100644 --- a/tests/monotouch-test/CoreVideo/PixelFormatDescriptionTest.cs +++ b/tests/monotouch-test/CoreVideo/PixelFormatDescriptionTest.cs @@ -7,15 +7,11 @@ // Copyright 2013 Xamarin Inc. All rights reserved. // -using System; using System.IO; using System.Text; -using Foundation; using CoreGraphics; using CoreVideo; -using ObjCRuntime; -using NUnit.Framework; namespace MonoTouchFixtures.CoreVideo { diff --git a/tests/monotouch-test/CoreWlan/CWKeychainTests.cs b/tests/monotouch-test/CoreWlan/CWKeychainTests.cs index 788e2801ddd9..142ff83eb449 100644 --- a/tests/monotouch-test/CoreWlan/CWKeychainTests.cs +++ b/tests/monotouch-test/CoreWlan/CWKeychainTests.cs @@ -1,15 +1,10 @@ #if MONOMAC -using System; using System.Drawing; -using System.Runtime.InteropServices; using System.Threading; -using Foundation; -using ObjCRuntime; using CoreWlan; using Security; -using NUnit.Framework; using MonoTouchFixtures.Security; namespace MonoTouchFixtures.CoreWlan { diff --git a/tests/monotouch-test/Darwin/KernelNotificationTest.cs b/tests/monotouch-test/Darwin/KernelNotificationTest.cs index 76eef0ce20bf..a85d608a90cc 100644 --- a/tests/monotouch-test/Darwin/KernelNotificationTest.cs +++ b/tests/monotouch-test/Darwin/KernelNotificationTest.cs @@ -1,12 +1,8 @@ #if __MACOS__ -using System; using System.Diagnostics; -using Foundation; using Darwin; -using NUnit.Framework; - namespace apitest { [TestFixture] [Preserve (AllMembers = true)] diff --git a/tests/monotouch-test/DeviceDiscoveryExtension/DDDeviceTest.cs b/tests/monotouch-test/DeviceDiscoveryExtension/DDDeviceTest.cs index 8b334d97d1aa..fdfcb1133e91 100644 --- a/tests/monotouch-test/DeviceDiscoveryExtension/DDDeviceTest.cs +++ b/tests/monotouch-test/DeviceDiscoveryExtension/DDDeviceTest.cs @@ -12,13 +12,9 @@ #if __IOS__ && !__MACCATALYST__ -using System; using DeviceDiscoveryExtension; -using Foundation; using Network; -using ObjCRuntime; using UniformTypeIdentifiers; -using NUnit.Framework; namespace MonoTouchFixtures.DeviceDiscoveryExtension { diff --git a/tests/monotouch-test/DeviceDiscoveryUI/DDDevicePickerViewControllerTest.cs b/tests/monotouch-test/DeviceDiscoveryUI/DDDevicePickerViewControllerTest.cs index d1ba58890cc9..0213cb1b3cdc 100644 --- a/tests/monotouch-test/DeviceDiscoveryUI/DDDevicePickerViewControllerTest.cs +++ b/tests/monotouch-test/DeviceDiscoveryUI/DDDevicePickerViewControllerTest.cs @@ -9,12 +9,8 @@ #if __TVOS__ -using System; using DeviceDiscoveryUI; -using Foundation; -using ObjCRuntime; using Network; -using NUnit.Framework; using Xamarin.Utils; namespace MonoTouchFixtures.DeviceDiscoveryUI { diff --git a/tests/monotouch-test/EventKit/AlarmTest.cs b/tests/monotouch-test/EventKit/AlarmTest.cs index 287f52bbb217..63ee0fe33321 100644 --- a/tests/monotouch-test/EventKit/AlarmTest.cs +++ b/tests/monotouch-test/EventKit/AlarmTest.cs @@ -9,12 +9,8 @@ #if !__TVOS__ -using System; -using Foundation; using CoreGraphics; using EventKit; -using ObjCRuntime; -using NUnit.Framework; using Xamarin.Utils; namespace MonoTouchFixtures.EventKit { diff --git a/tests/monotouch-test/EventKit/CalendarTest.cs b/tests/monotouch-test/EventKit/CalendarTest.cs index f160818a681b..8d28e49f1adf 100644 --- a/tests/monotouch-test/EventKit/CalendarTest.cs +++ b/tests/monotouch-test/EventKit/CalendarTest.cs @@ -10,12 +10,8 @@ #if !__TVOS__ -using System; -using Foundation; using CoreGraphics; -using ObjCRuntime; using EventKit; -using NUnit.Framework; using Xamarin.Utils; namespace MonoTouchFixtures.EventKit { diff --git a/tests/monotouch-test/EventKit/EKUIBundleTest.cs b/tests/monotouch-test/EventKit/EKUIBundleTest.cs index 73c964e5ce4b..7921bce4663c 100644 --- a/tests/monotouch-test/EventKit/EKUIBundleTest.cs +++ b/tests/monotouch-test/EventKit/EKUIBundleTest.cs @@ -9,10 +9,7 @@ #if HAS_EVENTKITUI -using System; using EventKitUI; -using Foundation; -using NUnit.Framework; namespace MonoTouchFixtures.EventKitUI { [TestFixture] diff --git a/tests/monotouch-test/EventKit/EventStoreTest.cs b/tests/monotouch-test/EventKit/EventStoreTest.cs index da0203ea03c9..a45d9a2093c9 100644 --- a/tests/monotouch-test/EventKit/EventStoreTest.cs +++ b/tests/monotouch-test/EventKit/EventStoreTest.cs @@ -9,11 +9,7 @@ #if !__TVOS__ -using System; -using Foundation; -using ObjCRuntime; using EventKit; -using NUnit.Framework; using System.Threading; using System.Linq; diff --git a/tests/monotouch-test/EventKit/RecurrenceRule.cs b/tests/monotouch-test/EventKit/RecurrenceRule.cs index 87ff00d84bdb..0011691f850b 100644 --- a/tests/monotouch-test/EventKit/RecurrenceRule.cs +++ b/tests/monotouch-test/EventKit/RecurrenceRule.cs @@ -9,11 +9,7 @@ #if !__TVOS__ -using System; using EventKit; -using Foundation; -using ObjCRuntime; -using NUnit.Framework; using Xamarin.Utils; namespace MonoTouchFixtures.EventKit { diff --git a/tests/monotouch-test/EventKit/ReminderTest.cs b/tests/monotouch-test/EventKit/ReminderTest.cs index f32f21632cd0..f36a5739aca5 100644 --- a/tests/monotouch-test/EventKit/ReminderTest.cs +++ b/tests/monotouch-test/EventKit/ReminderTest.cs @@ -9,11 +9,7 @@ #if !__TVOS__ -using System; -using Foundation; using EventKit; -using ObjCRuntime; -using NUnit.Framework; using Xamarin.Utils; namespace MonoTouchFixtures.EventKit { diff --git a/tests/monotouch-test/EventKit/StructuredLocationTest.cs b/tests/monotouch-test/EventKit/StructuredLocationTest.cs index 24a4bacf6f31..50d9eb92236a 100644 --- a/tests/monotouch-test/EventKit/StructuredLocationTest.cs +++ b/tests/monotouch-test/EventKit/StructuredLocationTest.cs @@ -9,11 +9,7 @@ #if !__TVOS__ -using System; -using Foundation; using EventKit; -using ObjCRuntime; -using NUnit.Framework; namespace MonoTouchFixtures.EventKit { diff --git a/tests/monotouch-test/ExternalAccessory/AccessoryManagerTest.cs b/tests/monotouch-test/ExternalAccessory/AccessoryManagerTest.cs index 3332e7361d43..c89c13b8d41f 100644 --- a/tests/monotouch-test/ExternalAccessory/AccessoryManagerTest.cs +++ b/tests/monotouch-test/ExternalAccessory/AccessoryManagerTest.cs @@ -7,11 +7,7 @@ // Copyright 2013 Xamarin Inc. // -using System; -using Foundation; using ExternalAccessory; -using ObjCRuntime; -using NUnit.Framework; using Xamarin.Utils; namespace MonoTouchFixtures.ExternalAccessory { diff --git a/tests/monotouch-test/FileProvider/NSFileProviderPageTest.cs b/tests/monotouch-test/FileProvider/NSFileProviderPageTest.cs index 55b232f23b8d..c95e6e333639 100644 --- a/tests/monotouch-test/FileProvider/NSFileProviderPageTest.cs +++ b/tests/monotouch-test/FileProvider/NSFileProviderPageTest.cs @@ -10,10 +10,7 @@ #if __IOS__ && !__MACCATALYST__ -using System; using FileProvider; -using Foundation; -using NUnit.Framework; namespace MonoTouchFixtures.FileProvider { diff --git a/tests/monotouch-test/Foundation/AppleScript.cs b/tests/monotouch-test/Foundation/AppleScript.cs index e48308585896..f65bf1bb5ca7 100644 --- a/tests/monotouch-test/Foundation/AppleScript.cs +++ b/tests/monotouch-test/Foundation/AppleScript.cs @@ -1,9 +1,6 @@ #if __MACOS__ -using System; -using NUnit.Framework; using AppKit; -using Foundation; namespace Xamarin.Mac.Tests { [TestFixture] diff --git a/tests/monotouch-test/Foundation/ArrayTest.cs b/tests/monotouch-test/Foundation/ArrayTest.cs index d411257309cd..816310d4b0ad 100644 --- a/tests/monotouch-test/Foundation/ArrayTest.cs +++ b/tests/monotouch-test/Foundation/ArrayTest.cs @@ -7,12 +7,8 @@ // Copyright 2012 Xamarin Inc. All rights reserved. // -using System; using System.Linq; -using Foundation; -using ObjCRuntime; using Security; -using NUnit.Framework; #nullable enable diff --git a/tests/monotouch-test/Foundation/AttributedStringTest.cs b/tests/monotouch-test/Foundation/AttributedStringTest.cs index bc2433bda675..62ffbdbdd702 100644 --- a/tests/monotouch-test/Foundation/AttributedStringTest.cs +++ b/tests/monotouch-test/Foundation/AttributedStringTest.cs @@ -1,8 +1,5 @@ -using System; using System.IO; -using NUnit.Framework; -using Foundation; #if MONOMAC using AppKit; using UIColor = AppKit.NSColor; @@ -10,7 +7,6 @@ using UIKit; #endif using CoreGraphics; -using ObjCRuntime; using CoreText; using Xamarin.Utils; diff --git a/tests/monotouch-test/Foundation/BlockOperationTest.cs b/tests/monotouch-test/Foundation/BlockOperationTest.cs index 12987d3175a9..0a97727b20d5 100644 --- a/tests/monotouch-test/Foundation/BlockOperationTest.cs +++ b/tests/monotouch-test/Foundation/BlockOperationTest.cs @@ -7,10 +7,6 @@ // Copyright 2012 Xamarin Inc. All rights reserved. // -using System; -using Foundation; -using NUnit.Framework; - namespace MonoTouchFixtures.Foundation { [TestFixture] diff --git a/tests/monotouch-test/Foundation/BundleTest.cs b/tests/monotouch-test/Foundation/BundleTest.cs index 3c993f6ba7ba..8e9dce9200c9 100644 --- a/tests/monotouch-test/Foundation/BundleTest.cs +++ b/tests/monotouch-test/Foundation/BundleTest.cs @@ -7,16 +7,12 @@ // Copyright 2012-2013 Xamarin Inc. All rights reserved. // -using System; using System.Net; -using Foundation; #if MONOMAC using AppKit; #else using UIKit; #endif -using ObjCRuntime; -using NUnit.Framework; namespace MonoTouchFixtures.Foundation { diff --git a/tests/monotouch-test/Foundation/CachedUrlResponseTest.cs b/tests/monotouch-test/Foundation/CachedUrlResponseTest.cs index 139bbb059e7b..9528ef63b6f8 100644 --- a/tests/monotouch-test/Foundation/CachedUrlResponseTest.cs +++ b/tests/monotouch-test/Foundation/CachedUrlResponseTest.cs @@ -1,6 +1,3 @@ -using Foundation; -using ObjCRuntime; -using NUnit.Framework; namespace MonoTouchFixtures.Foundation { diff --git a/tests/monotouch-test/Foundation/CalendarTest.cs b/tests/monotouch-test/Foundation/CalendarTest.cs index 7e9b99a2c7bf..2245987ca8e1 100644 --- a/tests/monotouch-test/Foundation/CalendarTest.cs +++ b/tests/monotouch-test/Foundation/CalendarTest.cs @@ -1,7 +1,3 @@ -using System; -using Foundation; -using ObjCRuntime; -using NUnit.Framework; using Xamarin.Utils; using RectangleF = CoreGraphics.CGRect; diff --git a/tests/monotouch-test/Foundation/CoderTest.cs b/tests/monotouch-test/Foundation/CoderTest.cs index 195d047e0521..8a1306998dc2 100644 --- a/tests/monotouch-test/Foundation/CoderTest.cs +++ b/tests/monotouch-test/Foundation/CoderTest.cs @@ -7,12 +7,6 @@ // Copyright 2014 Xamarin Inc. All rights reserved. // -using System; -using System.Runtime.InteropServices; -using Foundation; -using ObjCRuntime; -using NUnit.Framework; - namespace MonoTouchFixtures.Foundation { [TestFixture] diff --git a/tests/monotouch-test/Foundation/CookieTest.cs b/tests/monotouch-test/Foundation/CookieTest.cs index 352022a252c4..cf77e20104d3 100644 --- a/tests/monotouch-test/Foundation/CookieTest.cs +++ b/tests/monotouch-test/Foundation/CookieTest.cs @@ -7,11 +7,7 @@ // Copyright 2012 Xamarin Inc. All rights reserved. // -using System; using System.Net; -using Foundation; -using ObjCRuntime; -using NUnit.Framework; namespace MonoTouchFixtures.Foundation { diff --git a/tests/monotouch-test/Foundation/DateFormatterTest.cs b/tests/monotouch-test/Foundation/DateFormatterTest.cs index 6e08f3ce57fa..0ca8d6388d43 100644 --- a/tests/monotouch-test/Foundation/DateFormatterTest.cs +++ b/tests/monotouch-test/Foundation/DateFormatterTest.cs @@ -7,10 +7,6 @@ // Copyright 2013 Xamarin Inc. All rights reserved. // -using Foundation; -using ObjCRuntime; -using NUnit.Framework; - namespace MonoTouchFixtures.Foundation { [TestFixture] diff --git a/tests/monotouch-test/Foundation/DateTest.cs b/tests/monotouch-test/Foundation/DateTest.cs index 7a1b34d02429..054ee792346d 100644 --- a/tests/monotouch-test/Foundation/DateTest.cs +++ b/tests/monotouch-test/Foundation/DateTest.cs @@ -7,13 +7,6 @@ // Copyright 2013 Xamarin Inc. All rights reserved. // -using System; -using System.Collections.Generic; - -using Foundation; -using ObjCRuntime; -using NUnit.Framework; - namespace MonoTouchFixtures.Foundation { [TestFixture] diff --git a/tests/monotouch-test/Foundation/DecimalNumberTest.cs b/tests/monotouch-test/Foundation/DecimalNumberTest.cs index b0848d0f1ef1..0fa2bbf7636d 100644 --- a/tests/monotouch-test/Foundation/DecimalNumberTest.cs +++ b/tests/monotouch-test/Foundation/DecimalNumberTest.cs @@ -7,9 +7,6 @@ // Copyright 2014 Xamarin Inc. All rights reserved. // -using Foundation; -using NUnit.Framework; - namespace MonoTouchFixtures.Foundation { [TestFixture] diff --git a/tests/monotouch-test/Foundation/DecimalTest.cs b/tests/monotouch-test/Foundation/DecimalTest.cs index 252f09f461eb..603a947c72b1 100644 --- a/tests/monotouch-test/Foundation/DecimalTest.cs +++ b/tests/monotouch-test/Foundation/DecimalTest.cs @@ -8,8 +8,6 @@ // using System.Globalization; -using Foundation; -using NUnit.Framework; namespace MonoTouchFixtures.Foundation { diff --git a/tests/monotouch-test/Foundation/DictionaryContainerTest.cs b/tests/monotouch-test/Foundation/DictionaryContainerTest.cs index 40e290b1ea2d..1ca025969141 100644 --- a/tests/monotouch-test/Foundation/DictionaryContainerTest.cs +++ b/tests/monotouch-test/Foundation/DictionaryContainerTest.cs @@ -7,14 +7,10 @@ // Copyright 2014 Xamarin Inc. All rights reserved. // -using System; using System.Linq; -using CoreFoundation; using CoreGraphics; using CoreMedia; -using Foundation; -using ObjCRuntime; using VideoToolbox; using NUnit.Framework; diff --git a/tests/monotouch-test/Foundation/DimensionTest.cs b/tests/monotouch-test/Foundation/DimensionTest.cs index 8f9208632f1f..65ea5d44b648 100644 --- a/tests/monotouch-test/Foundation/DimensionTest.cs +++ b/tests/monotouch-test/Foundation/DimensionTest.cs @@ -7,15 +7,11 @@ // Copyright 2016 Xamarin Inc. All rights reserved. // -using System; -using Foundation; #if MONOMAC using AppKit; #else using UIKit; #endif -using ObjCRuntime; -using NUnit.Framework; namespace MonoTouchFixtures.Foundation { diff --git a/tests/monotouch-test/Foundation/EncodingDetectionOptionsTest.cs b/tests/monotouch-test/Foundation/EncodingDetectionOptionsTest.cs index c3d0f390b84d..545a8e311fec 100644 --- a/tests/monotouch-test/Foundation/EncodingDetectionOptionsTest.cs +++ b/tests/monotouch-test/Foundation/EncodingDetectionOptionsTest.cs @@ -7,9 +7,6 @@ // Copyright 2014 Xamarin Inc. All rights reserved. // -using Foundation; -using ObjCRuntime; -using NUnit.Framework; using Xamarin.Utils; namespace MonoTouchFixtures.Foundation { diff --git a/tests/monotouch-test/Foundation/FileCoordinatorTest.cs b/tests/monotouch-test/Foundation/FileCoordinatorTest.cs index 891aa1771561..87f671deb951 100644 --- a/tests/monotouch-test/Foundation/FileCoordinatorTest.cs +++ b/tests/monotouch-test/Foundation/FileCoordinatorTest.cs @@ -7,11 +7,7 @@ // Copyright 2012 Xamarin Inc. All rights reserved. // -using System; using System.IO; -using Foundation; -using ObjCRuntime; -using NUnit.Framework; namespace MonoTouchFixtures.Foundation { diff --git a/tests/monotouch-test/Foundation/FileHandleTest.cs b/tests/monotouch-test/Foundation/FileHandleTest.cs index 0e56fd232299..e90b3ec43321 100644 --- a/tests/monotouch-test/Foundation/FileHandleTest.cs +++ b/tests/monotouch-test/Foundation/FileHandleTest.cs @@ -7,10 +7,6 @@ // Copyright 2013 Xamarin Inc. All rights reserved. // -using System; -using Foundation; -using NUnit.Framework; - namespace MonoTouchFixtures.Foundation { [TestFixture] diff --git a/tests/monotouch-test/Foundation/FileManagerTest.cs b/tests/monotouch-test/Foundation/FileManagerTest.cs index c743df64a275..ea907069ddd7 100644 --- a/tests/monotouch-test/Foundation/FileManagerTest.cs +++ b/tests/monotouch-test/Foundation/FileManagerTest.cs @@ -7,18 +7,14 @@ // Copyright 2011 Xamarin Inc. All rights reserved. // -using System; using System.Diagnostics; using System.IO; using System.Threading; -using Foundation; #if MONOMAC using AppKit; #else using UIKit; #endif -using ObjCRuntime; -using NUnit.Framework; namespace MonoTouchFixtures.Foundation { diff --git a/tests/monotouch-test/Foundation/FormatterTests.cs b/tests/monotouch-test/Foundation/FormatterTests.cs index 2751ce15e777..8138d28e9405 100644 --- a/tests/monotouch-test/Foundation/FormatterTests.cs +++ b/tests/monotouch-test/Foundation/FormatterTests.cs @@ -1,13 +1,9 @@ -using System; using System.Drawing; -using Foundation; -using ObjCRuntime; #if MONOMAC using AppKit; #else using UIKit; #endif -using NUnit.Framework; using Xamarin.Utils; namespace MonoTouchFixtures.Foundation { diff --git a/tests/monotouch-test/Foundation/IndexPathTest.cs b/tests/monotouch-test/Foundation/IndexPathTest.cs index 8b0957a0f34c..943c53391a91 100644 --- a/tests/monotouch-test/Foundation/IndexPathTest.cs +++ b/tests/monotouch-test/Foundation/IndexPathTest.cs @@ -7,10 +7,6 @@ // Copyright 2014 Xamarin Inc. All rights reserved. // -using System; -using Foundation; -using NUnit.Framework; - namespace MonoTouchFixtures.Foundation { [TestFixture] diff --git a/tests/monotouch-test/Foundation/KeyedUnarchiverTest.cs b/tests/monotouch-test/Foundation/KeyedUnarchiverTest.cs index 0995d4cf300a..d0131a5ef0f5 100644 --- a/tests/monotouch-test/Foundation/KeyedUnarchiverTest.cs +++ b/tests/monotouch-test/Foundation/KeyedUnarchiverTest.cs @@ -7,12 +7,9 @@ // Copyright 2012 Xamarin Inc. All rights reserved. // -using System; using System.Net; using System.IO; -using Foundation; -using ObjCRuntime; #if MONOMAC using AppKit; using PlatformException = ObjCRuntime.ObjCException; @@ -21,8 +18,6 @@ using PlatformException = ObjCRuntime.ObjCException; #endif -using NUnit.Framework; - namespace MonoTouchFixtures.Foundation { [TestFixture] diff --git a/tests/monotouch-test/Foundation/LocaleTest.cs b/tests/monotouch-test/Foundation/LocaleTest.cs index 357d96b9725e..6f8395a45d42 100644 --- a/tests/monotouch-test/Foundation/LocaleTest.cs +++ b/tests/monotouch-test/Foundation/LocaleTest.cs @@ -7,15 +7,12 @@ // Copyright 2012-2013 Xamarin Inc. All rights reserved. // -using System; using System.Globalization; -using Foundation; #if MONOMAC using AppKit; #else using UIKit; #endif -using NUnit.Framework; namespace MonoTouchFixtures.Foundation { diff --git a/tests/monotouch-test/Foundation/MutableAttributedStringTest.cs b/tests/monotouch-test/Foundation/MutableAttributedStringTest.cs index 60b475f2e88f..d8b8e6c3abda 100644 --- a/tests/monotouch-test/Foundation/MutableAttributedStringTest.cs +++ b/tests/monotouch-test/Foundation/MutableAttributedStringTest.cs @@ -7,10 +7,6 @@ // Copyright 2013-2014 Xamarin Inc. All rights reserved. // -using System; -using Foundation; -using NUnit.Framework; - namespace MonoTouchFixtures.Foundation { [TestFixture] diff --git a/tests/monotouch-test/Foundation/MutableDataTest.cs b/tests/monotouch-test/Foundation/MutableDataTest.cs index ede2cae073e5..21789e057cc7 100644 --- a/tests/monotouch-test/Foundation/MutableDataTest.cs +++ b/tests/monotouch-test/Foundation/MutableDataTest.cs @@ -7,14 +7,11 @@ // Copyright 2013 Xamarin Inc. All rights reserved. // -using System; -using Foundation; #if MONOMAC using AppKit; #else using UIKit; #endif -using NUnit.Framework; namespace MonoTouchFixtures.Foundation { diff --git a/tests/monotouch-test/Foundation/MutableStringTest.cs b/tests/monotouch-test/Foundation/MutableStringTest.cs index 035867287a6f..5fff5408245a 100644 --- a/tests/monotouch-test/Foundation/MutableStringTest.cs +++ b/tests/monotouch-test/Foundation/MutableStringTest.cs @@ -7,15 +7,12 @@ // Copyright 2013 Xamarin Inc. All rights reserved. // -using System; using System.Drawing; -using Foundation; #if MONOMAC using AppKit; #else using UIKit; #endif -using NUnit.Framework; namespace MonoTouchFixtures.Foundation { diff --git a/tests/monotouch-test/Foundation/NSArray1Test.cs b/tests/monotouch-test/Foundation/NSArray1Test.cs index 8abdd7257236..78e7b4b90745 100644 --- a/tests/monotouch-test/Foundation/NSArray1Test.cs +++ b/tests/monotouch-test/Foundation/NSArray1Test.cs @@ -8,13 +8,7 @@ // Copyright 2015 Xamarin Inc. All rights reserved. // -using System; using System.Collections; -using System.Collections.Generic; - -using NUnit.Framework; - -using Foundation; #nullable enable diff --git a/tests/monotouch-test/Foundation/NSAttributedStringDocumentAttributesTest.cs b/tests/monotouch-test/Foundation/NSAttributedStringDocumentAttributesTest.cs index 16f387b765b4..05514a343b87 100644 --- a/tests/monotouch-test/Foundation/NSAttributedStringDocumentAttributesTest.cs +++ b/tests/monotouch-test/Foundation/NSAttributedStringDocumentAttributesTest.cs @@ -1,14 +1,8 @@ -using System; using CoreGraphics; -using Foundation; -using ObjCRuntime; - -using NUnit.Framework; using Xamarin.Utils; - #if MONOMAC using XColor = AppKit.NSColor; #else diff --git a/tests/monotouch-test/Foundation/NSCharacterSetTest.cs b/tests/monotouch-test/Foundation/NSCharacterSetTest.cs index 1a14adcb444c..7bed98f529ca 100644 --- a/tests/monotouch-test/Foundation/NSCharacterSetTest.cs +++ b/tests/monotouch-test/Foundation/NSCharacterSetTest.cs @@ -1,10 +1,8 @@ -using Foundation; #if MONOMAC using AppKit; #else using UIKit; #endif -using NUnit.Framework; namespace MonoTouchFixtures.Foundation { [TestFixture] diff --git a/tests/monotouch-test/Foundation/NSDataTest.cs b/tests/monotouch-test/Foundation/NSDataTest.cs index d6c29de24516..259d56f9cf53 100644 --- a/tests/monotouch-test/Foundation/NSDataTest.cs +++ b/tests/monotouch-test/Foundation/NSDataTest.cs @@ -8,20 +8,16 @@ // Copyright 2011-2014 Xamarin Inc. All rights reserved. // -using System; using System.IO; using System.Numerics; -using System.Runtime.InteropServices; using CoreGraphics; -using Foundation; -using ObjCRuntime; + #if MONOMAC using AppKit; #else using UIKit; #endif -using NUnit.Framework; using Xamarin.Utils; using MonoTests.System.Net.Http; diff --git a/tests/monotouch-test/Foundation/NSDateComponentsTest.cs b/tests/monotouch-test/Foundation/NSDateComponentsTest.cs index d0333053f21a..b11a331f3e6e 100644 --- a/tests/monotouch-test/Foundation/NSDateComponentsTest.cs +++ b/tests/monotouch-test/Foundation/NSDateComponentsTest.cs @@ -1,5 +1,3 @@ -using Foundation; -using NUnit.Framework; namespace MonoTouchFixtures.Foundation { diff --git a/tests/monotouch-test/Foundation/NSDictionary2Test.cs b/tests/monotouch-test/Foundation/NSDictionary2Test.cs index 59229173660a..877bb4982213 100644 --- a/tests/monotouch-test/Foundation/NSDictionary2Test.cs +++ b/tests/monotouch-test/Foundation/NSDictionary2Test.cs @@ -1,13 +1,6 @@ -using System; using System.Collections; -using System.Collections.Generic; using System.Linq; -using NUnit.Framework; - -using Foundation; -using ObjCRuntime; - namespace MonoTouchFixtures.Foundation { [TestFixture] diff --git a/tests/monotouch-test/Foundation/NSDictionaryTest.cs b/tests/monotouch-test/Foundation/NSDictionaryTest.cs index 0d3c805fa9dc..45e379cbd192 100644 --- a/tests/monotouch-test/Foundation/NSDictionaryTest.cs +++ b/tests/monotouch-test/Foundation/NSDictionaryTest.cs @@ -1,10 +1,4 @@ -using System; -using System.Runtime.InteropServices; -using NUnit.Framework; - -using Foundation; -using ObjCRuntime; using Xamarin.Utils; namespace MonoTouchFixtures.Foundation { diff --git a/tests/monotouch-test/Foundation/NSExpressionTest.cs b/tests/monotouch-test/Foundation/NSExpressionTest.cs index 16584cfe9a88..07e590896a2d 100644 --- a/tests/monotouch-test/Foundation/NSExpressionTest.cs +++ b/tests/monotouch-test/Foundation/NSExpressionTest.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.Reflection; -using Foundation; -using ObjCRuntime; -using NUnit.Framework; using Xamarin.Utils; [assembly: Preserve (typeof (NSExpression), AllMembers = true)] diff --git a/tests/monotouch-test/Foundation/NSFormatter.cs b/tests/monotouch-test/Foundation/NSFormatter.cs index 5e96695f1479..36e7f92945bf 100644 --- a/tests/monotouch-test/Foundation/NSFormatter.cs +++ b/tests/monotouch-test/Foundation/NSFormatter.cs @@ -1,8 +1,5 @@ #if __MACOS__ -using System; -using NUnit.Framework; -using Foundation; using AppKit; namespace apitest { diff --git a/tests/monotouch-test/Foundation/NSHostTest.cs b/tests/monotouch-test/Foundation/NSHostTest.cs index 971e1f8492b8..1b47e560eda4 100644 --- a/tests/monotouch-test/Foundation/NSHostTest.cs +++ b/tests/monotouch-test/Foundation/NSHostTest.cs @@ -1,11 +1,5 @@ #if __MACOS__ -using System; using System.Collections; -using System.Collections.Generic; - -using NUnit.Framework; - -using Foundation; #nullable enable diff --git a/tests/monotouch-test/Foundation/NSIndexSet.cs b/tests/monotouch-test/Foundation/NSIndexSet.cs index 95a293e99dc0..f37762d78f4c 100644 --- a/tests/monotouch-test/Foundation/NSIndexSet.cs +++ b/tests/monotouch-test/Foundation/NSIndexSet.cs @@ -1,11 +1,7 @@ #if __MACOS__ -using System; using System.Linq; -using NUnit.Framework; using AppKit; -using ObjCRuntime; -using Foundation; using CoreGraphics; namespace Xamarin.Mac.Tests { diff --git a/tests/monotouch-test/Foundation/NSInputStreamTest.cs b/tests/monotouch-test/Foundation/NSInputStreamTest.cs index 3ddea070b458..20eb8a39fdc9 100644 --- a/tests/monotouch-test/Foundation/NSInputStreamTest.cs +++ b/tests/monotouch-test/Foundation/NSInputStreamTest.cs @@ -1,6 +1,3 @@ -using System; -using NUnit.Framework; -using Foundation; namespace MonoTouchFixtures.Foundation { diff --git a/tests/monotouch-test/Foundation/NSKeyedUnarchiverTest.cs b/tests/monotouch-test/Foundation/NSKeyedUnarchiverTest.cs index 6959bb53268c..89ed5f9f6ca2 100644 --- a/tests/monotouch-test/Foundation/NSKeyedUnarchiverTest.cs +++ b/tests/monotouch-test/Foundation/NSKeyedUnarchiverTest.cs @@ -1,7 +1,3 @@ -using System; -using Foundation; -using NUnit.Framework; -using ObjCRuntime; namespace MonoTouchFixtures.Foundation { [TestFixture] diff --git a/tests/monotouch-test/Foundation/NSLayoutConstraint.cs b/tests/monotouch-test/Foundation/NSLayoutConstraint.cs index 4b90204789cc..150c0026bc86 100644 --- a/tests/monotouch-test/Foundation/NSLayoutConstraint.cs +++ b/tests/monotouch-test/Foundation/NSLayoutConstraint.cs @@ -1,7 +1,5 @@ #if __MACOS__ using AppKit; -using Foundation; -using NUnit.Framework; namespace Xamarin.Mac.Tests { [TestFixture] diff --git a/tests/monotouch-test/Foundation/NSLayoutConstraintTest.cs b/tests/monotouch-test/Foundation/NSLayoutConstraintTest.cs index fca374782830..1ba260ef59d1 100644 --- a/tests/monotouch-test/Foundation/NSLayoutConstraintTest.cs +++ b/tests/monotouch-test/Foundation/NSLayoutConstraintTest.cs @@ -8,9 +8,6 @@ // #if !MONOMAC using UIKit; -using Foundation; -using ObjCRuntime; -using NUnit.Framework; using Xamarin.Utils; namespace MonoTouchFixtures.Foundation { diff --git a/tests/monotouch-test/Foundation/NSLinguisticAnalysisTest.cs b/tests/monotouch-test/Foundation/NSLinguisticAnalysisTest.cs index 0313d5ad65ca..6f50773f7f23 100644 --- a/tests/monotouch-test/Foundation/NSLinguisticAnalysisTest.cs +++ b/tests/monotouch-test/Foundation/NSLinguisticAnalysisTest.cs @@ -1,7 +1,3 @@ -using System.Collections.Generic; -using Foundation; -using ObjCRuntime; -using NUnit.Framework; using Xamarin.Utils; namespace monotouchtest { diff --git a/tests/monotouch-test/Foundation/NSLocaleTest.cs b/tests/monotouch-test/Foundation/NSLocaleTest.cs index ce1f5f630345..73c60fc645a6 100644 --- a/tests/monotouch-test/Foundation/NSLocaleTest.cs +++ b/tests/monotouch-test/Foundation/NSLocaleTest.cs @@ -1,7 +1,3 @@ -using System; -using Foundation; -using ObjCRuntime; -using NUnit.Framework; namespace MonoTouchFixtures.Foundation { diff --git a/tests/monotouch-test/Foundation/NSMetadataItem.cs b/tests/monotouch-test/Foundation/NSMetadataItem.cs index 9e8c9cb87bd3..38ddc5bc7155 100644 --- a/tests/monotouch-test/Foundation/NSMetadataItem.cs +++ b/tests/monotouch-test/Foundation/NSMetadataItem.cs @@ -1,7 +1,5 @@ #if __MACOS__ using AppKit; -using Foundation; -using NUnit.Framework; namespace Xamarin.Mac.Tests { diff --git a/tests/monotouch-test/Foundation/NSMutableArray1Test.cs b/tests/monotouch-test/Foundation/NSMutableArray1Test.cs index 757dde300ee0..81baaa391653 100644 --- a/tests/monotouch-test/Foundation/NSMutableArray1Test.cs +++ b/tests/monotouch-test/Foundation/NSMutableArray1Test.cs @@ -1,10 +1,4 @@ -using System; using System.Collections; -using System.Collections.Generic; - -using NUnit.Framework; - -using Foundation; namespace MonoTouchFixtures.Foundation { diff --git a/tests/monotouch-test/Foundation/NSMutableDictionary2Test.cs b/tests/monotouch-test/Foundation/NSMutableDictionary2Test.cs index f1ce7f636c18..a16867d26f8b 100644 --- a/tests/monotouch-test/Foundation/NSMutableDictionary2Test.cs +++ b/tests/monotouch-test/Foundation/NSMutableDictionary2Test.cs @@ -1,12 +1,6 @@ -using System; using System.Collections; -using System.Collections.Generic; using System.Linq; -using NUnit.Framework; - -using Foundation; -using ObjCRuntime; using Xamarin.Utils; namespace MonoTouchFixtures.Foundation { diff --git a/tests/monotouch-test/Foundation/NSMutableDictionaryTest.cs b/tests/monotouch-test/Foundation/NSMutableDictionaryTest.cs index 2c816e7ccf7f..c319e8dd264f 100644 --- a/tests/monotouch-test/Foundation/NSMutableDictionaryTest.cs +++ b/tests/monotouch-test/Foundation/NSMutableDictionaryTest.cs @@ -1,10 +1,3 @@ -using System; -using System.Runtime.InteropServices; - -using NUnit.Framework; - -using Foundation; -using ObjCRuntime; namespace monotouchtest { [TestFixture] diff --git a/tests/monotouch-test/Foundation/NSMutableOrderedSet1Test.cs b/tests/monotouch-test/Foundation/NSMutableOrderedSet1Test.cs index 946bfcdbe87f..7c68d60dd1e3 100644 --- a/tests/monotouch-test/Foundation/NSMutableOrderedSet1Test.cs +++ b/tests/monotouch-test/Foundation/NSMutableOrderedSet1Test.cs @@ -8,13 +8,7 @@ // Copyright 2015 Xamarin Inc. All rights reserved. // -using System; using System.Collections; -using System.Collections.Generic; - -using NUnit.Framework; - -using Foundation; namespace MonoTouchFixtures.Foundation { diff --git a/tests/monotouch-test/Foundation/NSMutableOrderedSetTest.cs b/tests/monotouch-test/Foundation/NSMutableOrderedSetTest.cs index c5998e75e2fe..bc792331bb1e 100644 --- a/tests/monotouch-test/Foundation/NSMutableOrderedSetTest.cs +++ b/tests/monotouch-test/Foundation/NSMutableOrderedSetTest.cs @@ -8,11 +8,6 @@ // Copyright 2015 Xamarin Inc. All rights reserved. // -using System; -using NUnit.Framework; - -using Foundation; - namespace MonoTouchFixtures.Foundation { [TestFixture] diff --git a/tests/monotouch-test/Foundation/NSMutableSet1Test.cs b/tests/monotouch-test/Foundation/NSMutableSet1Test.cs index a83c637e78c5..68ee6f9c6145 100644 --- a/tests/monotouch-test/Foundation/NSMutableSet1Test.cs +++ b/tests/monotouch-test/Foundation/NSMutableSet1Test.cs @@ -1,10 +1,4 @@ -using System; using System.Collections; -using System.Collections.Generic; - -using NUnit.Framework; - -using Foundation; namespace MonoTouchFixtures.Foundation { diff --git a/tests/monotouch-test/Foundation/NSMutableSetTest.cs b/tests/monotouch-test/Foundation/NSMutableSetTest.cs index 3155f0311930..40d06675b086 100644 --- a/tests/monotouch-test/Foundation/NSMutableSetTest.cs +++ b/tests/monotouch-test/Foundation/NSMutableSetTest.cs @@ -8,11 +8,6 @@ // Copyright 2015 Xamarin Inc. All rights reserved. // -using System; -using NUnit.Framework; - -using Foundation; - namespace MonoTouchFixtures.Foundation { [TestFixture] diff --git a/tests/monotouch-test/Foundation/NSObject.cs b/tests/monotouch-test/Foundation/NSObject.cs index df83c9134775..7aa7066760d3 100644 --- a/tests/monotouch-test/Foundation/NSObject.cs +++ b/tests/monotouch-test/Foundation/NSObject.cs @@ -1,11 +1,7 @@ #if __MACOS__ -using System; using System.Threading; -using NUnit.Framework; using AppKit; -using ObjCRuntime; -using Foundation; using CoreGraphics; namespace Xamarin.Mac.Tests { diff --git a/tests/monotouch-test/Foundation/NSObjectGCTest.cs b/tests/monotouch-test/Foundation/NSObjectGCTest.cs index fe7e2ce69d3b..a089a926fd97 100644 --- a/tests/monotouch-test/Foundation/NSObjectGCTest.cs +++ b/tests/monotouch-test/Foundation/NSObjectGCTest.cs @@ -1,11 +1,7 @@ #if __MACOS__ -using System; using System.Threading; -using NUnit.Framework; using AppKit; -using ObjCRuntime; -using Foundation; namespace Xamarin.Mac.Tests { [TestFixture] diff --git a/tests/monotouch-test/Foundation/NSOperatingSystemVersionTest.cs b/tests/monotouch-test/Foundation/NSOperatingSystemVersionTest.cs index 02f309612bcc..46c8c78992f2 100644 --- a/tests/monotouch-test/Foundation/NSOperatingSystemVersionTest.cs +++ b/tests/monotouch-test/Foundation/NSOperatingSystemVersionTest.cs @@ -1,10 +1,5 @@ -using NUnit.Framework; -using System; -using ObjCRuntime; -using Foundation; using System.Collections; -using System.Collections.Generic; namespace MonoTouchFixtures.Foundation { [TestFixture] diff --git a/tests/monotouch-test/Foundation/NSOrderedCollectionChange1Test.cs b/tests/monotouch-test/Foundation/NSOrderedCollectionChange1Test.cs index d595cfbca306..01003fb13bce 100644 --- a/tests/monotouch-test/Foundation/NSOrderedCollectionChange1Test.cs +++ b/tests/monotouch-test/Foundation/NSOrderedCollectionChange1Test.cs @@ -1,8 +1,3 @@ -using System; - -using NUnit.Framework; - -using Foundation; namespace MonoTouchFixtures.Foundation { #if false // https://github.com/dotnet/macios/issues/15577 diff --git a/tests/monotouch-test/Foundation/NSOrderedCollectionChangeTest.cs b/tests/monotouch-test/Foundation/NSOrderedCollectionChangeTest.cs index 31813aa073e4..00bf56165d6c 100644 --- a/tests/monotouch-test/Foundation/NSOrderedCollectionChangeTest.cs +++ b/tests/monotouch-test/Foundation/NSOrderedCollectionChangeTest.cs @@ -1,8 +1,3 @@ -using System; - -using NUnit.Framework; - -using Foundation; namespace MonoTouchFixtures.Foundation { #if false // https://github.com/dotnet/macios/issues/15577 diff --git a/tests/monotouch-test/Foundation/NSOrderedCollectionDifference1Test.cs b/tests/monotouch-test/Foundation/NSOrderedCollectionDifference1Test.cs index a43183a0352e..b8a219144530 100644 --- a/tests/monotouch-test/Foundation/NSOrderedCollectionDifference1Test.cs +++ b/tests/monotouch-test/Foundation/NSOrderedCollectionDifference1Test.cs @@ -1,10 +1,4 @@ -using System; using System.Collections; -using System.Collections.Generic; - -using NUnit.Framework; - -using Foundation; namespace MonoTouchFixtures.Foundation { #if false // https://github.com/dotnet/macios/issues/15577 diff --git a/tests/monotouch-test/Foundation/NSOrderedCollectionDifferenceTest.cs b/tests/monotouch-test/Foundation/NSOrderedCollectionDifferenceTest.cs index 26e37cc78fbd..472a40935675 100644 --- a/tests/monotouch-test/Foundation/NSOrderedCollectionDifferenceTest.cs +++ b/tests/monotouch-test/Foundation/NSOrderedCollectionDifferenceTest.cs @@ -1,10 +1,4 @@ -using System; using System.Collections; -using System.Collections.Generic; - -using NUnit.Framework; - -using Foundation; namespace MonoTouchFixtures.Foundation { #if false // https://github.com/dotnet/macios/issues/15577 diff --git a/tests/monotouch-test/Foundation/NSOrderedSet1Test.cs b/tests/monotouch-test/Foundation/NSOrderedSet1Test.cs index c208ad365eda..1224f1bf823b 100644 --- a/tests/monotouch-test/Foundation/NSOrderedSet1Test.cs +++ b/tests/monotouch-test/Foundation/NSOrderedSet1Test.cs @@ -8,13 +8,7 @@ // Copyright 2015 Xamarin Inc. All rights reserved. // -using System; using System.Collections; -using System.Collections.Generic; - -using NUnit.Framework; - -using Foundation; namespace MonoTouchFixtures.Foundation { diff --git a/tests/monotouch-test/Foundation/NSOrderedSetTest.cs b/tests/monotouch-test/Foundation/NSOrderedSetTest.cs index e482ab999112..430d845736c1 100644 --- a/tests/monotouch-test/Foundation/NSOrderedSetTest.cs +++ b/tests/monotouch-test/Foundation/NSOrderedSetTest.cs @@ -8,11 +8,6 @@ // Copyright 2015 Xamarin Inc. All rights reserved. // -using System; -using NUnit.Framework; - -using Foundation; - namespace MonoTouchFixtures.Foundation { [TestFixture] diff --git a/tests/monotouch-test/Foundation/NSRangeTest.cs b/tests/monotouch-test/Foundation/NSRangeTest.cs index add0ccfd86e7..b4996dae5e98 100644 --- a/tests/monotouch-test/Foundation/NSRangeTest.cs +++ b/tests/monotouch-test/Foundation/NSRangeTest.cs @@ -1,10 +1,4 @@ -using System; -using System.Runtime.InteropServices; -using NUnit.Framework; - -using Foundation; -using ObjCRuntime; using Xamarin.Utils; namespace MonoTouchFixtures.Foundation { diff --git a/tests/monotouch-test/Foundation/NSScriptCommandArgumentDescriptionTest.cs b/tests/monotouch-test/Foundation/NSScriptCommandArgumentDescriptionTest.cs index 486259e4fb3c..c67e7799d18f 100644 --- a/tests/monotouch-test/Foundation/NSScriptCommandArgumentDescriptionTest.cs +++ b/tests/monotouch-test/Foundation/NSScriptCommandArgumentDescriptionTest.cs @@ -1,11 +1,6 @@ #if __MACOS__ // Copyright 2015 Xamarin, Inc. -using System; -using Foundation; -using ObjCRuntime; -using NUnit.Framework; - namespace MonoTouchFixtures.Foundation { [TestFixture] diff --git a/tests/monotouch-test/Foundation/NSScriptCommandDescriptionDictionaryTest.cs b/tests/monotouch-test/Foundation/NSScriptCommandDescriptionDictionaryTest.cs index 059f14a2119e..28cebbc04db6 100644 --- a/tests/monotouch-test/Foundation/NSScriptCommandDescriptionDictionaryTest.cs +++ b/tests/monotouch-test/Foundation/NSScriptCommandDescriptionDictionaryTest.cs @@ -2,12 +2,7 @@ // Copyright 2015 Xamarin, Inc. -using System; -using System.Collections.Generic; using System.Linq; -using Foundation; -using ObjCRuntime; -using NUnit.Framework; namespace MonoTouchFixtures.Foundation { diff --git a/tests/monotouch-test/Foundation/NSScriptCommandDescriptionTest.cs b/tests/monotouch-test/Foundation/NSScriptCommandDescriptionTest.cs index eeb067ce75de..86106ddcdad2 100644 --- a/tests/monotouch-test/Foundation/NSScriptCommandDescriptionTest.cs +++ b/tests/monotouch-test/Foundation/NSScriptCommandDescriptionTest.cs @@ -1,12 +1,7 @@ #if __MACOS__ // Copyright 2015 Xamarin, Inc. -using System; -using System.Collections.Generic; using System.Linq; -using Foundation; -using ObjCRuntime; -using NUnit.Framework; namespace MonoTouchFixtures.Foundation { diff --git a/tests/monotouch-test/Foundation/NSSet1Test.cs b/tests/monotouch-test/Foundation/NSSet1Test.cs index df4a8708dcce..f500d9152e3f 100644 --- a/tests/monotouch-test/Foundation/NSSet1Test.cs +++ b/tests/monotouch-test/Foundation/NSSet1Test.cs @@ -1,12 +1,6 @@ -using System; using System.Collections; -using System.Collections.Generic; using System.Linq; -using NUnit.Framework; - -using Foundation; - namespace MonoTouchFixtures.Foundation { [TestFixture] diff --git a/tests/monotouch-test/Foundation/NSSetTest.cs b/tests/monotouch-test/Foundation/NSSetTest.cs index 4259e315119d..e1348a5113c7 100644 --- a/tests/monotouch-test/Foundation/NSSetTest.cs +++ b/tests/monotouch-test/Foundation/NSSetTest.cs @@ -1,9 +1,4 @@ -using System; -using NUnit.Framework; - -using Foundation; - namespace MonoTouchFixtures.Foundation { [TestFixture] diff --git a/tests/monotouch-test/Foundation/NSStreamTest.cs b/tests/monotouch-test/Foundation/NSStreamTest.cs index ff976c509ae1..2fd9aaa4049a 100644 --- a/tests/monotouch-test/Foundation/NSStreamTest.cs +++ b/tests/monotouch-test/Foundation/NSStreamTest.cs @@ -1,12 +1,8 @@ -using System; -using NUnit.Framework; using System.Text; using System.Net; using System.Net.Sockets; using System.Threading; -using Foundation; - namespace MonoTouchFixtures.Foundation { [TestFixture] diff --git a/tests/monotouch-test/Foundation/NSString.cs b/tests/monotouch-test/Foundation/NSString.cs index cca06e563a57..dddc646ce258 100644 --- a/tests/monotouch-test/Foundation/NSString.cs +++ b/tests/monotouch-test/Foundation/NSString.cs @@ -1,10 +1,6 @@ #if __MACOS__ -using System; -using NUnit.Framework; using AppKit; -using ObjCRuntime; -using Foundation; using CoreGraphics; namespace Xamarin.Mac.Tests { diff --git a/tests/monotouch-test/Foundation/NSStringTest.cs b/tests/monotouch-test/Foundation/NSStringTest.cs index 2b8b4ec8c818..586e1ce364f1 100644 --- a/tests/monotouch-test/Foundation/NSStringTest.cs +++ b/tests/monotouch-test/Foundation/NSStringTest.cs @@ -1,7 +1,3 @@ -using System; -using Foundation; -using ObjCRuntime; -using NUnit.Framework; namespace monotouchtest { [TestFixture] diff --git a/tests/monotouch-test/Foundation/NSTextListTest.cs b/tests/monotouch-test/Foundation/NSTextListTest.cs index f7c75a556509..763eb3473db5 100644 --- a/tests/monotouch-test/Foundation/NSTextListTest.cs +++ b/tests/monotouch-test/Foundation/NSTextListTest.cs @@ -1,10 +1,4 @@ -using System; -using System.Runtime.InteropServices; -using NUnit.Framework; - -using Foundation; -using ObjCRuntime; using Xamarin.Utils; #if HAS_UIKIT diff --git a/tests/monotouch-test/Foundation/NSThread.cs b/tests/monotouch-test/Foundation/NSThread.cs index 040a0f0a5d34..a788dfca7b7c 100644 --- a/tests/monotouch-test/Foundation/NSThread.cs +++ b/tests/monotouch-test/Foundation/NSThread.cs @@ -1,11 +1,7 @@ #if __MACOS__ -using System; using System.Threading.Tasks; -using NUnit.Framework; using AppKit; -using ObjCRuntime; -using Foundation; using CoreGraphics; namespace Xamarin.Mac.Tests { diff --git a/tests/monotouch-test/Foundation/NSTimeZoneTest.cs b/tests/monotouch-test/Foundation/NSTimeZoneTest.cs index 1e41d707209f..c4175eff8dcc 100644 --- a/tests/monotouch-test/Foundation/NSTimeZoneTest.cs +++ b/tests/monotouch-test/Foundation/NSTimeZoneTest.cs @@ -7,11 +7,7 @@ // Copyright 2011 Xamarin Inc. All rights reserved. // -using System; using System.IO; -using Foundation; -using ObjCRuntime; -using NUnit.Framework; namespace MonoTouchFixtures.Foundation { diff --git a/tests/monotouch-test/Foundation/NSUrlSessionConfiguration.cs b/tests/monotouch-test/Foundation/NSUrlSessionConfiguration.cs index 3835aa8bfa1f..97305a6ef7c7 100644 --- a/tests/monotouch-test/Foundation/NSUrlSessionConfiguration.cs +++ b/tests/monotouch-test/Foundation/NSUrlSessionConfiguration.cs @@ -1,7 +1,3 @@ -using NUnit.Framework; - -using Foundation; -using ObjCRuntime; namespace MonoTouchFixtures.Foundation { diff --git a/tests/monotouch-test/Foundation/NetServiceTest.cs b/tests/monotouch-test/Foundation/NetServiceTest.cs index 72b126df890e..15a5ea4db6cf 100644 --- a/tests/monotouch-test/Foundation/NetServiceTest.cs +++ b/tests/monotouch-test/Foundation/NetServiceTest.cs @@ -7,14 +7,11 @@ // Copyright 2015 Xamarin Inc. All rights reserved. // -using System; -using Foundation; #if MONOMAC using AppKit; #else using UIKit; #endif -using NUnit.Framework; namespace MonoTouchFixtures.Foundation { diff --git a/tests/monotouch-test/Foundation/NotificationCenter.cs b/tests/monotouch-test/Foundation/NotificationCenter.cs index 8b6a3cc5411b..0b3ee34de7f2 100644 --- a/tests/monotouch-test/Foundation/NotificationCenter.cs +++ b/tests/monotouch-test/Foundation/NotificationCenter.cs @@ -7,12 +7,8 @@ // Copyright 2012 Xamarin Inc. All rights reserved. // -using System; using System.Diagnostics; using System.Threading; -using Foundation; -using ObjCRuntime; -using NUnit.Framework; namespace MonoTouchFixtures.Foundation { diff --git a/tests/monotouch-test/Foundation/NotificationQueueTest.cs b/tests/monotouch-test/Foundation/NotificationQueueTest.cs index d264da7d1f9b..9b766bc4f9da 100644 --- a/tests/monotouch-test/Foundation/NotificationQueueTest.cs +++ b/tests/monotouch-test/Foundation/NotificationQueueTest.cs @@ -7,9 +7,6 @@ // Copyright 2013 Xamarin Inc. All rights reserved. // -using Foundation; -using NUnit.Framework; - namespace MonoTouchFixtures.Foundation { [TestFixture] diff --git a/tests/monotouch-test/Foundation/NumberTest.cs b/tests/monotouch-test/Foundation/NumberTest.cs index dbc2a1228f51..696f938c03f9 100644 --- a/tests/monotouch-test/Foundation/NumberTest.cs +++ b/tests/monotouch-test/Foundation/NumberTest.cs @@ -7,10 +7,6 @@ // Copyright 2013 Xamarin Inc. All rights reserved. // -using System; -using Foundation; -using NUnit.Framework; - namespace MonoTouchFixtures.Foundation { [TestFixture] diff --git a/tests/monotouch-test/Foundation/ObjectTest.cs b/tests/monotouch-test/Foundation/ObjectTest.cs index f2489f7b89b3..b493dcb32ee0 100644 --- a/tests/monotouch-test/Foundation/ObjectTest.cs +++ b/tests/monotouch-test/Foundation/ObjectTest.cs @@ -7,14 +7,11 @@ // Copyright 2012, 2015 Xamarin Inc. All rights reserved. // -using System; using System.Drawing; using System.Reflection; using System.Threading; -using Foundation; using CoreGraphics; -using ObjCRuntime; using Security; #if MONOMAC using AppKit; @@ -24,7 +21,6 @@ using UIKit; using PlatformException = ObjCRuntime.ObjCException; #endif -using NUnit.Framework; using Xamarin.Utils; using RectangleF = CoreGraphics.CGRect; diff --git a/tests/monotouch-test/Foundation/OperationQueueTest.cs b/tests/monotouch-test/Foundation/OperationQueueTest.cs index b436fbdddf36..cbb9910609db 100644 --- a/tests/monotouch-test/Foundation/OperationQueueTest.cs +++ b/tests/monotouch-test/Foundation/OperationQueueTest.cs @@ -7,12 +7,6 @@ // Copyright 2012 Xamarin Inc. All rights reserved. // -using System; -using Foundation; -using ObjCRuntime; - -using NUnit.Framework; - namespace MonoTouchFixtures.Foundation { [TestFixture] diff --git a/tests/monotouch-test/Foundation/OutputStreamTest.cs b/tests/monotouch-test/Foundation/OutputStreamTest.cs index 2377acc9c065..8c0fe89b87d0 100644 --- a/tests/monotouch-test/Foundation/OutputStreamTest.cs +++ b/tests/monotouch-test/Foundation/OutputStreamTest.cs @@ -7,13 +7,6 @@ // Copyright 2013 Xamarin Inc. All rights reserved. // -using System; -using System.Runtime.InteropServices; - -using Foundation; - -using NUnit.Framework; - namespace MonoTouchFixtures.Foundation { [TestFixture] diff --git a/tests/monotouch-test/Foundation/RegularExpressionTest.cs b/tests/monotouch-test/Foundation/RegularExpressionTest.cs index f9846d4546a2..e04c9ad2aba2 100644 --- a/tests/monotouch-test/Foundation/RegularExpressionTest.cs +++ b/tests/monotouch-test/Foundation/RegularExpressionTest.cs @@ -7,11 +7,6 @@ // Copyright 2019 Microsoft Corp. All rights reserved. // -using System; -using Foundation; -using ObjCRuntime; -using NUnit.Framework; - namespace MonoTouchFixtures.Foundation { [TestFixture] [Preserve (AllMembers = true)] diff --git a/tests/monotouch-test/Foundation/StringTest.cs b/tests/monotouch-test/Foundation/StringTest.cs index 84d52ebfffa7..fe3f19bee01b 100644 --- a/tests/monotouch-test/Foundation/StringTest.cs +++ b/tests/monotouch-test/Foundation/StringTest.cs @@ -7,12 +7,9 @@ // Copyright 2011-2012 Xamarin Inc. All rights reserved. // -using System; using System.IO; using CoreGraphics; using System.Drawing; -using Foundation; -using ObjCRuntime; #if MONOMAC using AppKit; using UIFont = AppKit.NSFont; @@ -20,7 +17,6 @@ #else using UIKit; #endif -using NUnit.Framework; using Xamarin.Utils; namespace MonoTouchFixtures.Foundation { diff --git a/tests/monotouch-test/Foundation/ThreadTest.cs b/tests/monotouch-test/Foundation/ThreadTest.cs index ab5e010baf6f..848bc80053bb 100644 --- a/tests/monotouch-test/Foundation/ThreadTest.cs +++ b/tests/monotouch-test/Foundation/ThreadTest.cs @@ -7,11 +7,7 @@ // Copyright 2012 Xamarin Inc. All rights reserved. // -using System; using System.Reflection; -using Foundation; -using ObjCRuntime; -using NUnit.Framework; using System.Threading; namespace MonoTouchFixtures.Foundation { diff --git a/tests/monotouch-test/Foundation/TimerTest.cs b/tests/monotouch-test/Foundation/TimerTest.cs index 91e305c1d6b4..5b9db4c1f220 100644 --- a/tests/monotouch-test/Foundation/TimerTest.cs +++ b/tests/monotouch-test/Foundation/TimerTest.cs @@ -7,10 +7,6 @@ // Copyright 2014 Xamarin Inc. All rights reserved. // -using System; -using Foundation; -using ObjCRuntime; -using NUnit.Framework; using System.Threading; namespace MonoTouchFixtures.Foundation { diff --git a/tests/monotouch-test/Foundation/UbiquitousKeyValueStoreTest.cs b/tests/monotouch-test/Foundation/UbiquitousKeyValueStoreTest.cs index 8f7dea720612..0a6da9374478 100644 --- a/tests/monotouch-test/Foundation/UbiquitousKeyValueStoreTest.cs +++ b/tests/monotouch-test/Foundation/UbiquitousKeyValueStoreTest.cs @@ -7,10 +7,6 @@ // Copyright 2016 Xamarin Inc. All rights reserved. // -using Foundation; -using ObjCRuntime; -using NUnit.Framework; - namespace MonoTouchFixtures.Foundation { [TestFixture] diff --git a/tests/monotouch-test/Foundation/UrlConnectionTest.cs b/tests/monotouch-test/Foundation/UrlConnectionTest.cs index b585402ca396..13787f4989a3 100644 --- a/tests/monotouch-test/Foundation/UrlConnectionTest.cs +++ b/tests/monotouch-test/Foundation/UrlConnectionTest.cs @@ -7,17 +7,13 @@ // Copyright 2013 Xamarin Inc. All rights reserved. // -using System; using System.Threading; -using Foundation; #if MONOMAC using AppKit; #else using UIKit; #endif -using ObjCRuntime; -using NUnit.Framework; using MonoTests.System.Net.Http; #nullable enable diff --git a/tests/monotouch-test/Foundation/UrlCredentialTest.cs b/tests/monotouch-test/Foundation/UrlCredentialTest.cs index 5797d574282b..3b125c74df3c 100644 --- a/tests/monotouch-test/Foundation/UrlCredentialTest.cs +++ b/tests/monotouch-test/Foundation/UrlCredentialTest.cs @@ -8,15 +8,12 @@ // using System.Security.Cryptography.X509Certificates; -using Foundation; -using ObjCRuntime; using Security; #if MONOMAC using AppKit; #else using UIKit; #endif -using NUnit.Framework; using MonoTouchFixtures.Security; using Xamarin.Utils; diff --git a/tests/monotouch-test/Foundation/UrlProtectionSpaceTest.cs b/tests/monotouch-test/Foundation/UrlProtectionSpaceTest.cs index 30523259bbd1..6cc3ddc0cea4 100644 --- a/tests/monotouch-test/Foundation/UrlProtectionSpaceTest.cs +++ b/tests/monotouch-test/Foundation/UrlProtectionSpaceTest.cs @@ -7,16 +7,13 @@ // Copyright 2013 Xamarin Inc. All rights reserved. // -using System; using System.Security.Cryptography.X509Certificates; -using Foundation; using Security; #if MONOMAC using AppKit; #else using UIKit; #endif -using NUnit.Framework; using MonoTouchFixtures.Security; diff --git a/tests/monotouch-test/Foundation/UrlProtocolTest.cs b/tests/monotouch-test/Foundation/UrlProtocolTest.cs index ecf44476f84d..28dc98ec63fb 100644 --- a/tests/monotouch-test/Foundation/UrlProtocolTest.cs +++ b/tests/monotouch-test/Foundation/UrlProtocolTest.cs @@ -7,23 +7,18 @@ // Copyright 2012 Xamarin Inc. All rights reserved. // -using System; using System.IO; using System.Threading; using System.Threading.Tasks; -using Foundation; #if MONOMAC using AppKit; #else using UIKit; #endif -using ObjCRuntime; -using NUnit.Framework; using MonoTests.System.Net.Http; using Xamarin.Utils; - namespace MonoTouchFixtures.Foundation { [TestFixture] diff --git a/tests/monotouch-test/Foundation/UrlRequestTest.cs b/tests/monotouch-test/Foundation/UrlRequestTest.cs index 287667f73ca9..9b35a268133a 100644 --- a/tests/monotouch-test/Foundation/UrlRequestTest.cs +++ b/tests/monotouch-test/Foundation/UrlRequestTest.cs @@ -7,11 +7,6 @@ // Copyright 2015 Xamarin Inc. All rights reserved. // -using System; -using Foundation; -using ObjCRuntime; -using NUnit.Framework; - namespace MonoTouchFixtures.Foundation { [TestFixture] diff --git a/tests/monotouch-test/Foundation/UrlSessionConfigurationTest.cs b/tests/monotouch-test/Foundation/UrlSessionConfigurationTest.cs index 4ad48860f56e..4e4006126c30 100644 --- a/tests/monotouch-test/Foundation/UrlSessionConfigurationTest.cs +++ b/tests/monotouch-test/Foundation/UrlSessionConfigurationTest.cs @@ -7,16 +7,12 @@ // Copyright 2013-2015 Xamarin Inc. All rights reserved. // -using System; -using Foundation; using Security; -using ObjCRuntime; #if MONOMAC using AppKit; #else using UIKit; #endif -using NUnit.Framework; using Xamarin.Utils; namespace MonoTouchFixtures.Foundation { diff --git a/tests/monotouch-test/Foundation/UrlSessionTaskMetricsTest.cs b/tests/monotouch-test/Foundation/UrlSessionTaskMetricsTest.cs index 0120adeabcb3..b7053a0f57c4 100644 --- a/tests/monotouch-test/Foundation/UrlSessionTaskMetricsTest.cs +++ b/tests/monotouch-test/Foundation/UrlSessionTaskMetricsTest.cs @@ -7,15 +7,11 @@ // Copyright 2016 Xamarin Inc. All rights reserved. // -using System; -using Foundation; #if MONOMAC using AppKit; #else using UIKit; #endif -using ObjCRuntime; -using NUnit.Framework; namespace MonoTouchFixtures.Foundation { diff --git a/tests/monotouch-test/Foundation/UrlSessionTaskTest.cs b/tests/monotouch-test/Foundation/UrlSessionTaskTest.cs index a89ad861576b..63b16cf303de 100644 --- a/tests/monotouch-test/Foundation/UrlSessionTaskTest.cs +++ b/tests/monotouch-test/Foundation/UrlSessionTaskTest.cs @@ -7,15 +7,11 @@ // Copyright 2015 Xamarin Inc. All rights reserved. // -using System; -using Foundation; #if MONOMAC using AppKit; #else using UIKit; #endif -using ObjCRuntime; -using NUnit.Framework; using MonoTests.System.Net.Http; using Xamarin.Utils; diff --git a/tests/monotouch-test/Foundation/UrlSessionTaskTransactionMetricsTest.cs b/tests/monotouch-test/Foundation/UrlSessionTaskTransactionMetricsTest.cs index 17e6d8f88cdf..52d2d1585d22 100644 --- a/tests/monotouch-test/Foundation/UrlSessionTaskTransactionMetricsTest.cs +++ b/tests/monotouch-test/Foundation/UrlSessionTaskTransactionMetricsTest.cs @@ -7,14 +7,11 @@ // Copyright 2016 Xamarin Inc. All rights reserved. // -using Foundation; #if MONOMAC using AppKit; #else using UIKit; #endif -using ObjCRuntime; -using NUnit.Framework; namespace MonoTouchFixtures.Foundation { diff --git a/tests/monotouch-test/Foundation/UrlSessionTest.cs b/tests/monotouch-test/Foundation/UrlSessionTest.cs index fa1931d4d146..fb646869334c 100644 --- a/tests/monotouch-test/Foundation/UrlSessionTest.cs +++ b/tests/monotouch-test/Foundation/UrlSessionTest.cs @@ -7,18 +7,14 @@ // Copyright 2015 Xamarin Inc. All rights reserved. // -using System; using System.IO; using System.Threading.Tasks; -using Foundation; #if MONOMAC using AppKit; #else using UIKit; #endif -using ObjCRuntime; -using NUnit.Framework; using MonoTests.System.Net.Http; using Xamarin.Utils; diff --git a/tests/monotouch-test/Foundation/UrlTest.cs b/tests/monotouch-test/Foundation/UrlTest.cs index 679a5e9020d6..277195d2263a 100644 --- a/tests/monotouch-test/Foundation/UrlTest.cs +++ b/tests/monotouch-test/Foundation/UrlTest.cs @@ -7,17 +7,13 @@ // Copyright 2012-2013 Xamarin Inc. All rights reserved. // -using System; using System.Diagnostics; using System.IO; -using Foundation; #if MONOMAC using AppKit; #else using UIKit; #endif -using ObjCRuntime; -using NUnit.Framework; using Xamarin.Utils; namespace MonoTouchFixtures.Foundation { diff --git a/tests/monotouch-test/Foundation/UserDefaultsTest.cs b/tests/monotouch-test/Foundation/UserDefaultsTest.cs index 052ea4544047..09e77b56aacd 100644 --- a/tests/monotouch-test/Foundation/UserDefaultsTest.cs +++ b/tests/monotouch-test/Foundation/UserDefaultsTest.cs @@ -7,16 +7,12 @@ // Copyright 2012 Xamarin Inc. All rights reserved. // -using System; using System.Diagnostics; -using Foundation; #if MONOMAC using AppKit; #else using UIKit; #endif -using ObjCRuntime; -using NUnit.Framework; using Xamarin.Utils; namespace MonoTouchFixtures.Foundation { diff --git a/tests/monotouch-test/Foundation/UuidTest.cs b/tests/monotouch-test/Foundation/UuidTest.cs index 010fa4bed997..47315d5cad01 100644 --- a/tests/monotouch-test/Foundation/UuidTest.cs +++ b/tests/monotouch-test/Foundation/UuidTest.cs @@ -7,16 +7,12 @@ // Copyright 2012-2013 Xamarin Inc. All rights reserved. // -using System; using System.IO; -using Foundation; #if MONOMAC using AppKit; #else using UIKit; #endif -using ObjCRuntime; -using NUnit.Framework; namespace MonoTouchFixtures.Foundation { diff --git a/tests/monotouch-test/Foundation/ZoneTest.cs b/tests/monotouch-test/Foundation/ZoneTest.cs index baa72c1dc55c..e7833b7d6ddb 100644 --- a/tests/monotouch-test/Foundation/ZoneTest.cs +++ b/tests/monotouch-test/Foundation/ZoneTest.cs @@ -7,11 +7,6 @@ // Copyright 2013 Xamarin Inc. All rights reserved. // -using System; - -using Foundation; -using NUnit.Framework; - namespace MonoTouchFixtures.Foundation { [TestFixture] diff --git a/tests/monotouch-test/GLKit/BaseEffectTest.cs b/tests/monotouch-test/GLKit/BaseEffectTest.cs index 20dd3766ed50..a1bf5f7327c1 100644 --- a/tests/monotouch-test/GLKit/BaseEffectTest.cs +++ b/tests/monotouch-test/GLKit/BaseEffectTest.cs @@ -2,12 +2,8 @@ #if HAS_GLKIT -using System; using System.Drawing; -using Foundation; using GLKit; -using ObjCRuntime; -using NUnit.Framework; using Xamarin.Utils; using System.Numerics; diff --git a/tests/monotouch-test/GLKit/EffectPropertyFog.cs b/tests/monotouch-test/GLKit/EffectPropertyFog.cs index fdbe736527f9..9dbf9ed34d5f 100644 --- a/tests/monotouch-test/GLKit/EffectPropertyFog.cs +++ b/tests/monotouch-test/GLKit/EffectPropertyFog.cs @@ -2,12 +2,8 @@ #if HAS_GLKIT -using System; using System.Drawing; -using Foundation; using GLKit; -using ObjCRuntime; -using NUnit.Framework; using Xamarin.Utils; namespace MonoTouchFixtures.GLKit { diff --git a/tests/monotouch-test/GLKit/EffectPropertyLightTest.cs b/tests/monotouch-test/GLKit/EffectPropertyLightTest.cs index 453e77232106..625371eef35e 100644 --- a/tests/monotouch-test/GLKit/EffectPropertyLightTest.cs +++ b/tests/monotouch-test/GLKit/EffectPropertyLightTest.cs @@ -2,12 +2,8 @@ #if HAS_GLKIT -using System; using System.Drawing; -using Foundation; using GLKit; -using ObjCRuntime; -using NUnit.Framework; using Xamarin.Utils; namespace MonoTouchFixtures.GLKit { diff --git a/tests/monotouch-test/GLKit/EffectPropertyMaterialTest.cs b/tests/monotouch-test/GLKit/EffectPropertyMaterialTest.cs index d18e051c1cd6..e2c9ec948b1d 100644 --- a/tests/monotouch-test/GLKit/EffectPropertyMaterialTest.cs +++ b/tests/monotouch-test/GLKit/EffectPropertyMaterialTest.cs @@ -2,12 +2,8 @@ #if HAS_GLKIT -using System; using System.Drawing; -using Foundation; using GLKit; -using ObjCRuntime; -using NUnit.Framework; using Xamarin.Utils; namespace MonoTouchFixtures.GLKit { diff --git a/tests/monotouch-test/GLKit/KViewTest.cs b/tests/monotouch-test/GLKit/KViewTest.cs index 10f00f4deea1..f316eaf791a0 100644 --- a/tests/monotouch-test/GLKit/KViewTest.cs +++ b/tests/monotouch-test/GLKit/KViewTest.cs @@ -2,12 +2,9 @@ #if HAS_GLKIT && !MONOMAC -using System; using System.Drawing; using CoreGraphics; -using Foundation; using GLKit; -using NUnit.Framework; namespace MonoTouchFixtures.GLKit { diff --git a/tests/monotouch-test/GameController/ExtendedGamepadSnapshotTest.cs b/tests/monotouch-test/GameController/ExtendedGamepadSnapshotTest.cs index 026128cc94f7..b34fe6e2a747 100644 --- a/tests/monotouch-test/GameController/ExtendedGamepadSnapshotTest.cs +++ b/tests/monotouch-test/GameController/ExtendedGamepadSnapshotTest.cs @@ -7,13 +7,10 @@ // Copyright 2015 Xamarin Inc. All rights reserved. // -using System; -using Foundation; #if !MONOMAC using UIKit; #endif using GameController; -using NUnit.Framework; namespace MonoTouchFixtures.GameController { diff --git a/tests/monotouch-test/GameController/GCControllerTest.cs b/tests/monotouch-test/GameController/GCControllerTest.cs index ab7d3d68e6d4..0baf3a99c38d 100644 --- a/tests/monotouch-test/GameController/GCControllerTest.cs +++ b/tests/monotouch-test/GameController/GCControllerTest.cs @@ -1,10 +1,6 @@ -using System; -using Foundation; using GameController; -using NUnit.Framework; - namespace MonoTouchFixtures.GameController { [TestFixture] [Preserve (AllMembers = true)] diff --git a/tests/monotouch-test/GameController/GCInputTest.cs b/tests/monotouch-test/GameController/GCInputTest.cs index 42691e574e3d..52ba64a97253 100644 --- a/tests/monotouch-test/GameController/GCInputTest.cs +++ b/tests/monotouch-test/GameController/GCInputTest.cs @@ -1,10 +1,6 @@ -using System; -using Foundation; using GameController; -using NUnit.Framework; - namespace MonoTouchFixtures.GameController { [TestFixture] [Preserve (AllMembers = true)] diff --git a/tests/monotouch-test/GameController/GCPoint2Test.cs b/tests/monotouch-test/GameController/GCPoint2Test.cs index 22bbb730f0b7..560c7686ee9e 100644 --- a/tests/monotouch-test/GameController/GCPoint2Test.cs +++ b/tests/monotouch-test/GameController/GCPoint2Test.cs @@ -1,10 +1,6 @@ -using System; -using Foundation; using GameController; -using NUnit.Framework; - namespace MonoTouchFixtures.GameController { [TestFixture] [Preserve (AllMembers = true)] diff --git a/tests/monotouch-test/GameController/GamepadSnapshotTest.cs b/tests/monotouch-test/GameController/GamepadSnapshotTest.cs index 2c65100ba044..d3c673637f35 100644 --- a/tests/monotouch-test/GameController/GamepadSnapshotTest.cs +++ b/tests/monotouch-test/GameController/GamepadSnapshotTest.cs @@ -7,13 +7,10 @@ // Copyright 2015 Xamarin Inc. All rights reserved. // -using System; -using Foundation; #if !MONOMAC using UIKit; #endif using GameController; -using NUnit.Framework; namespace MonoTouchFixtures.GameController { diff --git a/tests/monotouch-test/GameKit/GKGameCenterViewControllerTest.cs b/tests/monotouch-test/GameKit/GKGameCenterViewControllerTest.cs index 6253680d2513..71ec233dab1d 100644 --- a/tests/monotouch-test/GameKit/GKGameCenterViewControllerTest.cs +++ b/tests/monotouch-test/GameKit/GKGameCenterViewControllerTest.cs @@ -2,16 +2,12 @@ // Unit tests for GKGameCenterViewControllerTest // -using System; -using Foundation; -using ObjCRuntime; #if MONOMAC using AppKit; #else using UIKit; #endif using GameKit; -using NUnit.Framework; using Xamarin.Utils; namespace MonoTouchFixtures.GameKit { diff --git a/tests/monotouch-test/GameKit/LeaderboardTest.cs b/tests/monotouch-test/GameKit/LeaderboardTest.cs index 2954945a1a3a..ed0b33983a8d 100644 --- a/tests/monotouch-test/GameKit/LeaderboardTest.cs +++ b/tests/monotouch-test/GameKit/LeaderboardTest.cs @@ -7,16 +7,12 @@ // Copyright 2013 Xamarin Inc. All rights reserved. // -using System; -using Foundation; -using ObjCRuntime; #if MONOMAC using AppKit; #else using UIKit; #endif using GameKit; -using NUnit.Framework; using Xamarin.Utils; namespace MonoTouchFixtures.GameKit { diff --git a/tests/monotouch-test/GameKit/LeaderboardViewControllerTest.cs b/tests/monotouch-test/GameKit/LeaderboardViewControllerTest.cs index 5ca4f3d40a4a..649473666360 100644 --- a/tests/monotouch-test/GameKit/LeaderboardViewControllerTest.cs +++ b/tests/monotouch-test/GameKit/LeaderboardViewControllerTest.cs @@ -9,18 +9,14 @@ #if !__TVOS__ && !__MACCATALYST__ -using System; using System.IO; using System.Threading; -using Foundation; -using ObjCRuntime; #if MONOMAC using AppKit; #else using UIKit; #endif using GameKit; -using NUnit.Framework; using Xamarin.Utils; namespace MonoTouchFixtures.GameKit { diff --git a/tests/monotouch-test/GameKit/NotificationBannerTest.cs b/tests/monotouch-test/GameKit/NotificationBannerTest.cs index 584217d49e09..b2f584c79c16 100644 --- a/tests/monotouch-test/GameKit/NotificationBannerTest.cs +++ b/tests/monotouch-test/GameKit/NotificationBannerTest.cs @@ -7,10 +7,7 @@ // Copyright 2012,2015 Xamarin Inc. All rights reserved. // -using System; -using Foundation; using GameKit; -using NUnit.Framework; namespace MonoTouchFixtures.GameKit { diff --git a/tests/monotouch-test/GameKit/ScoreTest.cs b/tests/monotouch-test/GameKit/ScoreTest.cs index 96c0094da1fd..e384fae47701 100644 --- a/tests/monotouch-test/GameKit/ScoreTest.cs +++ b/tests/monotouch-test/GameKit/ScoreTest.cs @@ -9,18 +9,14 @@ #if !MONOMAC -using System; using System.IO; using System.Threading; -using Foundation; -using ObjCRuntime; #if MONOMAC using AppKit; #else using UIKit; #endif using GameKit; -using NUnit.Framework; using Xamarin.Utils; namespace MonoTouchFixtures.GameKit { diff --git a/tests/monotouch-test/GameKit/SessionTest.cs b/tests/monotouch-test/GameKit/SessionTest.cs index 1d3c55b1d623..cf2c7c03ae66 100644 --- a/tests/monotouch-test/GameKit/SessionTest.cs +++ b/tests/monotouch-test/GameKit/SessionTest.cs @@ -9,12 +9,9 @@ #if !__TVOS__ && !MONOMAC -using System; using System.IO; using System.Threading; -using Foundation; using GameKit; -using NUnit.Framework; namespace MonoTouchFixtures.GameKit { diff --git a/tests/monotouch-test/GameplayKit/GKAgent3DTest.cs b/tests/monotouch-test/GameplayKit/GKAgent3DTest.cs index 6a405f3e88db..9ced78c2aa67 100644 --- a/tests/monotouch-test/GameplayKit/GKAgent3DTest.cs +++ b/tests/monotouch-test/GameplayKit/GKAgent3DTest.cs @@ -8,9 +8,6 @@ // Copyright 2017 Microsoft Inc. All rights reserved. // -using System; - -using Foundation; using GameplayKit; using MatrixFloat2x2 = global::CoreGraphics.NMatrix2; @@ -19,7 +16,6 @@ using VectorFloat3 = global::CoreGraphics.NVector3; using Bindings.Test; -using NUnit.Framework; namespace MonoTouchFixtures.GamePlayKit { [TestFixture] diff --git a/tests/monotouch-test/GameplayKit/GKBehaviorTests.cs b/tests/monotouch-test/GameplayKit/GKBehaviorTests.cs index 84318b03dfa6..c9831f99448c 100644 --- a/tests/monotouch-test/GameplayKit/GKBehaviorTests.cs +++ b/tests/monotouch-test/GameplayKit/GKBehaviorTests.cs @@ -8,10 +8,6 @@ // Copyright 2022 Xamarin Inc. All rights reserved. // -using System; -using NUnit.Framework; - -using Foundation; using GameplayKit; namespace MonoTouchFixtures.GamePlayKit { diff --git a/tests/monotouch-test/GameplayKit/GKComponentSystemTests.cs b/tests/monotouch-test/GameplayKit/GKComponentSystemTests.cs index de429fd66085..8cc086ceac85 100644 --- a/tests/monotouch-test/GameplayKit/GKComponentSystemTests.cs +++ b/tests/monotouch-test/GameplayKit/GKComponentSystemTests.cs @@ -8,11 +8,7 @@ // Copyright 2015 Xamarin Inc. All rights reserved. // -using System; - -using Foundation; using GameplayKit; -using NUnit.Framework; namespace MonoTouchFixtures.GamePlayKit { diff --git a/tests/monotouch-test/GameplayKit/GKEntityTests.cs b/tests/monotouch-test/GameplayKit/GKEntityTests.cs index f11b5ede5bb8..78c39b4fafa5 100644 --- a/tests/monotouch-test/GameplayKit/GKEntityTests.cs +++ b/tests/monotouch-test/GameplayKit/GKEntityTests.cs @@ -8,11 +8,7 @@ // Copyright 2015 Xamarin Inc. All rights reserved. // -using System; - -using Foundation; using GameplayKit; -using NUnit.Framework; namespace MonoTouchFixtures.GamePlayKit { diff --git a/tests/monotouch-test/GameplayKit/GKGridGraphTests.cs b/tests/monotouch-test/GameplayKit/GKGridGraphTests.cs index ee58553c7d6c..97f39e4cf798 100644 --- a/tests/monotouch-test/GameplayKit/GKGridGraphTests.cs +++ b/tests/monotouch-test/GameplayKit/GKGridGraphTests.cs @@ -8,12 +8,7 @@ // Copyright 2015 Xamarin Inc. All rights reserved. // -using System; -using System.Collections.Generic; - -using Foundation; using GameplayKit; -using NUnit.Framework; using Vector2i = global::CoreGraphics.NVector2i; diff --git a/tests/monotouch-test/GameplayKit/GKMeshGraphTests.cs b/tests/monotouch-test/GameplayKit/GKMeshGraphTests.cs index 8108d5a94560..1ef416fbb6e1 100644 --- a/tests/monotouch-test/GameplayKit/GKMeshGraphTests.cs +++ b/tests/monotouch-test/GameplayKit/GKMeshGraphTests.cs @@ -8,10 +8,6 @@ // Copyright 2016 Xamarin Inc. All rights reserved. // -using System; -using NUnit.Framework; - -using Foundation; using GameplayKit; using System.Numerics; diff --git a/tests/monotouch-test/GameplayKit/GKNoiseMapTests.cs b/tests/monotouch-test/GameplayKit/GKNoiseMapTests.cs index 54835e227d02..5502cd009630 100644 --- a/tests/monotouch-test/GameplayKit/GKNoiseMapTests.cs +++ b/tests/monotouch-test/GameplayKit/GKNoiseMapTests.cs @@ -8,10 +8,6 @@ // Copyright 2016 Xamarin Inc. All rights reserved. // -using System; -using NUnit.Framework; - -using Foundation; using GameplayKit; using Vector2d = global::CoreGraphics.NVector2d; diff --git a/tests/monotouch-test/GameplayKit/GKNoiseTests.cs b/tests/monotouch-test/GameplayKit/GKNoiseTests.cs index 5f03fb6b11f9..943ee4871499 100644 --- a/tests/monotouch-test/GameplayKit/GKNoiseTests.cs +++ b/tests/monotouch-test/GameplayKit/GKNoiseTests.cs @@ -8,10 +8,6 @@ // Copyright 2016 Xamarin Inc. All rights reserved. // -using System; -using NUnit.Framework; - -using Foundation; using GameplayKit; using Vector3d = global::CoreGraphics.NVector3d; diff --git a/tests/monotouch-test/GameplayKit/GKOctreeTests.cs b/tests/monotouch-test/GameplayKit/GKOctreeTests.cs index e9955ffefaca..9db3feef3eca 100644 --- a/tests/monotouch-test/GameplayKit/GKOctreeTests.cs +++ b/tests/monotouch-test/GameplayKit/GKOctreeTests.cs @@ -8,10 +8,6 @@ // Copyright 2016 Xamarin Inc. All rights reserved. // -using System; -using NUnit.Framework; - -using Foundation; using GameplayKit; using System.Numerics; diff --git a/tests/monotouch-test/GameplayKit/GKPathTests.cs b/tests/monotouch-test/GameplayKit/GKPathTests.cs index bd1f792da237..8933153ff7d6 100644 --- a/tests/monotouch-test/GameplayKit/GKPathTests.cs +++ b/tests/monotouch-test/GameplayKit/GKPathTests.cs @@ -8,11 +8,7 @@ // Copyright 2015 Xamarin Inc. All rights reserved. // -using System; - -using Foundation; using GameplayKit; -using NUnit.Framework; using System.Numerics; namespace MonoTouchFixtures.GamePlayKit { diff --git a/tests/monotouch-test/GameplayKit/GKPolygonObstacleTests.cs b/tests/monotouch-test/GameplayKit/GKPolygonObstacleTests.cs index 1bc99f57f996..ffffbffabb6b 100644 --- a/tests/monotouch-test/GameplayKit/GKPolygonObstacleTests.cs +++ b/tests/monotouch-test/GameplayKit/GKPolygonObstacleTests.cs @@ -8,11 +8,7 @@ // Copyright 2015 Xamarin Inc. All rights reserved. // -using System; - -using Foundation; using GameplayKit; -using NUnit.Framework; using System.Numerics; diff --git a/tests/monotouch-test/GameplayKit/GKQuadTreeTests.cs b/tests/monotouch-test/GameplayKit/GKQuadTreeTests.cs index 124570fac809..f87e7ee1c2bb 100644 --- a/tests/monotouch-test/GameplayKit/GKQuadTreeTests.cs +++ b/tests/monotouch-test/GameplayKit/GKQuadTreeTests.cs @@ -8,10 +8,6 @@ // Copyright 2016 Xamarin Inc. All rights reserved. // -using System; -using NUnit.Framework; - -using Foundation; using GameplayKit; using System.Numerics; diff --git a/tests/monotouch-test/GameplayKit/GKStateMachineTests.cs b/tests/monotouch-test/GameplayKit/GKStateMachineTests.cs index 2f80a7cb4c02..b05a54d7ca1a 100644 --- a/tests/monotouch-test/GameplayKit/GKStateMachineTests.cs +++ b/tests/monotouch-test/GameplayKit/GKStateMachineTests.cs @@ -8,12 +8,7 @@ // Copyright 2015 Xamarin Inc. All rights reserved. // -using System; - -using Foundation; using GameplayKit; -using ObjCRuntime; -using NUnit.Framework; namespace MonoTouchFixtures.GameplayKit { diff --git a/tests/monotouch-test/GameplayKit/GKStateTests.cs b/tests/monotouch-test/GameplayKit/GKStateTests.cs index 0799486aef01..bc933c317bd5 100644 --- a/tests/monotouch-test/GameplayKit/GKStateTests.cs +++ b/tests/monotouch-test/GameplayKit/GKStateTests.cs @@ -8,12 +8,7 @@ // Copyright 2015 Xamarin Inc. All rights reserved. // -using System; - -using Foundation; using GameplayKit; -using ObjCRuntime; -using NUnit.Framework; namespace MonoTouchFixtures.GameplayKit { diff --git a/tests/monotouch-test/HealthKit/AnchoredObjectQueryTest.cs b/tests/monotouch-test/HealthKit/AnchoredObjectQueryTest.cs index 1eaf60ccac20..8473e46853ed 100644 --- a/tests/monotouch-test/HealthKit/AnchoredObjectQueryTest.cs +++ b/tests/monotouch-test/HealthKit/AnchoredObjectQueryTest.cs @@ -9,11 +9,7 @@ #if HAS_HEALTHKIT -using System; - -using Foundation; using HealthKit; -using NUnit.Framework; #if MONOMAC using AppKit; #else diff --git a/tests/monotouch-test/HealthKit/CategoryTypeIdentifierTest.cs b/tests/monotouch-test/HealthKit/CategoryTypeIdentifierTest.cs index dbaa78d80d16..0066e2a6b282 100644 --- a/tests/monotouch-test/HealthKit/CategoryTypeIdentifierTest.cs +++ b/tests/monotouch-test/HealthKit/CategoryTypeIdentifierTest.cs @@ -9,12 +9,7 @@ #if HAS_HEALTHKIT -using System; -using System.Collections.Generic; - -using Foundation; using HealthKit; -using NUnit.Framework; #if MONOMAC using AppKit; #else diff --git a/tests/monotouch-test/HealthKit/CdaDocumentSampleTest.cs b/tests/monotouch-test/HealthKit/CdaDocumentSampleTest.cs index 7b46c8e6fdb6..418a20aa3df9 100644 --- a/tests/monotouch-test/HealthKit/CdaDocumentSampleTest.cs +++ b/tests/monotouch-test/HealthKit/CdaDocumentSampleTest.cs @@ -8,15 +8,10 @@ // #if HAS_HEALTHKIT -using System; using System.Linq; using System.Text.RegularExpressions; -using Foundation; -using ObjCRuntime; - using HealthKit; -using NUnit.Framework; #if MONOMAC using AppKit; #else diff --git a/tests/monotouch-test/HealthKit/ErrorTest.cs b/tests/monotouch-test/HealthKit/ErrorTest.cs index 3a8a817fc5be..6264b10689e3 100644 --- a/tests/monotouch-test/HealthKit/ErrorTest.cs +++ b/tests/monotouch-test/HealthKit/ErrorTest.cs @@ -9,11 +9,7 @@ #if HAS_HEALTHKIT -using System; - -using Foundation; using HealthKit; -using NUnit.Framework; #if MONOMAC using AppKit; #else diff --git a/tests/monotouch-test/HealthKit/HKAppleSleepingBreathingDisturbancesTest.cs b/tests/monotouch-test/HealthKit/HKAppleSleepingBreathingDisturbancesTest.cs index 3f8bb8b81421..5f9cafa778ea 100644 --- a/tests/monotouch-test/HealthKit/HKAppleSleepingBreathingDisturbancesTest.cs +++ b/tests/monotouch-test/HealthKit/HKAppleSleepingBreathingDisturbancesTest.cs @@ -1,12 +1,7 @@ #if HAS_HEALTHKIT -using System; - -using Foundation; using HealthKit; -using NUnit.Framework; - namespace MonoTouchFixtures.HealthKit { [TestFixture] diff --git a/tests/monotouch-test/HealthKit/HKAppleWalkingSteadinessTest.cs b/tests/monotouch-test/HealthKit/HKAppleWalkingSteadinessTest.cs index bc7a6b85f21a..50ce1e5e0c4f 100644 --- a/tests/monotouch-test/HealthKit/HKAppleWalkingSteadinessTest.cs +++ b/tests/monotouch-test/HealthKit/HKAppleWalkingSteadinessTest.cs @@ -1,10 +1,6 @@ #if HAS_HEALTHKIT -using System; - -using Foundation; using HealthKit; -using NUnit.Framework; #if MONOMAC using AppKit; #else diff --git a/tests/monotouch-test/HealthKit/HKCategoryValueSleepAnalysisTest.cs b/tests/monotouch-test/HealthKit/HKCategoryValueSleepAnalysisTest.cs index 690d6ece760f..67ced897d5d3 100644 --- a/tests/monotouch-test/HealthKit/HKCategoryValueSleepAnalysisTest.cs +++ b/tests/monotouch-test/HealthKit/HKCategoryValueSleepAnalysisTest.cs @@ -9,11 +9,7 @@ #if HAS_HEALTHKIT -using System; - -using Foundation; using HealthKit; -using NUnit.Framework; namespace MonoTouchFixtures.HealthKit { diff --git a/tests/monotouch-test/HealthKit/HKHealthStoreTest.cs b/tests/monotouch-test/HealthKit/HKHealthStoreTest.cs index 75f4726a4c4e..90070d899a88 100644 --- a/tests/monotouch-test/HealthKit/HKHealthStoreTest.cs +++ b/tests/monotouch-test/HealthKit/HKHealthStoreTest.cs @@ -9,11 +9,7 @@ #if HAS_HEALTHKIT -using System; - -using Foundation; using HealthKit; -using NUnit.Framework; #if MONOMAC using AppKit; #else diff --git a/tests/monotouch-test/HealthKit/HKWorkoutBuilderTest.cs b/tests/monotouch-test/HealthKit/HKWorkoutBuilderTest.cs index b7e95df5ff57..f0e223ec21ce 100644 --- a/tests/monotouch-test/HealthKit/HKWorkoutBuilderTest.cs +++ b/tests/monotouch-test/HealthKit/HKWorkoutBuilderTest.cs @@ -9,11 +9,7 @@ #if HAS_HEALTHKIT -using System; - -using Foundation; using HealthKit; -using NUnit.Framework; #if MONOMAC using AppKit; #else diff --git a/tests/monotouch-test/HealthKit/ObjectTypeTest.cs b/tests/monotouch-test/HealthKit/ObjectTypeTest.cs index 57cf5e476b34..1564a2dfda6e 100644 --- a/tests/monotouch-test/HealthKit/ObjectTypeTest.cs +++ b/tests/monotouch-test/HealthKit/ObjectTypeTest.cs @@ -9,11 +9,7 @@ #if HAS_HEALTHKIT -using System; - -using Foundation; using HealthKit; -using NUnit.Framework; #if MONOMAC using AppKit; #else diff --git a/tests/monotouch-test/HealthKit/QuantityTypeIdentifierTest.cs b/tests/monotouch-test/HealthKit/QuantityTypeIdentifierTest.cs index ea759e989f97..995e2b3a28b2 100644 --- a/tests/monotouch-test/HealthKit/QuantityTypeIdentifierTest.cs +++ b/tests/monotouch-test/HealthKit/QuantityTypeIdentifierTest.cs @@ -9,12 +9,7 @@ #if HAS_HEALTHKIT -using System; -using System.Collections.Generic; - -using Foundation; using HealthKit; -using NUnit.Framework; #if MONOMAC using AppKit; #else diff --git a/tests/monotouch-test/HomeKit/HMCharacteristicTest.cs b/tests/monotouch-test/HomeKit/HMCharacteristicTest.cs index 5ed9cc020085..22d35be40a87 100644 --- a/tests/monotouch-test/HomeKit/HMCharacteristicTest.cs +++ b/tests/monotouch-test/HomeKit/HMCharacteristicTest.cs @@ -10,12 +10,7 @@ #if HAS_HOMEKIT -using System; -using NUnit.Framework; - -using Foundation; using HomeKit; -using ObjCRuntime; using Xamarin.Utils; namespace MonoTouchFixtures.HomeKit { diff --git a/tests/monotouch-test/HomeKit/HMMutableSignificantTimeEventTest.cs b/tests/monotouch-test/HomeKit/HMMutableSignificantTimeEventTest.cs index cb8096a56373..88cab32713ed 100644 --- a/tests/monotouch-test/HomeKit/HMMutableSignificantTimeEventTest.cs +++ b/tests/monotouch-test/HomeKit/HMMutableSignificantTimeEventTest.cs @@ -10,12 +10,7 @@ #if HAS_HOMEKIT -using System; -using NUnit.Framework; - -using Foundation; using HomeKit; -using ObjCRuntime; using Xamarin.Utils; namespace MonoTouchFixtures.HomeKit { diff --git a/tests/monotouch-test/HomeKit/HMSignificantTimeEventTest.cs b/tests/monotouch-test/HomeKit/HMSignificantTimeEventTest.cs index 3d51a86494ec..211546ec3991 100644 --- a/tests/monotouch-test/HomeKit/HMSignificantTimeEventTest.cs +++ b/tests/monotouch-test/HomeKit/HMSignificantTimeEventTest.cs @@ -10,12 +10,7 @@ #if HAS_HOMEKIT -using System; -using NUnit.Framework; - -using Foundation; using HomeKit; -using ObjCRuntime; using Xamarin.Utils; namespace MonoTouchFixtures.HomeKit { diff --git a/tests/monotouch-test/HttpClient/HttpClientTest.cs b/tests/monotouch-test/HttpClient/HttpClientTest.cs index e8dde134cc94..b6884d35d9b1 100644 --- a/tests/monotouch-test/HttpClient/HttpClientTest.cs +++ b/tests/monotouch-test/HttpClient/HttpClientTest.cs @@ -1,15 +1,10 @@ -using System; using System.Net.Http; using System.Reflection; using System.Threading; using System.Threading.Tasks; -using Foundation; -using ObjCRuntime; -using NUnit.Framework; using Xamarin.Utils; - namespace MonoTouchFixtures.HttpClientTests { [TestFixture] [Preserve (AllMembers = true)] diff --git a/tests/monotouch-test/ImageIO/CGImageAnimationTest.cs b/tests/monotouch-test/ImageIO/CGImageAnimationTest.cs index 99d22494a2b8..8072b7a0cdeb 100644 --- a/tests/monotouch-test/ImageIO/CGImageAnimationTest.cs +++ b/tests/monotouch-test/ImageIO/CGImageAnimationTest.cs @@ -6,9 +6,7 @@ // // Copyright 2020 Microsoft Corp. All rights reserved. // -using System; using System.IO; -using Foundation; using System.Threading.Tasks; #if MONOMAC using AppKit; @@ -17,7 +15,6 @@ #endif using CoreGraphics; using ImageIO; -using NUnit.Framework; namespace MonoTouchFixtures.ImageIO { diff --git a/tests/monotouch-test/ImageIO/CGImageSourceTest.cs b/tests/monotouch-test/ImageIO/CGImageSourceTest.cs index 8b5ca0242cef..1a12ae1bbb11 100644 --- a/tests/monotouch-test/ImageIO/CGImageSourceTest.cs +++ b/tests/monotouch-test/ImageIO/CGImageSourceTest.cs @@ -1,12 +1,8 @@ // Copyright 2012-2013 Xamarin Inc. All rights reserved -using System; using System.Drawing; -using Foundation; using CoreGraphics; using ImageIO; -using ObjCRuntime; -using NUnit.Framework; namespace MonoTouchFixtures.ImageIO { diff --git a/tests/monotouch-test/ImageIO/ImageDestinationTest.cs b/tests/monotouch-test/ImageIO/ImageDestinationTest.cs index fed2d1437a49..9a27a9f48df2 100644 --- a/tests/monotouch-test/ImageIO/ImageDestinationTest.cs +++ b/tests/monotouch-test/ImageIO/ImageDestinationTest.cs @@ -7,9 +7,7 @@ // Copyright 2012-2014 Xamarin Inc. All rights reserved. // -using System; using System.IO; -using Foundation; #if MONOMAC using AppKit; #else @@ -17,7 +15,6 @@ #endif using CoreGraphics; using ImageIO; -using NUnit.Framework; namespace MonoTouchFixtures.ImageIO { diff --git a/tests/monotouch-test/ImageIO/ImageMetadataTagTest.cs b/tests/monotouch-test/ImageIO/ImageMetadataTagTest.cs index 8ed2f2bc3efd..8f32f08f2021 100644 --- a/tests/monotouch-test/ImageIO/ImageMetadataTagTest.cs +++ b/tests/monotouch-test/ImageIO/ImageMetadataTagTest.cs @@ -7,12 +7,7 @@ // Copyright 2013 Xamarin Inc. All rights reserved. // -using System; -using System.Runtime.InteropServices; -using Foundation; using ImageIO; -using ObjCRuntime; -using NUnit.Framework; namespace MonoTouchFixtures.ImageIO { diff --git a/tests/monotouch-test/ImageIO/ImageMetadataTest.cs b/tests/monotouch-test/ImageIO/ImageMetadataTest.cs index 2e673d0eced1..01aa540eb821 100644 --- a/tests/monotouch-test/ImageIO/ImageMetadataTest.cs +++ b/tests/monotouch-test/ImageIO/ImageMetadataTest.cs @@ -7,11 +7,7 @@ // Copyright 2013 Xamarin Inc. All rights reserved. // -using System; -using Foundation; using ImageIO; -using ObjCRuntime; -using NUnit.Framework; using CGImageProperties = ImageIO.CGImageProperties; diff --git a/tests/monotouch-test/ImageIO/MutableImageMetadataTest.cs b/tests/monotouch-test/ImageIO/MutableImageMetadataTest.cs index 00c746ad1cb5..bea6c7d70f86 100644 --- a/tests/monotouch-test/ImageIO/MutableImageMetadataTest.cs +++ b/tests/monotouch-test/ImageIO/MutableImageMetadataTest.cs @@ -7,11 +7,7 @@ // Copyright 2013 Xamarin Inc. All rights reserved. // -using System; -using Foundation; using ImageIO; -using ObjCRuntime; -using NUnit.Framework; using CGImageProperties = ImageIO.CGImageProperties; diff --git a/tests/monotouch-test/Intents/INIntentResolutionResultTests.cs b/tests/monotouch-test/Intents/INIntentResolutionResultTests.cs index f1ba1d9e5f2d..3d44cfb7f0e4 100644 --- a/tests/monotouch-test/Intents/INIntentResolutionResultTests.cs +++ b/tests/monotouch-test/Intents/INIntentResolutionResultTests.cs @@ -10,10 +10,6 @@ #if !__TVOS__ && !MONOMAC -using System; -using NUnit.Framework; - -using Foundation; using Intents; namespace MonoTouchFixtures.Intents { diff --git a/tests/monotouch-test/JavascriptCore/ContextTest.cs b/tests/monotouch-test/JavascriptCore/ContextTest.cs index df5f3a649bc4..c9834b210e33 100644 --- a/tests/monotouch-test/JavascriptCore/ContextTest.cs +++ b/tests/monotouch-test/JavascriptCore/ContextTest.cs @@ -7,10 +7,7 @@ // Copyright 2013, 2015 Xamarin Inc. // -using System; -using Foundation; using JavaScriptCore; -using NUnit.Framework; namespace MonoTouchFixtures.JavascriptCore { diff --git a/tests/monotouch-test/JavascriptCore/JSExportTest.cs b/tests/monotouch-test/JavascriptCore/JSExportTest.cs index c8d34c949e4c..22f50633ef2b 100644 --- a/tests/monotouch-test/JavascriptCore/JSExportTest.cs +++ b/tests/monotouch-test/JavascriptCore/JSExportTest.cs @@ -2,11 +2,7 @@ // Copyright 2014 Xamarin Inc. // -using System; -using Foundation; using JavaScriptCore; -using ObjCRuntime; -using NUnit.Framework; using XamarinTests.ObjCRuntime; using MonoTouchFixtures.ObjCRuntime; diff --git a/tests/monotouch-test/JavascriptCore/ValueTest.cs b/tests/monotouch-test/JavascriptCore/ValueTest.cs index c302b12135cd..3f33fe90ca15 100644 --- a/tests/monotouch-test/JavascriptCore/ValueTest.cs +++ b/tests/monotouch-test/JavascriptCore/ValueTest.cs @@ -7,10 +7,7 @@ // Copyright 2013 Xamarin Inc. // -using System; -using Foundation; using JavaScriptCore; -using NUnit.Framework; namespace MonoTouchFixtures.JavascriptCore { diff --git a/tests/monotouch-test/LocalAuthentication/LADomainStateCompanionTest.cs b/tests/monotouch-test/LocalAuthentication/LADomainStateCompanionTest.cs index 513f4ecb28b4..fb7f0c0c2c4a 100644 --- a/tests/monotouch-test/LocalAuthentication/LADomainStateCompanionTest.cs +++ b/tests/monotouch-test/LocalAuthentication/LADomainStateCompanionTest.cs @@ -1,11 +1,6 @@ #if HAS_LOCALAUTHENTICATION -using System; using System.Collections; -using System.Collections.Generic; -using NUnit.Framework; - -using Foundation; using LocalAuthentication; namespace MonoTouchFixtures.LocalAuthentication { diff --git a/tests/monotouch-test/MLCompute/MLEnumsTest.cs b/tests/monotouch-test/MLCompute/MLEnumsTest.cs index 5318becb71a0..524e35a88293 100644 --- a/tests/monotouch-test/MLCompute/MLEnumsTest.cs +++ b/tests/monotouch-test/MLCompute/MLEnumsTest.cs @@ -1,9 +1,5 @@ -using System; -using Foundation; using MLCompute; -using ObjCRuntime; -using NUnit.Framework; namespace MonoTouchFixtures.MLCompute { diff --git a/tests/monotouch-test/Main.cs b/tests/monotouch-test/Main.cs index 9087bd616a50..9f084b11a7d6 100644 --- a/tests/monotouch-test/Main.cs +++ b/tests/monotouch-test/Main.cs @@ -1,13 +1,8 @@ #if !MONOMAC -using System; -using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; -using Foundation; using UIKit; -using ObjCRuntime; -using System.Runtime.InteropServices; #nullable enable diff --git a/tests/monotouch-test/MapKit/AnnotationViewTest.cs b/tests/monotouch-test/MapKit/AnnotationViewTest.cs index 7d2e40fc24df..98b89d428605 100644 --- a/tests/monotouch-test/MapKit/AnnotationViewTest.cs +++ b/tests/monotouch-test/MapKit/AnnotationViewTest.cs @@ -2,13 +2,10 @@ #if !__TVOS__ -using System; using System.Drawing; using System.Reflection; -using Foundation; using MapKit; using CoreGraphics; -using ObjCRuntime; #if MONOMAC using PlatformImage = AppKit.NSImage; using PlatformView = AppKit.NSView; @@ -17,7 +14,6 @@ using PlatformImage = UIKit.UIImage; using PlatformView = UIKit.UIView; #endif -using NUnit.Framework; using Xamarin.Utils; namespace MonoTouchFixtures.MapKit { diff --git a/tests/monotouch-test/MapKit/CircleViewTest.cs b/tests/monotouch-test/MapKit/CircleViewTest.cs index 1fd691dc9be2..f33531e7628c 100644 --- a/tests/monotouch-test/MapKit/CircleViewTest.cs +++ b/tests/monotouch-test/MapKit/CircleViewTest.cs @@ -2,13 +2,10 @@ #if !__TVOS__ && !MONOMAC -using System; using System.Drawing; using System.Reflection; using CoreGraphics; -using Foundation; using MapKit; -using NUnit.Framework; namespace MonoTouchFixtures.MapKit { [TestFixture] diff --git a/tests/monotouch-test/MapKit/GeometryTest.cs b/tests/monotouch-test/MapKit/GeometryTest.cs index 370adc6a362b..480556824aa0 100644 --- a/tests/monotouch-test/MapKit/GeometryTest.cs +++ b/tests/monotouch-test/MapKit/GeometryTest.cs @@ -1,10 +1,6 @@ #if !__TVOS__ -using System; -using Foundation; using MapKit; -using ObjCRuntime; -using NUnit.Framework; using Xamarin.Utils; namespace MonoTouchFixtures.MapKit { diff --git a/tests/monotouch-test/MapKit/LocalSearchRequestTest.cs b/tests/monotouch-test/MapKit/LocalSearchRequestTest.cs index 87385cec30fd..36f566da4c83 100644 --- a/tests/monotouch-test/MapKit/LocalSearchRequestTest.cs +++ b/tests/monotouch-test/MapKit/LocalSearchRequestTest.cs @@ -7,12 +7,8 @@ // Copyright 2012 Xamarin Inc. All rights reserved. // -using System; -using Foundation; using CoreLocation; using MapKit; -using ObjCRuntime; -using NUnit.Framework; using Xamarin.Utils; namespace MonoTouchFixtures.MapKit { diff --git a/tests/monotouch-test/MapKit/LocalSearchTest.cs b/tests/monotouch-test/MapKit/LocalSearchTest.cs index 3ba84d994f15..b41741cece95 100644 --- a/tests/monotouch-test/MapKit/LocalSearchTest.cs +++ b/tests/monotouch-test/MapKit/LocalSearchTest.cs @@ -7,12 +7,8 @@ // Copyright 2012 Xamarin Inc. All rights reserved. // -using System; -using Foundation; using CoreLocation; using MapKit; -using ObjCRuntime; -using NUnit.Framework; using Xamarin.Utils; namespace MonoTouchFixtures.MapKit { diff --git a/tests/monotouch-test/MapKit/MKAddressFilterTest.cs b/tests/monotouch-test/MapKit/MKAddressFilterTest.cs index 01bef15034eb..8f7c2d78ac2d 100644 --- a/tests/monotouch-test/MapKit/MKAddressFilterTest.cs +++ b/tests/monotouch-test/MapKit/MKAddressFilterTest.cs @@ -1,12 +1,7 @@ #if HAS_MAPKIT -using System; - -using Foundation; using MapKit; -using NUnit.Framework; - using Xamarin.Utils; namespace MonoTouchFixtures.MapKit { diff --git a/tests/monotouch-test/MapKit/MapRectTest.cs b/tests/monotouch-test/MapKit/MapRectTest.cs index 76f174470595..d31e30db08cc 100644 --- a/tests/monotouch-test/MapKit/MapRectTest.cs +++ b/tests/monotouch-test/MapKit/MapRectTest.cs @@ -1,12 +1,8 @@ #if !__TVOS__ -using System; -using Foundation; using MapKit; using CoreGraphics; -using ObjCRuntime; -using NUnit.Framework; using Xamarin.Utils; namespace MonoTouchFixtures.MapKit { diff --git a/tests/monotouch-test/MapKit/MapViewTest.cs b/tests/monotouch-test/MapKit/MapViewTest.cs index 827a7957c536..c6ed74d9639c 100644 --- a/tests/monotouch-test/MapKit/MapViewTest.cs +++ b/tests/monotouch-test/MapKit/MapViewTest.cs @@ -2,18 +2,13 @@ #if !__TVOS__ -using System; -using System.Collections.Generic; using System.Drawing; using System.Reflection; using CoreGraphics; -using Foundation; -using ObjCRuntime; #if !MONOMAC using UIKit; #endif using MapKit; -using NUnit.Framework; using Xamarin.Utils; namespace MonoTouchFixtures.MapKit { diff --git a/tests/monotouch-test/MapKit/OverlayPathRendererTest.cs b/tests/monotouch-test/MapKit/OverlayPathRendererTest.cs index 09ae65130413..050b5537fff4 100644 --- a/tests/monotouch-test/MapKit/OverlayPathRendererTest.cs +++ b/tests/monotouch-test/MapKit/OverlayPathRendererTest.cs @@ -9,12 +9,8 @@ #if !__TVOS__ -using System; -using Foundation; using CoreLocation; using MapKit; -using ObjCRuntime; -using NUnit.Framework; using Xamarin.Utils; namespace MonoTouchFixtures.MapKit { diff --git a/tests/monotouch-test/MapKit/OverlayPathViewTest.cs b/tests/monotouch-test/MapKit/OverlayPathViewTest.cs index c5f922e6e9e4..72f2f6b6beda 100644 --- a/tests/monotouch-test/MapKit/OverlayPathViewTest.cs +++ b/tests/monotouch-test/MapKit/OverlayPathViewTest.cs @@ -2,12 +2,9 @@ #if !__TVOS__ && !MONOMAC -using System; using System.Drawing; using CoreGraphics; -using Foundation; using MapKit; -using NUnit.Framework; namespace MonoTouchFixtures.MapKit { diff --git a/tests/monotouch-test/MapKit/OverlayViewTest.cs b/tests/monotouch-test/MapKit/OverlayViewTest.cs index 22d096d30442..739f5bd53a38 100644 --- a/tests/monotouch-test/MapKit/OverlayViewTest.cs +++ b/tests/monotouch-test/MapKit/OverlayViewTest.cs @@ -2,13 +2,10 @@ #if !__TVOS__ && !MONOMAC -using System; using System.Drawing; using System.Reflection; using CoreGraphics; -using Foundation; using MapKit; -using NUnit.Framework; namespace MonoTouchFixtures.MapKit { [TestFixture] diff --git a/tests/monotouch-test/MapKit/PinAnnotationViewTest.cs b/tests/monotouch-test/MapKit/PinAnnotationViewTest.cs index 035eb6a84c58..3dd6a66d47ff 100644 --- a/tests/monotouch-test/MapKit/PinAnnotationViewTest.cs +++ b/tests/monotouch-test/MapKit/PinAnnotationViewTest.cs @@ -9,18 +9,14 @@ #if !__TVOS__ -using System; using System.Drawing; using CoreGraphics; -using Foundation; using MapKit; -using ObjCRuntime; #if MONOMAC using AppKit; #else using UIKit; #endif -using NUnit.Framework; using Xamarin.Utils; namespace MonoTouchFixtures.MapKit { diff --git a/tests/monotouch-test/MapKit/PolygonTest.cs b/tests/monotouch-test/MapKit/PolygonTest.cs index a0c03555df90..1078d1d8a599 100644 --- a/tests/monotouch-test/MapKit/PolygonTest.cs +++ b/tests/monotouch-test/MapKit/PolygonTest.cs @@ -2,13 +2,9 @@ #if !__TVOS__ -using System; using System.Drawing; -using Foundation; using CoreLocation; using MapKit; -using ObjCRuntime; -using NUnit.Framework; using Xamarin.Utils; namespace MonoTouchFixtures.MapKit { diff --git a/tests/monotouch-test/MapKit/PolygonViewTest.cs b/tests/monotouch-test/MapKit/PolygonViewTest.cs index d506b26f9a45..94877d53f130 100644 --- a/tests/monotouch-test/MapKit/PolygonViewTest.cs +++ b/tests/monotouch-test/MapKit/PolygonViewTest.cs @@ -2,13 +2,10 @@ #if !__TVOS__ && !MONOMAC -using System; using System.Drawing; using System.Reflection; using CoreGraphics; -using Foundation; using MapKit; -using NUnit.Framework; namespace MonoTouchFixtures.MapKit { [TestFixture] diff --git a/tests/monotouch-test/MapKit/PolylineTest.cs b/tests/monotouch-test/MapKit/PolylineTest.cs index b587b8a60c58..4c4bc7602489 100644 --- a/tests/monotouch-test/MapKit/PolylineTest.cs +++ b/tests/monotouch-test/MapKit/PolylineTest.cs @@ -2,13 +2,9 @@ #if !__TVOS__ -using System; using System.Drawing; -using Foundation; using CoreLocation; using MapKit; -using ObjCRuntime; -using NUnit.Framework; using Xamarin.Utils; namespace MonoTouchFixtures.MapKit { diff --git a/tests/monotouch-test/MapKit/PolylineViewTest.cs b/tests/monotouch-test/MapKit/PolylineViewTest.cs index c6d81b2f5f77..59e44a3fe7ca 100644 --- a/tests/monotouch-test/MapKit/PolylineViewTest.cs +++ b/tests/monotouch-test/MapKit/PolylineViewTest.cs @@ -2,13 +2,10 @@ #if !__TVOS__ && !MONOMAC -using System; using System.Drawing; using System.Reflection; using CoreGraphics; -using Foundation; using MapKit; -using NUnit.Framework; namespace MonoTouchFixtures.MapKit { [TestFixture] diff --git a/tests/monotouch-test/MapKit/ShapeTest.cs b/tests/monotouch-test/MapKit/ShapeTest.cs index e1b18b722327..65b78279b50c 100644 --- a/tests/monotouch-test/MapKit/ShapeTest.cs +++ b/tests/monotouch-test/MapKit/ShapeTest.cs @@ -2,13 +2,9 @@ #if !__TVOS__ -using System; using System.Drawing; -using Foundation; using CoreLocation; using MapKit; -using ObjCRuntime; -using NUnit.Framework; using Xamarin.Utils; namespace MonoTouchFixtures.MapKit { diff --git a/tests/monotouch-test/MediaAccessibility/AudibleMediaTest.cs b/tests/monotouch-test/MediaAccessibility/AudibleMediaTest.cs index cc39a1000ce7..0bcceb877002 100644 --- a/tests/monotouch-test/MediaAccessibility/AudibleMediaTest.cs +++ b/tests/monotouch-test/MediaAccessibility/AudibleMediaTest.cs @@ -7,11 +7,7 @@ // Copyright 2015 Xamarin Inc. // -using System; -using Foundation; using MediaAccessibility; -using ObjCRuntime; -using NUnit.Framework; using Xamarin.Utils; namespace MonoTouchFixtures.MediaAccessibility { diff --git a/tests/monotouch-test/MediaAccessibility/CaptionAppearanceTest.cs b/tests/monotouch-test/MediaAccessibility/CaptionAppearanceTest.cs index 066a21f64958..e9929861ae83 100644 --- a/tests/monotouch-test/MediaAccessibility/CaptionAppearanceTest.cs +++ b/tests/monotouch-test/MediaAccessibility/CaptionAppearanceTest.cs @@ -7,10 +7,7 @@ // Copyright 2013 Xamarin Inc. // -using System; -using Foundation; using MediaAccessibility; -using NUnit.Framework; namespace MonoTouchFixtures.MediaAccessibility { diff --git a/tests/monotouch-test/MediaAccessibility/ImageCaptioningTest.cs b/tests/monotouch-test/MediaAccessibility/ImageCaptioningTest.cs index 0d9819aa88da..0927046856c3 100644 --- a/tests/monotouch-test/MediaAccessibility/ImageCaptioningTest.cs +++ b/tests/monotouch-test/MediaAccessibility/ImageCaptioningTest.cs @@ -7,13 +7,9 @@ // Copyright 2019 Microsoft Corporation // -using System; using System.Diagnostics; using System.IO; -using Foundation; using MediaAccessibility; -using ObjCRuntime; -using NUnit.Framework; using MonoTests.System.Net.Http; namespace MonoTouchFixtures.MediaAccessibility { diff --git a/tests/monotouch-test/MediaExtension/MERawProcessingBooleanParameterTest.cs b/tests/monotouch-test/MediaExtension/MERawProcessingBooleanParameterTest.cs index 64ed1397af2e..07329dee10c2 100644 --- a/tests/monotouch-test/MediaExtension/MERawProcessingBooleanParameterTest.cs +++ b/tests/monotouch-test/MediaExtension/MERawProcessingBooleanParameterTest.cs @@ -1,9 +1,6 @@ #if HAS_MEDIAEXTENSION -using Foundation; using MediaExtension; -using NUnit.Framework; - namespace MonoTouchFixtures.MediaExtension { [TestFixture] [Preserve (AllMembers = true)] diff --git a/tests/monotouch-test/MediaExtension/MERawProcessingFloatParameterTest.cs b/tests/monotouch-test/MediaExtension/MERawProcessingFloatParameterTest.cs index 7023564dd853..9cd03351f6ee 100644 --- a/tests/monotouch-test/MediaExtension/MERawProcessingFloatParameterTest.cs +++ b/tests/monotouch-test/MediaExtension/MERawProcessingFloatParameterTest.cs @@ -1,9 +1,6 @@ #if HAS_MEDIAEXTENSION -using Foundation; using MediaExtension; -using NUnit.Framework; - namespace MonoTouchFixtures.MediaExtension { [TestFixture] [Preserve (AllMembers = true)] diff --git a/tests/monotouch-test/MediaExtension/MERawProcessingIntegerParameterTest.cs b/tests/monotouch-test/MediaExtension/MERawProcessingIntegerParameterTest.cs index 64c7b260892d..f6dc89068d4b 100644 --- a/tests/monotouch-test/MediaExtension/MERawProcessingIntegerParameterTest.cs +++ b/tests/monotouch-test/MediaExtension/MERawProcessingIntegerParameterTest.cs @@ -1,9 +1,6 @@ #if HAS_MEDIAEXTENSION -using Foundation; using MediaExtension; -using NUnit.Framework; - namespace MonoTouchFixtures.MediaExtension { [TestFixture] [Preserve (AllMembers = true)] diff --git a/tests/monotouch-test/MediaExtension/MERawProcessingListParameterTest.cs b/tests/monotouch-test/MediaExtension/MERawProcessingListParameterTest.cs index f9124fdc6e60..9f219ba4d043 100644 --- a/tests/monotouch-test/MediaExtension/MERawProcessingListParameterTest.cs +++ b/tests/monotouch-test/MediaExtension/MERawProcessingListParameterTest.cs @@ -1,9 +1,6 @@ #if HAS_MEDIAEXTENSION -using Foundation; using MediaExtension; -using NUnit.Framework; - namespace MonoTouchFixtures.MediaExtension { [TestFixture] [Preserve (AllMembers = true)] diff --git a/tests/monotouch-test/MediaPlayer/MPRemoteCommandTest.cs b/tests/monotouch-test/MediaPlayer/MPRemoteCommandTest.cs index 0da90cea453f..47d11922acfc 100644 --- a/tests/monotouch-test/MediaPlayer/MPRemoteCommandTest.cs +++ b/tests/monotouch-test/MediaPlayer/MPRemoteCommandTest.cs @@ -8,10 +8,7 @@ // Copyright 2022 Microsoft. All rights reserved. // -using System; -using Foundation; using MediaPlayer; -using NUnit.Framework; namespace MonoTouchFixtures.MediaPlayer { diff --git a/tests/monotouch-test/MediaPlayer/MediaItemArtworkTest.cs b/tests/monotouch-test/MediaPlayer/MediaItemArtworkTest.cs index 737e4995e3ac..d45beacc2f89 100644 --- a/tests/monotouch-test/MediaPlayer/MediaItemArtworkTest.cs +++ b/tests/monotouch-test/MediaPlayer/MediaItemArtworkTest.cs @@ -2,14 +2,11 @@ #if !__TVOS__ && !MONOMAC -using System; using System.IO; using System.Drawing; using CoreGraphics; -using Foundation; using MediaPlayer; using UIKit; -using NUnit.Framework; namespace MonoTouchFixtures.MediaPlayer { diff --git a/tests/monotouch-test/MediaPlayer/MediaItemTest.cs b/tests/monotouch-test/MediaPlayer/MediaItemTest.cs index 30776c8b070b..ac64c1c44e05 100644 --- a/tests/monotouch-test/MediaPlayer/MediaItemTest.cs +++ b/tests/monotouch-test/MediaPlayer/MediaItemTest.cs @@ -2,12 +2,8 @@ #if !__TVOS__ && !MONOMAC -using System; using System.Drawing; -using Foundation; using MediaPlayer; -using ObjCRuntime; -using NUnit.Framework; using Xamarin.Utils; namespace MonoTouchFixtures.MediaPlayer { diff --git a/tests/monotouch-test/MediaPlayer/NowPlayingInfoCenterTest.cs b/tests/monotouch-test/MediaPlayer/NowPlayingInfoCenterTest.cs index 759092dc499c..48d1ce38314a 100644 --- a/tests/monotouch-test/MediaPlayer/NowPlayingInfoCenterTest.cs +++ b/tests/monotouch-test/MediaPlayer/NowPlayingInfoCenterTest.cs @@ -2,14 +2,10 @@ #if !__TVOS__ && !MONOMAC -using System; using System.Drawing; using System.IO; -using Foundation; using MediaPlayer; -using ObjCRuntime; using UIKit; -using NUnit.Framework; using Xamarin.Utils; namespace MonoTouchFixtures.MediaPlayer { diff --git a/tests/monotouch-test/MediaPlayer/RemoteCommandCenterTest.cs b/tests/monotouch-test/MediaPlayer/RemoteCommandCenterTest.cs index 8df797c16c2e..7e05e6725ead 100644 --- a/tests/monotouch-test/MediaPlayer/RemoteCommandCenterTest.cs +++ b/tests/monotouch-test/MediaPlayer/RemoteCommandCenterTest.cs @@ -7,14 +7,10 @@ // Copyright 2013 Xamarin Inc. All rights reserved. // -using System; -using Foundation; using MediaPlayer; -using ObjCRuntime; #if !MONOMAC using UIKit; #endif -using NUnit.Framework; using Xamarin.Utils; namespace MonoTouchFixtures.MediaPlayer { diff --git a/tests/monotouch-test/MediaPlayer/SkipIntervalCommandTest.cs b/tests/monotouch-test/MediaPlayer/SkipIntervalCommandTest.cs index 5c3d04b5a048..a5ef7c302068 100644 --- a/tests/monotouch-test/MediaPlayer/SkipIntervalCommandTest.cs +++ b/tests/monotouch-test/MediaPlayer/SkipIntervalCommandTest.cs @@ -7,14 +7,10 @@ // Copyright 2013 Xamarin Inc. All rights reserved. // -using System; -using Foundation; using MediaPlayer; -using ObjCRuntime; #if !MONOMAC using UIKit; #endif -using NUnit.Framework; using Xamarin.Utils; namespace MonoTouchFixtures.MediaPlayer { diff --git a/tests/monotouch-test/MediaPlayer/VolumeViewTest.cs b/tests/monotouch-test/MediaPlayer/VolumeViewTest.cs index 1fdb281eb623..9976e6417061 100644 --- a/tests/monotouch-test/MediaPlayer/VolumeViewTest.cs +++ b/tests/monotouch-test/MediaPlayer/VolumeViewTest.cs @@ -2,12 +2,9 @@ #if !__TVOS__ && !MONOMAC -using System; using System.Drawing; using CoreGraphics; -using Foundation; using MediaPlayer; -using NUnit.Framework; namespace MonoTouchFixtures.MediaPlayer { diff --git a/tests/monotouch-test/MediaToolbox/AudioProcessingTapTest.cs b/tests/monotouch-test/MediaToolbox/AudioProcessingTapTest.cs index d28e508b5e98..685dde972379 100644 --- a/tests/monotouch-test/MediaToolbox/AudioProcessingTapTest.cs +++ b/tests/monotouch-test/MediaToolbox/AudioProcessingTapTest.cs @@ -7,13 +7,8 @@ // Copyright 2012 Xamarin Inc, All rights reserved. // -using System; -using System.Runtime.InteropServices; -using Foundation; -using ObjCRuntime; using MediaToolbox; using AudioToolbox; -using NUnit.Framework; using Xamarin.Utils; namespace MonoTouchFixtures.MediaToolbox { diff --git a/tests/monotouch-test/MediaToolbox/FormatNamesTest.cs b/tests/monotouch-test/MediaToolbox/FormatNamesTest.cs index 375e761518e0..94a49067027a 100644 --- a/tests/monotouch-test/MediaToolbox/FormatNamesTest.cs +++ b/tests/monotouch-test/MediaToolbox/FormatNamesTest.cs @@ -1,11 +1,8 @@ -using System; using CoreMedia; -using Foundation; #if !MONOMAC using UIKit; #endif using MediaToolbox; -using NUnit.Framework; namespace MonoTouchFixtures.MediaToolbox { diff --git a/tests/monotouch-test/MediaToolbox/ProfessionalVideoWorkflowTest.cs b/tests/monotouch-test/MediaToolbox/ProfessionalVideoWorkflowTest.cs index 3737b86862dc..a2116430ca42 100644 --- a/tests/monotouch-test/MediaToolbox/ProfessionalVideoWorkflowTest.cs +++ b/tests/monotouch-test/MediaToolbox/ProfessionalVideoWorkflowTest.cs @@ -1,9 +1,5 @@ #if MONOMAC -using System; -using Foundation; using MediaToolbox; -using ObjCRuntime; -using NUnit.Framework; using Xamarin.Utils; namespace MonoTouchFixtures.MediaToolbox { diff --git a/tests/monotouch-test/MessageUI/MailComposeViewControllerTest.cs b/tests/monotouch-test/MessageUI/MailComposeViewControllerTest.cs index 7196598522e6..44abbec9d81a 100644 --- a/tests/monotouch-test/MessageUI/MailComposeViewControllerTest.cs +++ b/tests/monotouch-test/MessageUI/MailComposeViewControllerTest.cs @@ -9,13 +9,10 @@ #if HAS_MESSAGEUI -using System; using System.Drawing; -using Foundation; using UIKit; using MessageUI; -using NUnit.Framework; namespace MonoTouchFixtures.MessageUI { diff --git a/tests/monotouch-test/MessageUI/MessageComposeViewControllerTest.cs b/tests/monotouch-test/MessageUI/MessageComposeViewControllerTest.cs index 3fa061fce41d..c163d0d0bf06 100644 --- a/tests/monotouch-test/MessageUI/MessageComposeViewControllerTest.cs +++ b/tests/monotouch-test/MessageUI/MessageComposeViewControllerTest.cs @@ -9,13 +9,10 @@ #if HAS_MESSAGE -using System; using System.Drawing; -using Foundation; using UIKit; using MessageUI; -using NUnit.Framework; namespace MonoTouchFixtures.MessageUI { diff --git a/tests/monotouch-test/Messages/MSMessageTest.cs b/tests/monotouch-test/Messages/MSMessageTest.cs index ec606e63a3b1..e28d0bef76ad 100644 --- a/tests/monotouch-test/Messages/MSMessageTest.cs +++ b/tests/monotouch-test/Messages/MSMessageTest.cs @@ -9,11 +9,7 @@ #if HAS_MESSAGE -using System; -using Foundation; using Messages; -using ObjCRuntime; -using NUnit.Framework; namespace MonoTouchFixtures.Messages { diff --git a/tests/monotouch-test/Metal/ClearValueTest.cs b/tests/monotouch-test/Metal/ClearValueTest.cs index f18a1f5bdf4f..3a2e234dba19 100644 --- a/tests/monotouch-test/Metal/ClearValueTest.cs +++ b/tests/monotouch-test/Metal/ClearValueTest.cs @@ -1,10 +1,6 @@ -using System; -using Foundation; using Metal; -using NUnit.Framework; - namespace MonoTouchFixtures.Metal { [TestFixture] [Preserve (AllMembers = true)] diff --git a/tests/monotouch-test/Metal/DeviceTest.cs b/tests/monotouch-test/Metal/DeviceTest.cs index 954ad56fd3fe..64b883c98df3 100644 --- a/tests/monotouch-test/Metal/DeviceTest.cs +++ b/tests/monotouch-test/Metal/DeviceTest.cs @@ -1,10 +1,5 @@ -using System; -using Foundation; using Metal; -using ObjCRuntime; - -using NUnit.Framework; namespace MonoTouchFixtures.Metal { diff --git a/tests/monotouch-test/Metal/HeapDescriptorTest.cs b/tests/monotouch-test/Metal/HeapDescriptorTest.cs index 1c5fe8b88923..62d2911e5d32 100644 --- a/tests/monotouch-test/Metal/HeapDescriptorTest.cs +++ b/tests/monotouch-test/Metal/HeapDescriptorTest.cs @@ -1,11 +1,6 @@ -using System; -using Foundation; -using ObjCRuntime; using Metal; -using NUnit.Framework; - namespace MonoTouchFixtures.Metal { [TestFixture] diff --git a/tests/monotouch-test/Metal/MTLArgumentDescriptorTest.cs b/tests/monotouch-test/Metal/MTLArgumentDescriptorTest.cs index a7e3752efde1..5866005ccebc 100644 --- a/tests/monotouch-test/Metal/MTLArgumentDescriptorTest.cs +++ b/tests/monotouch-test/Metal/MTLArgumentDescriptorTest.cs @@ -1,10 +1,6 @@ -using System; -using Foundation; using Metal; -using NUnit.Framework; - namespace MonoTouchFixtures.Metal { [TestFixture] diff --git a/tests/monotouch-test/Metal/MTLArgumentEncoderTest.cs b/tests/monotouch-test/Metal/MTLArgumentEncoderTest.cs index 0e58385b3aac..9bfb94ba8f9d 100644 --- a/tests/monotouch-test/Metal/MTLArgumentEncoderTest.cs +++ b/tests/monotouch-test/Metal/MTLArgumentEncoderTest.cs @@ -1,9 +1,5 @@ -using System; -using Foundation; using Metal; -using NUnit.Framework; - namespace MonoTouchFixtures.Metal { [TestFixture] diff --git a/tests/monotouch-test/Metal/MTLAttributeDescriptorTest.cs b/tests/monotouch-test/Metal/MTLAttributeDescriptorTest.cs index 6f6587ea6196..93489381f94c 100644 --- a/tests/monotouch-test/Metal/MTLAttributeDescriptorTest.cs +++ b/tests/monotouch-test/Metal/MTLAttributeDescriptorTest.cs @@ -1,10 +1,6 @@ -using System; -using Foundation; using Metal; -using NUnit.Framework; - namespace MonoTouchFixtures.Metal { [TestFixture] diff --git a/tests/monotouch-test/Metal/MTLAttributeTest.cs b/tests/monotouch-test/Metal/MTLAttributeTest.cs index cf59230ce8fc..08a32782ff16 100644 --- a/tests/monotouch-test/Metal/MTLAttributeTest.cs +++ b/tests/monotouch-test/Metal/MTLAttributeTest.cs @@ -1,10 +1,6 @@ -using System; -using Foundation; using Metal; -using NUnit.Framework; - namespace MonoTouchFixtures.Metal { [TestFixture] diff --git a/tests/monotouch-test/Metal/MTLBlitPassDescriptorTest.cs b/tests/monotouch-test/Metal/MTLBlitPassDescriptorTest.cs index 24282861ca3f..0b7dbd3178f3 100644 --- a/tests/monotouch-test/Metal/MTLBlitPassDescriptorTest.cs +++ b/tests/monotouch-test/Metal/MTLBlitPassDescriptorTest.cs @@ -1,13 +1,7 @@ #nullable enable -using System; - -using Foundation; using Metal; -using NUnit.Framework; - - namespace MonoTouchFixtures.Metal { [TestFixture] diff --git a/tests/monotouch-test/Metal/MTLBlitPassSampleBufferAttachmentDescriptorArrayTest.cs b/tests/monotouch-test/Metal/MTLBlitPassSampleBufferAttachmentDescriptorArrayTest.cs index 88824a3d78c3..4eb24ff551f9 100644 --- a/tests/monotouch-test/Metal/MTLBlitPassSampleBufferAttachmentDescriptorArrayTest.cs +++ b/tests/monotouch-test/Metal/MTLBlitPassSampleBufferAttachmentDescriptorArrayTest.cs @@ -1,12 +1,7 @@ #nullable enable -using System; - -using Foundation; using Metal; -using NUnit.Framework; - namespace MonoTouchFixtures.Metal { [TestFixture] diff --git a/tests/monotouch-test/Metal/MTLBlitPassSampleBufferAttachmentDescriptorTest.cs b/tests/monotouch-test/Metal/MTLBlitPassSampleBufferAttachmentDescriptorTest.cs index 9f051fed282a..8a3fcdb6bb0b 100644 --- a/tests/monotouch-test/Metal/MTLBlitPassSampleBufferAttachmentDescriptorTest.cs +++ b/tests/monotouch-test/Metal/MTLBlitPassSampleBufferAttachmentDescriptorTest.cs @@ -1,13 +1,7 @@ #nullable enable -using System; - -using Foundation; using Metal; -using NUnit.Framework; - - namespace MonoTouchFixtures.Metal { [TestFixture] diff --git a/tests/monotouch-test/Metal/MTLBufferLayoutDescriptorTest.cs b/tests/monotouch-test/Metal/MTLBufferLayoutDescriptorTest.cs index d9db606dfce8..4c04f8ffd026 100644 --- a/tests/monotouch-test/Metal/MTLBufferLayoutDescriptorTest.cs +++ b/tests/monotouch-test/Metal/MTLBufferLayoutDescriptorTest.cs @@ -1,10 +1,6 @@ -using System; -using Foundation; using Metal; -using NUnit.Framework; - namespace MonoTouchFixtures.Metal { [TestFixture] diff --git a/tests/monotouch-test/Metal/MTLCommandBufferTests.cs b/tests/monotouch-test/Metal/MTLCommandBufferTests.cs index 1e04b63be9b6..c98bff847783 100644 --- a/tests/monotouch-test/Metal/MTLCommandBufferTests.cs +++ b/tests/monotouch-test/Metal/MTLCommandBufferTests.cs @@ -1,15 +1,7 @@ -using System; using System.IO; -using System.Runtime.InteropServices; - -using CoreFoundation; -using Foundation; -using ObjCRuntime; using Metal; -using NUnit.Framework; - namespace MonoTouchFixtures.Metal { [Preserve (AllMembers = true)] public class MTLCommandBufferTests { diff --git a/tests/monotouch-test/Metal/MTLCommandQueueTests.cs b/tests/monotouch-test/Metal/MTLCommandQueueTests.cs index 7a0b88342089..5c713ea40c79 100644 --- a/tests/monotouch-test/Metal/MTLCommandQueueTests.cs +++ b/tests/monotouch-test/Metal/MTLCommandQueueTests.cs @@ -1,15 +1,7 @@ -using System; using System.IO; -using System.Runtime.InteropServices; - -using CoreFoundation; -using Foundation; -using ObjCRuntime; using Metal; -using NUnit.Framework; - namespace MonoTouchFixtures.Metal { [Preserve (AllMembers = true)] public class MTLCommandQueueTests { diff --git a/tests/monotouch-test/Metal/MTLComputeCommandEncoderTest.cs b/tests/monotouch-test/Metal/MTLComputeCommandEncoderTest.cs index 67e36559c42d..2543bd9b9eae 100644 --- a/tests/monotouch-test/Metal/MTLComputeCommandEncoderTest.cs +++ b/tests/monotouch-test/Metal/MTLComputeCommandEncoderTest.cs @@ -1,9 +1,5 @@ -using System; -using Foundation; using Metal; -using NUnit.Framework; - namespace MonoTouchFixtures.Metal { [TestFixture] diff --git a/tests/monotouch-test/Metal/MTLComputePassDescriptorTest.cs b/tests/monotouch-test/Metal/MTLComputePassDescriptorTest.cs index e51ff4e94a1d..916ff0f70cfe 100644 --- a/tests/monotouch-test/Metal/MTLComputePassDescriptorTest.cs +++ b/tests/monotouch-test/Metal/MTLComputePassDescriptorTest.cs @@ -1,12 +1,7 @@ #nullable enable -using System; - -using Foundation; using Metal; -using NUnit.Framework; - namespace MonoTouchFixtures.Metal { [TestFixture] diff --git a/tests/monotouch-test/Metal/MTLComputePassSampleBufferAttachmentDescriptorArrayTest.cs b/tests/monotouch-test/Metal/MTLComputePassSampleBufferAttachmentDescriptorArrayTest.cs index 844338f2b377..99c247c1185e 100644 --- a/tests/monotouch-test/Metal/MTLComputePassSampleBufferAttachmentDescriptorArrayTest.cs +++ b/tests/monotouch-test/Metal/MTLComputePassSampleBufferAttachmentDescriptorArrayTest.cs @@ -1,12 +1,7 @@ #nullable enable -using System; - -using Foundation; using Metal; -using NUnit.Framework; - namespace MonoTouchFixtures.Metal { [TestFixture] diff --git a/tests/monotouch-test/Metal/MTLComputePassSampleBufferAttachmentDescriptorTest.cs b/tests/monotouch-test/Metal/MTLComputePassSampleBufferAttachmentDescriptorTest.cs index 2f7fa5ab753c..494674003333 100644 --- a/tests/monotouch-test/Metal/MTLComputePassSampleBufferAttachmentDescriptorTest.cs +++ b/tests/monotouch-test/Metal/MTLComputePassSampleBufferAttachmentDescriptorTest.cs @@ -1,12 +1,7 @@ #nullable enable -using System; - -using Foundation; using Metal; -using NUnit.Framework; - namespace MonoTouchFixtures.Metal { [TestFixture] diff --git a/tests/monotouch-test/Metal/MTLCounterSampleBufferDescriptorTest.cs b/tests/monotouch-test/Metal/MTLCounterSampleBufferDescriptorTest.cs index 5785c9ae1a7b..058bb229b4cb 100644 --- a/tests/monotouch-test/Metal/MTLCounterSampleBufferDescriptorTest.cs +++ b/tests/monotouch-test/Metal/MTLCounterSampleBufferDescriptorTest.cs @@ -1,12 +1,7 @@ #nullable enable -using System; - -using Foundation; using Metal; -using NUnit.Framework; - namespace MonoTouchFixtures.Metal { [TestFixture] diff --git a/tests/monotouch-test/Metal/MTLDeviceTests.cs b/tests/monotouch-test/Metal/MTLDeviceTests.cs index edabc7a5ac65..f86a3ec056e4 100644 --- a/tests/monotouch-test/Metal/MTLDeviceTests.cs +++ b/tests/monotouch-test/Metal/MTLDeviceTests.cs @@ -1,17 +1,9 @@ #if MONOMAC || __IOS__ -using System; using System.IO; -using System.Runtime.InteropServices; - -using CoreFoundation; -using Foundation; -using ObjCRuntime; using Metal; -using NUnit.Framework; - namespace MonoTouchFixtures.Metal { [Preserve (AllMembers = true)] public class MTLDeviceTests { diff --git a/tests/monotouch-test/Metal/MTLFunctionConstantTest.cs b/tests/monotouch-test/Metal/MTLFunctionConstantTest.cs index 9cd1e6bcb78e..172198a08c57 100644 --- a/tests/monotouch-test/Metal/MTLFunctionConstantTest.cs +++ b/tests/monotouch-test/Metal/MTLFunctionConstantTest.cs @@ -1,10 +1,6 @@ -using System; -using Foundation; using Metal; -using NUnit.Framework; - namespace MonoTouchFixtures.Metal { [TestFixture] diff --git a/tests/monotouch-test/Metal/MTLIOCompressionContextTest.cs b/tests/monotouch-test/Metal/MTLIOCompressionContextTest.cs index 4dc6a42b4bb4..eb71a656f7b9 100644 --- a/tests/monotouch-test/Metal/MTLIOCompressionContextTest.cs +++ b/tests/monotouch-test/Metal/MTLIOCompressionContextTest.cs @@ -1,12 +1,8 @@ -using System; using System.IO; using System.Diagnostics; using System.Linq; -using Foundation; using Metal; -using NUnit.Framework; - namespace MonoTouchFixtures.Metal { [Preserve (AllMembers = true)] public class MTLIOCompressionContextTest { diff --git a/tests/monotouch-test/Metal/MTLIndirectCommandBufferDescriptorTest.cs b/tests/monotouch-test/Metal/MTLIndirectCommandBufferDescriptorTest.cs index 4e371c1d24f2..c063623d62a3 100644 --- a/tests/monotouch-test/Metal/MTLIndirectCommandBufferDescriptorTest.cs +++ b/tests/monotouch-test/Metal/MTLIndirectCommandBufferDescriptorTest.cs @@ -1,10 +1,6 @@ -using System; -using Foundation; using Metal; -using NUnit.Framework; - namespace MonoTouchFixtures.Metal { [TestFixture] diff --git a/tests/monotouch-test/Metal/MTLIntersectionFunctionTableDescriptorTest.cs b/tests/monotouch-test/Metal/MTLIntersectionFunctionTableDescriptorTest.cs index 6f34d82be493..a0b33b019fe4 100644 --- a/tests/monotouch-test/Metal/MTLIntersectionFunctionTableDescriptorTest.cs +++ b/tests/monotouch-test/Metal/MTLIntersectionFunctionTableDescriptorTest.cs @@ -1,13 +1,8 @@ #if !__TVOS__ #nullable enable -using System; - -using Foundation; using Metal; -using NUnit.Framework; - namespace MonoTouchFixtures.Metal { [TestFixture] diff --git a/tests/monotouch-test/Metal/MTLIntersectionFunctionTableTests.cs b/tests/monotouch-test/Metal/MTLIntersectionFunctionTableTests.cs index 7a8acec2de67..ab19f1f3e6e9 100644 --- a/tests/monotouch-test/Metal/MTLIntersectionFunctionTableTests.cs +++ b/tests/monotouch-test/Metal/MTLIntersectionFunctionTableTests.cs @@ -1,11 +1,7 @@ #if !__TVOS__ -using System; -using Foundation; using Metal; -using NUnit.Framework; - namespace MonoTouchFixtures.Metal { [TestFixture] diff --git a/tests/monotouch-test/Metal/MTLLinkedFunctionsTest.cs b/tests/monotouch-test/Metal/MTLLinkedFunctionsTest.cs index 5e835699a3a1..3f80ca6fd8f1 100644 --- a/tests/monotouch-test/Metal/MTLLinkedFunctionsTest.cs +++ b/tests/monotouch-test/Metal/MTLLinkedFunctionsTest.cs @@ -1,12 +1,7 @@ #nullable enable -using System; - -using Foundation; using Metal; -using NUnit.Framework; - namespace MonoTouchFixtures.Metal { [TestFixture] diff --git a/tests/monotouch-test/Metal/MTLPipelineBufferDescriptorTests.cs b/tests/monotouch-test/Metal/MTLPipelineBufferDescriptorTests.cs index 467326597476..344212874705 100644 --- a/tests/monotouch-test/Metal/MTLPipelineBufferDescriptorTests.cs +++ b/tests/monotouch-test/Metal/MTLPipelineBufferDescriptorTests.cs @@ -1,10 +1,6 @@ -using System; -using Foundation; using Metal; -using NUnit.Framework; - namespace MonoTouchFixtures.Metal { [TestFixture] diff --git a/tests/monotouch-test/Metal/MTLPointerTypeTests.cs b/tests/monotouch-test/Metal/MTLPointerTypeTests.cs index ca6107a27592..f169c7d9df22 100644 --- a/tests/monotouch-test/Metal/MTLPointerTypeTests.cs +++ b/tests/monotouch-test/Metal/MTLPointerTypeTests.cs @@ -1,10 +1,6 @@ -using System; -using Foundation; using Metal; -using NUnit.Framework; - namespace MonoTouchFixtures.Metal { [TestFixture] diff --git a/tests/monotouch-test/Metal/MTLRasterizationRateLayerDescriptorTest.cs b/tests/monotouch-test/Metal/MTLRasterizationRateLayerDescriptorTest.cs index f4c2e7dba6a7..a61662be522e 100644 --- a/tests/monotouch-test/Metal/MTLRasterizationRateLayerDescriptorTest.cs +++ b/tests/monotouch-test/Metal/MTLRasterizationRateLayerDescriptorTest.cs @@ -1,10 +1,6 @@ -using System; -using Foundation; using Metal; -using NUnit.Framework; - namespace MonoTouchFixtures.Metal { [TestFixture] diff --git a/tests/monotouch-test/Metal/MTLRasterizationRateMapDescriptorTest.cs b/tests/monotouch-test/Metal/MTLRasterizationRateMapDescriptorTest.cs index 4b90caff06ae..b021a2d293d2 100644 --- a/tests/monotouch-test/Metal/MTLRasterizationRateMapDescriptorTest.cs +++ b/tests/monotouch-test/Metal/MTLRasterizationRateMapDescriptorTest.cs @@ -1,9 +1,6 @@ #if __IOS__ || __MACOS__ -using Foundation; using Metal; -using NUnit.Framework; - namespace MonoTouchFixtures.Metal { [TestFixture] diff --git a/tests/monotouch-test/Metal/MTLRenderPassSampleBufferAttachmentDescriptorArrayTest.cs b/tests/monotouch-test/Metal/MTLRenderPassSampleBufferAttachmentDescriptorArrayTest.cs index 89d60262558e..537ba2f546f1 100644 --- a/tests/monotouch-test/Metal/MTLRenderPassSampleBufferAttachmentDescriptorArrayTest.cs +++ b/tests/monotouch-test/Metal/MTLRenderPassSampleBufferAttachmentDescriptorArrayTest.cs @@ -1,12 +1,7 @@ #nullable enable -using System; - -using Foundation; using Metal; -using NUnit.Framework; - namespace MonoTouchFixtures.Metal { [TestFixture] diff --git a/tests/monotouch-test/Metal/MTLRenderPassSampleBufferAttachmentDescriptorTest.cs b/tests/monotouch-test/Metal/MTLRenderPassSampleBufferAttachmentDescriptorTest.cs index bb14f4bb273c..aab2b431f158 100644 --- a/tests/monotouch-test/Metal/MTLRenderPassSampleBufferAttachmentDescriptorTest.cs +++ b/tests/monotouch-test/Metal/MTLRenderPassSampleBufferAttachmentDescriptorTest.cs @@ -1,12 +1,7 @@ #nullable enable -using System; - -using Foundation; using Metal; -using NUnit.Framework; - namespace MonoTouchFixtures.Metal { [TestFixture] diff --git a/tests/monotouch-test/Metal/MTLRenderPipelineDescriptorTest.cs b/tests/monotouch-test/Metal/MTLRenderPipelineDescriptorTest.cs index c7fff72c00b5..afc77f4fe416 100644 --- a/tests/monotouch-test/Metal/MTLRenderPipelineDescriptorTest.cs +++ b/tests/monotouch-test/Metal/MTLRenderPipelineDescriptorTest.cs @@ -1,8 +1,5 @@ -using Foundation; using Metal; -using NUnit.Framework; - namespace MonoTouchFixtures.Metal { [TestFixture] diff --git a/tests/monotouch-test/Metal/MTLResidencySetTests.cs b/tests/monotouch-test/Metal/MTLResidencySetTests.cs index 8f8967ef11b4..bd04944223b2 100644 --- a/tests/monotouch-test/Metal/MTLResidencySetTests.cs +++ b/tests/monotouch-test/Metal/MTLResidencySetTests.cs @@ -1,15 +1,7 @@ -using System; using System.IO; -using System.Runtime.InteropServices; - -using CoreFoundation; -using Foundation; -using ObjCRuntime; using Metal; -using NUnit.Framework; - namespace MonoTouchFixtures.Metal { [Preserve (AllMembers = true)] public class MTLResidencySetTests { diff --git a/tests/monotouch-test/Metal/MTLResourceStatePassDescriptorTest.cs b/tests/monotouch-test/Metal/MTLResourceStatePassDescriptorTest.cs index e2f6f2cc3d8a..6199ce47045d 100644 --- a/tests/monotouch-test/Metal/MTLResourceStatePassDescriptorTest.cs +++ b/tests/monotouch-test/Metal/MTLResourceStatePassDescriptorTest.cs @@ -1,13 +1,8 @@ #if !__TVOS__ #nullable enable -using System; - -using Foundation; using Metal; -using NUnit.Framework; - namespace MonoTouchFixtures.Metal { [TestFixture] diff --git a/tests/monotouch-test/Metal/MTLResourceStatePassSampleBufferAttachmentDescriptorArrayTest.cs b/tests/monotouch-test/Metal/MTLResourceStatePassSampleBufferAttachmentDescriptorArrayTest.cs index 2f44b1c2486f..21cbdcf79093 100644 --- a/tests/monotouch-test/Metal/MTLResourceStatePassSampleBufferAttachmentDescriptorArrayTest.cs +++ b/tests/monotouch-test/Metal/MTLResourceStatePassSampleBufferAttachmentDescriptorArrayTest.cs @@ -1,13 +1,8 @@ #if !__TVOS__ #nullable enable -using System; - -using Foundation; using Metal; -using NUnit.Framework; - namespace MonoTouchFixtures.Metal { [TestFixture] diff --git a/tests/monotouch-test/Metal/MTLResourceStatePassSampleBufferAttachmentDescriptorTest.cs b/tests/monotouch-test/Metal/MTLResourceStatePassSampleBufferAttachmentDescriptorTest.cs index fdcea2735b15..0c7f8dae5b74 100644 --- a/tests/monotouch-test/Metal/MTLResourceStatePassSampleBufferAttachmentDescriptorTest.cs +++ b/tests/monotouch-test/Metal/MTLResourceStatePassSampleBufferAttachmentDescriptorTest.cs @@ -1,13 +1,8 @@ #if !__TVOS__ #nullable enable -using System; - -using Foundation; using Metal; -using NUnit.Framework; - namespace MonoTouchFixtures.Metal { [TestFixture] diff --git a/tests/monotouch-test/Metal/MTLSharedEventListenerTest.cs b/tests/monotouch-test/Metal/MTLSharedEventListenerTest.cs index c64f30b0dbb7..c7fdaff66fc6 100644 --- a/tests/monotouch-test/Metal/MTLSharedEventListenerTest.cs +++ b/tests/monotouch-test/Metal/MTLSharedEventListenerTest.cs @@ -1,11 +1,6 @@ -using System; -using CoreFoundation; -using Foundation; using Metal; -using NUnit.Framework; - namespace MonoTouchFixtures.Metal { [TestFixture] diff --git a/tests/monotouch-test/Metal/MTLStageInRegionIndirectArgumentsTest.cs b/tests/monotouch-test/Metal/MTLStageInRegionIndirectArgumentsTest.cs index 9f4bf81c3247..9c46eff30097 100644 --- a/tests/monotouch-test/Metal/MTLStageInRegionIndirectArgumentsTest.cs +++ b/tests/monotouch-test/Metal/MTLStageInRegionIndirectArgumentsTest.cs @@ -1,10 +1,6 @@ -using System; -using Foundation; using Metal; -using NUnit.Framework; - namespace MonoTouchFixtures.Metal { [TestFixture] diff --git a/tests/monotouch-test/Metal/MTLStageInputOutputDescriptorTest.cs b/tests/monotouch-test/Metal/MTLStageInputOutputDescriptorTest.cs index a882f284b779..b78d6bef69b6 100644 --- a/tests/monotouch-test/Metal/MTLStageInputOutputDescriptorTest.cs +++ b/tests/monotouch-test/Metal/MTLStageInputOutputDescriptorTest.cs @@ -1,10 +1,6 @@ -using System; -using Foundation; using Metal; -using NUnit.Framework; - namespace MonoTouchFixtures.Metal { [TestFixture] diff --git a/tests/monotouch-test/Metal/MTLTextureReferenceType.cs b/tests/monotouch-test/Metal/MTLTextureReferenceType.cs index 583ca3b93773..0cd11f8ce32b 100644 --- a/tests/monotouch-test/Metal/MTLTextureReferenceType.cs +++ b/tests/monotouch-test/Metal/MTLTextureReferenceType.cs @@ -1,10 +1,6 @@ -using System; -using Foundation; using Metal; -using NUnit.Framework; - namespace MonoTouchFixtures.Metal { [TestFixture] diff --git a/tests/monotouch-test/Metal/MTLTileRenderPipelineColorAttachmentDescriptorTests.cs b/tests/monotouch-test/Metal/MTLTileRenderPipelineColorAttachmentDescriptorTests.cs index 8f96276dd7b1..7f3f30627140 100644 --- a/tests/monotouch-test/Metal/MTLTileRenderPipelineColorAttachmentDescriptorTests.cs +++ b/tests/monotouch-test/Metal/MTLTileRenderPipelineColorAttachmentDescriptorTests.cs @@ -1,12 +1,7 @@ #if __IOS__ -using System; - -using Foundation; using Metal; -using ObjCRuntime; -using NUnit.Framework; using Xamarin.Utils; namespace MonoTouchFixtures.Metal { diff --git a/tests/monotouch-test/Metal/MTLTileRenderPipelineDescriptor.cs b/tests/monotouch-test/Metal/MTLTileRenderPipelineDescriptor.cs index e6c709787db2..82d816e4204a 100644 --- a/tests/monotouch-test/Metal/MTLTileRenderPipelineDescriptor.cs +++ b/tests/monotouch-test/Metal/MTLTileRenderPipelineDescriptor.cs @@ -1,12 +1,7 @@ #if __IOS__ -using System; - -using Foundation; using Metal; -using ObjCRuntime; -using NUnit.Framework; using Xamarin.Utils; namespace MonoTouchFixtures.Metal { diff --git a/tests/monotouch-test/Metal/MTLTileRenderPipelineDescriptorTest.cs b/tests/monotouch-test/Metal/MTLTileRenderPipelineDescriptorTest.cs index 8abb7fc64475..7e2e39f211cd 100644 --- a/tests/monotouch-test/Metal/MTLTileRenderPipelineDescriptorTest.cs +++ b/tests/monotouch-test/Metal/MTLTileRenderPipelineDescriptorTest.cs @@ -1,13 +1,8 @@ #if !__TVOS__ #nullable enable -using System; - -using Foundation; using Metal; -using NUnit.Framework; - namespace MonoTouchFixtures.Metal { [TestFixture] diff --git a/tests/monotouch-test/Metal/MTLVisibleFunctionTableDescriptorTest.cs b/tests/monotouch-test/Metal/MTLVisibleFunctionTableDescriptorTest.cs index d295cd7bc34f..83673445e6db 100644 --- a/tests/monotouch-test/Metal/MTLVisibleFunctionTableDescriptorTest.cs +++ b/tests/monotouch-test/Metal/MTLVisibleFunctionTableDescriptorTest.cs @@ -1,13 +1,8 @@ #if !__TVOS__ #nullable enable -using System; - -using Foundation; using Metal; -using NUnit.Framework; - namespace MonoTouchFixtures.Metal { [TestFixture] diff --git a/tests/monotouch-test/Metal/StructTest.cs b/tests/monotouch-test/Metal/StructTest.cs index 609ad8d07178..d8616ce784bb 100644 --- a/tests/monotouch-test/Metal/StructTest.cs +++ b/tests/monotouch-test/Metal/StructTest.cs @@ -1,11 +1,6 @@ -using System; -using System.Runtime.InteropServices; -using Foundation; using Metal; -using NUnit.Framework; - namespace MonoTouchFixtures.Metal { [TestFixture] diff --git a/tests/monotouch-test/MetalPerformanceShaders/ImageScaleTest.cs b/tests/monotouch-test/MetalPerformanceShaders/ImageScaleTest.cs index 5b8298023f94..5324a5fdda76 100644 --- a/tests/monotouch-test/MetalPerformanceShaders/ImageScaleTest.cs +++ b/tests/monotouch-test/MetalPerformanceShaders/ImageScaleTest.cs @@ -1,12 +1,7 @@ -using System; -using Foundation; -using ObjCRuntime; using Metal; using MetalPerformanceShaders; -using NUnit.Framework; - namespace MonoTouchFixtures.MetalPerformanceShaders { [TestFixture] diff --git a/tests/monotouch-test/MetalPerformanceShaders/KernelTest.cs b/tests/monotouch-test/MetalPerformanceShaders/KernelTest.cs index 3e94780439b3..017f003de3a0 100644 --- a/tests/monotouch-test/MetalPerformanceShaders/KernelTest.cs +++ b/tests/monotouch-test/MetalPerformanceShaders/KernelTest.cs @@ -1,14 +1,8 @@ // Copyright 2015 Xamarin Inc. All rights reserved. -using System; -using Foundation; -using ObjCRuntime; - using Metal; using MetalPerformanceShaders; -using NUnit.Framework; - namespace MonoTouchFixtures.MetalPerformanceShaders { [TestFixture] diff --git a/tests/monotouch-test/MetalPerformanceShaders/MPSAccelerationStructureTests.cs b/tests/monotouch-test/MetalPerformanceShaders/MPSAccelerationStructureTests.cs index dc7d4de59f8a..67015f2a5bb3 100644 --- a/tests/monotouch-test/MetalPerformanceShaders/MPSAccelerationStructureTests.cs +++ b/tests/monotouch-test/MetalPerformanceShaders/MPSAccelerationStructureTests.cs @@ -8,15 +8,9 @@ // Copyright 2019 Microsoft Corporation. // -using System; -using System.Runtime.InteropServices; - -using Foundation; using Metal; using MetalPerformanceShaders; -using NUnit.Framework; - using CoreGraphics; namespace MonoTouchFixtures.MetalPerformanceShaders { diff --git a/tests/monotouch-test/MetalPerformanceShaders/MPSImageBatchTests.cs b/tests/monotouch-test/MetalPerformanceShaders/MPSImageBatchTests.cs index db4166f49487..47947512b1d5 100644 --- a/tests/monotouch-test/MetalPerformanceShaders/MPSImageBatchTests.cs +++ b/tests/monotouch-test/MetalPerformanceShaders/MPSImageBatchTests.cs @@ -8,14 +8,9 @@ // Copyright 2019 Microsoft Corporation. // -using System; - -using Foundation; using Metal; using MetalPerformanceShaders; -using NUnit.Framework; - namespace MonoTouchFixtures.MetalPerformanceShaders { [TestFixture] [Preserve (AllMembers = true)] diff --git a/tests/monotouch-test/MetalPerformanceShaders/MPSImageHistogramEqualizationTest.cs b/tests/monotouch-test/MetalPerformanceShaders/MPSImageHistogramEqualizationTest.cs index 7fa5642db628..f6fd02fcd681 100644 --- a/tests/monotouch-test/MetalPerformanceShaders/MPSImageHistogramEqualizationTest.cs +++ b/tests/monotouch-test/MetalPerformanceShaders/MPSImageHistogramEqualizationTest.cs @@ -1,14 +1,8 @@ // Copyright 2017 Microsoft Inc. All rights reserved. -using System; -using Foundation; -using ObjCRuntime; - using Metal; using MetalPerformanceShaders; -using NUnit.Framework; - namespace MonoTouchFixtures.MetalPerformanceShaders { [TestFixture] diff --git a/tests/monotouch-test/MetalPerformanceShaders/MPSImageHistogramSpecificationTest.cs b/tests/monotouch-test/MetalPerformanceShaders/MPSImageHistogramSpecificationTest.cs index 79176b7b2d4e..0676b6123536 100644 --- a/tests/monotouch-test/MetalPerformanceShaders/MPSImageHistogramSpecificationTest.cs +++ b/tests/monotouch-test/MetalPerformanceShaders/MPSImageHistogramSpecificationTest.cs @@ -1,14 +1,8 @@ // Copyright 2017 Microsoft Inc. All rights reserved. -using System; -using Foundation; -using ObjCRuntime; - using Metal; using MetalPerformanceShaders; -using NUnit.Framework; - namespace MonoTouchFixtures.MetalPerformanceShaders { [TestFixture] diff --git a/tests/monotouch-test/MetalPerformanceShaders/MPSImageHistogramTest.cs b/tests/monotouch-test/MetalPerformanceShaders/MPSImageHistogramTest.cs index 8cec33e05977..acb0d4213051 100644 --- a/tests/monotouch-test/MetalPerformanceShaders/MPSImageHistogramTest.cs +++ b/tests/monotouch-test/MetalPerformanceShaders/MPSImageHistogramTest.cs @@ -1,14 +1,8 @@ // Copyright 2017 Microsoft Inc. All rights reserved. -using System; -using Foundation; -using ObjCRuntime; - using Metal; using MetalPerformanceShaders; -using NUnit.Framework; - namespace MonoTouchFixtures.MetalPerformanceShaders { [TestFixture] diff --git a/tests/monotouch-test/MetalPerformanceShaders/MPSImageNormalizedHistogramTests.cs b/tests/monotouch-test/MetalPerformanceShaders/MPSImageNormalizedHistogramTests.cs index 003e4c861e0c..1c5acd7626e1 100644 --- a/tests/monotouch-test/MetalPerformanceShaders/MPSImageNormalizedHistogramTests.cs +++ b/tests/monotouch-test/MetalPerformanceShaders/MPSImageNormalizedHistogramTests.cs @@ -8,14 +8,9 @@ // Copyright 2019 Microsoft Corporation. // -using System; - -using Foundation; using Metal; using MetalPerformanceShaders; -using ObjCRuntime; -using NUnit.Framework; using Xamarin.Utils; namespace MonoTouchFixtures.MetalPerformanceShaders { diff --git a/tests/monotouch-test/MetalPerformanceShaders/MPSNDArrayDescriptorTest.cs b/tests/monotouch-test/MetalPerformanceShaders/MPSNDArrayDescriptorTest.cs index d2796170d860..5b3e59bebbc9 100644 --- a/tests/monotouch-test/MetalPerformanceShaders/MPSNDArrayDescriptorTest.cs +++ b/tests/monotouch-test/MetalPerformanceShaders/MPSNDArrayDescriptorTest.cs @@ -3,15 +3,11 @@ // #if HAS_METALPERFORMANCESHADERS -using System; using CoreGraphics; -using Foundation; using Metal; using MetalPerformanceShaders; -using NUnit.Framework; - namespace MonoTouchFixtures.MetalPerformanceShaders { [TestFixture] [Preserve (AllMembers = true)] diff --git a/tests/monotouch-test/MetalPerformanceShaders/MPSNDArrayIdentityTest.cs b/tests/monotouch-test/MetalPerformanceShaders/MPSNDArrayIdentityTest.cs index ab5ae3e23dc5..a1aa96e60106 100644 --- a/tests/monotouch-test/MetalPerformanceShaders/MPSNDArrayIdentityTest.cs +++ b/tests/monotouch-test/MetalPerformanceShaders/MPSNDArrayIdentityTest.cs @@ -3,14 +3,10 @@ // #if HAS_METALPERFORMANCESHADERS -using System; -using Foundation; using Metal; using MetalPerformanceShaders; -using NUnit.Framework; - namespace MonoTouchFixtures.MetalPerformanceShaders { [TestFixture] [Preserve (AllMembers = true)] diff --git a/tests/monotouch-test/MetalPerformanceShaders/MPSNDArrayOffsetsTest.cs b/tests/monotouch-test/MetalPerformanceShaders/MPSNDArrayOffsetsTest.cs index b9343e707873..4b5f6d0c6d2f 100644 --- a/tests/monotouch-test/MetalPerformanceShaders/MPSNDArrayOffsetsTest.cs +++ b/tests/monotouch-test/MetalPerformanceShaders/MPSNDArrayOffsetsTest.cs @@ -3,14 +3,10 @@ // #if HAS_METALPERFORMANCESHADERS -using System; -using Foundation; using Metal; using MetalPerformanceShaders; -using NUnit.Framework; - namespace MonoTouchFixtures.MetalPerformanceShaders { [TestFixture] [Preserve (AllMembers = true)] diff --git a/tests/monotouch-test/MetalPerformanceShaders/MPSNDArraySizesTest.cs b/tests/monotouch-test/MetalPerformanceShaders/MPSNDArraySizesTest.cs index 9351272d891a..cfa8108db528 100644 --- a/tests/monotouch-test/MetalPerformanceShaders/MPSNDArraySizesTest.cs +++ b/tests/monotouch-test/MetalPerformanceShaders/MPSNDArraySizesTest.cs @@ -3,14 +3,10 @@ // #if HAS_METALPERFORMANCESHADERS -using System; -using Foundation; using Metal; using MetalPerformanceShaders; -using NUnit.Framework; - namespace MonoTouchFixtures.MetalPerformanceShaders { [TestFixture] [Preserve (AllMembers = true)] diff --git a/tests/monotouch-test/MetalPerformanceShaders/MPSNDArrayTest.cs b/tests/monotouch-test/MetalPerformanceShaders/MPSNDArrayTest.cs index c05bccd5ea84..fefd2578c8aa 100644 --- a/tests/monotouch-test/MetalPerformanceShaders/MPSNDArrayTest.cs +++ b/tests/monotouch-test/MetalPerformanceShaders/MPSNDArrayTest.cs @@ -3,14 +3,10 @@ // #if HAS_METALPERFORMANCESHADERS -using System; -using Foundation; using Metal; using MetalPerformanceShaders; -using NUnit.Framework; - namespace MonoTouchFixtures.MetalPerformanceShaders { [TestFixture] [Preserve (AllMembers = true)] diff --git a/tests/monotouch-test/MetalPerformanceShaders/MPSStateBatchTests.cs b/tests/monotouch-test/MetalPerformanceShaders/MPSStateBatchTests.cs index f87e61b12495..95c0ac55a780 100644 --- a/tests/monotouch-test/MetalPerformanceShaders/MPSStateBatchTests.cs +++ b/tests/monotouch-test/MetalPerformanceShaders/MPSStateBatchTests.cs @@ -8,14 +8,9 @@ // Copyright 2019 Microsoft Corporation. // -using System; - -using Foundation; using Metal; using MetalPerformanceShaders; -using NUnit.Framework; - namespace MonoTouchFixtures.MetalPerformanceShaders { [TestFixture] [Preserve (AllMembers = true)] diff --git a/tests/monotouch-test/MetalPerformanceShaders/MPSStateResourceListTests.cs b/tests/monotouch-test/MetalPerformanceShaders/MPSStateResourceListTests.cs index 2a0d78f1d6dd..7839b738a065 100644 --- a/tests/monotouch-test/MetalPerformanceShaders/MPSStateResourceListTests.cs +++ b/tests/monotouch-test/MetalPerformanceShaders/MPSStateResourceListTests.cs @@ -8,14 +8,9 @@ // Copyright 2019 Microsoft Corporation. // -using System; - -using Foundation; using Metal; using MetalPerformanceShaders; -using NUnit.Framework; - namespace MonoTouchFixtures.MetalPerformanceShaders { [TestFixture] [Preserve (AllMembers = true)] diff --git a/tests/monotouch-test/MetalPerformanceShaders/MnistTest.cs b/tests/monotouch-test/MetalPerformanceShaders/MnistTest.cs index ab4811e906ff..57b5c05669fa 100644 --- a/tests/monotouch-test/MetalPerformanceShaders/MnistTest.cs +++ b/tests/monotouch-test/MetalPerformanceShaders/MnistTest.cs @@ -10,17 +10,11 @@ #if ENABLE_MNIST_TESTER -using System; -using System.Collections.Generic; using System.Threading; -using Foundation; using Metal; using MetalPerformanceShaders; using MetalPerformanceShadersGraph; -using ObjCRuntime; - -using NUnit.Framework; namespace MonoTouchFixtures.MetalPerformanceShadersGraph { [Preserve (AllMembers = true)] diff --git a/tests/monotouch-test/MetricKit/MetricManagerTest.cs b/tests/monotouch-test/MetricKit/MetricManagerTest.cs index ca25ac05d5f6..417214c51e5a 100644 --- a/tests/monotouch-test/MetricKit/MetricManagerTest.cs +++ b/tests/monotouch-test/MetricKit/MetricManagerTest.cs @@ -1,12 +1,6 @@ #if __IOS__ -using System; - -using CoreFoundation; -using Foundation; using MetricKit; -using ObjCRuntime; -using NUnit.Framework; namespace MonoTouchFixtures.MetricKit { diff --git a/tests/monotouch-test/MobileCoreServices/UTTypeTest.cs b/tests/monotouch-test/MobileCoreServices/UTTypeTest.cs index e2d57b7cdb61..3b0eef7a9a9e 100644 --- a/tests/monotouch-test/MobileCoreServices/UTTypeTest.cs +++ b/tests/monotouch-test/MobileCoreServices/UTTypeTest.cs @@ -7,12 +7,7 @@ // Copyright 2012, 2015 Xamarin Inc. All rights reserved. // -using System; - -using Foundation; using MobileCoreServices; -using ObjCRuntime; -using NUnit.Framework; namespace MonoTouchFixtures.MobileCoreServices { diff --git a/tests/monotouch-test/ModelIO/MDLAnimatedValueTypesTests.cs b/tests/monotouch-test/ModelIO/MDLAnimatedValueTypesTests.cs index cfaec0519eb7..f4eb784eac64 100644 --- a/tests/monotouch-test/ModelIO/MDLAnimatedValueTypesTests.cs +++ b/tests/monotouch-test/ModelIO/MDLAnimatedValueTypesTests.cs @@ -8,10 +8,8 @@ // Copyright 2017 Xamarin Inc. All rights reserved. // -using System; using System.Linq; using CoreGraphics; -using Foundation; #if !MONOMAC using UIKit; #endif @@ -19,9 +17,6 @@ using MultipeerConnectivity; #endif using ModelIO; -using ObjCRuntime; -using NUnit.Framework; -using System.Runtime.InteropServices; using System.Numerics; using Vector2d = global::CoreGraphics.NVector2d; diff --git a/tests/monotouch-test/ModelIO/MDLAssetTest.cs b/tests/monotouch-test/ModelIO/MDLAssetTest.cs index c9cbc88a684c..4be8c9b44e09 100644 --- a/tests/monotouch-test/ModelIO/MDLAssetTest.cs +++ b/tests/monotouch-test/ModelIO/MDLAssetTest.cs @@ -7,9 +7,7 @@ // Copyright 2017 Microsoft Inc. // -using System; using CoreGraphics; -using Foundation; #if !MONOMAC using UIKit; #endif @@ -17,8 +15,6 @@ using MultipeerConnectivity; #endif using ModelIO; -using ObjCRuntime; -using NUnit.Framework; using System.Numerics; diff --git a/tests/monotouch-test/ModelIO/MDLCameraTest.cs b/tests/monotouch-test/ModelIO/MDLCameraTest.cs index 66444cb9a7ba..b732335b21e7 100644 --- a/tests/monotouch-test/ModelIO/MDLCameraTest.cs +++ b/tests/monotouch-test/ModelIO/MDLCameraTest.cs @@ -9,9 +9,7 @@ #if !MONOMAC -using System; using CoreGraphics; -using Foundation; #if !MONOMAC using UIKit; #endif @@ -19,7 +17,6 @@ using MultipeerConnectivity; #endif using ModelIO; -using ObjCRuntime; using MatrixFloat2x2 = global::CoreGraphics.NMatrix2; using MatrixFloat3x3 = global::CoreGraphics.NMatrix3; @@ -28,8 +25,6 @@ using Bindings.Test; -using NUnit.Framework; - namespace MonoTouchFixtures.ModelIO { [TestFixture] diff --git a/tests/monotouch-test/ModelIO/MDLLight.cs b/tests/monotouch-test/ModelIO/MDLLight.cs index 869407da7adb..c308bb00e66d 100644 --- a/tests/monotouch-test/ModelIO/MDLLight.cs +++ b/tests/monotouch-test/ModelIO/MDLLight.cs @@ -7,9 +7,7 @@ // Copyright 2015 Xamarin Inc. // -using System; using CoreGraphics; -using Foundation; #if !MONOMAC using UIKit; #endif @@ -17,8 +15,6 @@ using MultipeerConnectivity; #endif using ModelIO; -using ObjCRuntime; -using NUnit.Framework; using System.Numerics; diff --git a/tests/monotouch-test/ModelIO/MDLMaterialProperty.cs b/tests/monotouch-test/ModelIO/MDLMaterialProperty.cs index 222deffd86f6..7ce105d70243 100644 --- a/tests/monotouch-test/ModelIO/MDLMaterialProperty.cs +++ b/tests/monotouch-test/ModelIO/MDLMaterialProperty.cs @@ -7,9 +7,7 @@ // Copyright 2015 Xamarin Inc. // -using System; using CoreGraphics; -using Foundation; #if MONOMAC using AppKit; using UIColor = AppKit.NSColor; @@ -20,7 +18,6 @@ using MultipeerConnectivity; #endif using ModelIO; -using ObjCRuntime; using System.Numerics; using Matrix4 = global::System.Numerics.Matrix4x4; using MatrixFloat2x2 = global::CoreGraphics.NMatrix2; @@ -28,7 +25,6 @@ using MatrixFloat4x4 = global::CoreGraphics.NMatrix4; using VectorFloat3 = global::CoreGraphics.NVector3; using Bindings.Test; -using NUnit.Framework; namespace MonoTouchFixtures.ModelIO { diff --git a/tests/monotouch-test/ModelIO/MDLMesh.cs b/tests/monotouch-test/ModelIO/MDLMesh.cs index 046749493d23..11d003136acc 100644 --- a/tests/monotouch-test/ModelIO/MDLMesh.cs +++ b/tests/monotouch-test/ModelIO/MDLMesh.cs @@ -7,14 +7,10 @@ // Copyright 2015 Xamarin Inc. // -using System; -using Foundation; #if !__TVOS__ using MultipeerConnectivity; #endif using ModelIO; -using ObjCRuntime; -using NUnit.Framework; using Xamarin.Utils; using System.Numerics; diff --git a/tests/monotouch-test/ModelIO/MDLNoiseTexture.cs b/tests/monotouch-test/ModelIO/MDLNoiseTexture.cs index 93d0721b1d02..08f2b59c0403 100644 --- a/tests/monotouch-test/ModelIO/MDLNoiseTexture.cs +++ b/tests/monotouch-test/ModelIO/MDLNoiseTexture.cs @@ -7,11 +7,7 @@ // Copyright 2016 Microsoft // -using System; -using Foundation; using ModelIO; -using ObjCRuntime; -using NUnit.Framework; using System.Numerics; using Vector2i = global::CoreGraphics.NVector2i; diff --git a/tests/monotouch-test/ModelIO/MDLObject.cs b/tests/monotouch-test/ModelIO/MDLObject.cs index 87eafae99696..8aca264eb9da 100644 --- a/tests/monotouch-test/ModelIO/MDLObject.cs +++ b/tests/monotouch-test/ModelIO/MDLObject.cs @@ -7,16 +7,12 @@ // Copyright 2015 Xamarin Inc. // -using System; using CoreGraphics; -using Foundation; using ModelIO; -using ObjCRuntime; using SceneKit; #if !MONOMAC using UIKit; #endif -using NUnit.Framework; namespace MonoTouchFixtures.ModelIO { diff --git a/tests/monotouch-test/ModelIO/MDLStereoscopicCameraTest.cs b/tests/monotouch-test/ModelIO/MDLStereoscopicCameraTest.cs index 039313e19f0c..b1b58a72350c 100644 --- a/tests/monotouch-test/ModelIO/MDLStereoscopicCameraTest.cs +++ b/tests/monotouch-test/ModelIO/MDLStereoscopicCameraTest.cs @@ -9,9 +9,7 @@ #if !MONOMAC -using System; using CoreGraphics; -using Foundation; #if !MONOMAC using UIKit; #endif @@ -19,7 +17,6 @@ using MultipeerConnectivity; #endif using ModelIO; -using ObjCRuntime; using MatrixFloat2x2 = global::CoreGraphics.NMatrix2; using MatrixFloat3x3 = global::CoreGraphics.NMatrix3; @@ -27,7 +24,6 @@ using VectorFloat3 = global::CoreGraphics.NVector3; using Matrix4 = global::System.Numerics.Matrix4x4; using Bindings.Test; -using NUnit.Framework; namespace MonoTouchFixtures.ModelIO { [TestFixture] diff --git a/tests/monotouch-test/ModelIO/MDLTexture.cs b/tests/monotouch-test/ModelIO/MDLTexture.cs index 1224f75b5940..6299fa3e7bb5 100644 --- a/tests/monotouch-test/ModelIO/MDLTexture.cs +++ b/tests/monotouch-test/ModelIO/MDLTexture.cs @@ -7,14 +7,10 @@ // Copyright 2015 Xamarin Inc. // -using System; -using Foundation; #if !__TVOS__ using MultipeerConnectivity; #endif using ModelIO; -using ObjCRuntime; -using NUnit.Framework; using System.Numerics; using Vector2i = global::CoreGraphics.NVector2i; diff --git a/tests/monotouch-test/ModelIO/MDLTransform.cs b/tests/monotouch-test/ModelIO/MDLTransform.cs index 6fbbfc4b099d..a6fe464717e9 100644 --- a/tests/monotouch-test/ModelIO/MDLTransform.cs +++ b/tests/monotouch-test/ModelIO/MDLTransform.cs @@ -7,10 +7,7 @@ // Copyright 2015 Xamarin Inc. // -using System; - using CoreGraphics; -using Foundation; #if !MONOMAC using UIKit; #endif @@ -18,7 +15,6 @@ using MultipeerConnectivity; #endif using ModelIO; -using ObjCRuntime; using System.Numerics; using Matrix4 = global::System.Numerics.Matrix4x4; @@ -28,7 +24,6 @@ using VectorFloat3 = global::CoreGraphics.NVector3; using Bindings.Test; -using NUnit.Framework; namespace MonoTouchFixtures.ModelIO { diff --git a/tests/monotouch-test/ModelIO/MDLTransformComponentTest.cs b/tests/monotouch-test/ModelIO/MDLTransformComponentTest.cs index ef09293377ed..5c7c2b25013b 100644 --- a/tests/monotouch-test/ModelIO/MDLTransformComponentTest.cs +++ b/tests/monotouch-test/ModelIO/MDLTransformComponentTest.cs @@ -9,9 +9,7 @@ #if !MONOMAC -using System; using CoreGraphics; -using Foundation; #if !MONOMAC using UIKit; #endif @@ -19,14 +17,12 @@ using MultipeerConnectivity; #endif using ModelIO; -using ObjCRuntime; using System.Numerics; using Matrix4 = global::CoreGraphics.NMatrix4; using MatrixFloat4x4 = global::CoreGraphics.NMatrix4; using Bindings.Test; -using NUnit.Framework; namespace MonoTouchFixtures.ModelIO { diff --git a/tests/monotouch-test/ModelIO/MDLVertexAttribute.cs b/tests/monotouch-test/ModelIO/MDLVertexAttribute.cs index ebdbbb88368e..9cbfcfc5c750 100644 --- a/tests/monotouch-test/ModelIO/MDLVertexAttribute.cs +++ b/tests/monotouch-test/ModelIO/MDLVertexAttribute.cs @@ -7,8 +7,6 @@ // Copyright 2015 Xamarin Inc. // -using System; -using Foundation; #if !MONOMAC using UIKit; #endif @@ -16,8 +14,6 @@ using MultipeerConnectivity; #endif using ModelIO; -using ObjCRuntime; -using NUnit.Framework; using System.Numerics; diff --git a/tests/monotouch-test/ModelIO/MDLVoxelArrayTest.cs b/tests/monotouch-test/ModelIO/MDLVoxelArrayTest.cs index 7713493e90f2..df68c869ddcb 100644 --- a/tests/monotouch-test/ModelIO/MDLVoxelArrayTest.cs +++ b/tests/monotouch-test/ModelIO/MDLVoxelArrayTest.cs @@ -7,9 +7,7 @@ // Copyright 2017 Microsoft Inc. // -using System; using CoreGraphics; -using Foundation; #if !MONOMAC using UIKit; #endif @@ -17,8 +15,6 @@ using MultipeerConnectivity; #endif using ModelIO; -using ObjCRuntime; -using NUnit.Framework; using System.Numerics; using Vector4i = global::CoreGraphics.NVector4i; diff --git a/tests/monotouch-test/MonoMac/AssemblyTest.cs b/tests/monotouch-test/MonoMac/AssemblyTest.cs index e6988343333d..5b244f8b4659 100644 --- a/tests/monotouch-test/MonoMac/AssemblyTest.cs +++ b/tests/monotouch-test/MonoMac/AssemblyTest.cs @@ -8,10 +8,7 @@ // Copyright 2013 Xamarin Inc. All rights reserved. // -using System; using System.Reflection; -using Foundation; -using NUnit.Framework; namespace MonoMacFixtures { diff --git a/tests/monotouch-test/MonoMac/CBUUID.cs b/tests/monotouch-test/MonoMac/CBUUID.cs index 1b8ffd85397a..97451bb42ea0 100644 --- a/tests/monotouch-test/MonoMac/CBUUID.cs +++ b/tests/monotouch-test/MonoMac/CBUUID.cs @@ -8,13 +8,8 @@ // Copyright 2013 Xamarin, Inc. // -using System; - -using Foundation; using CoreBluetooth; -using ObjCRuntime; -using NUnit.Framework; using Xamarin.Mac.Tests; namespace MonoMacFixtures.CoreBluetooth { diff --git a/tests/monotouch-test/MultipeerConnectivity/PeerIDTest.cs b/tests/monotouch-test/MultipeerConnectivity/PeerIDTest.cs index 8ea3b1bdef4e..8056b18e62b0 100644 --- a/tests/monotouch-test/MultipeerConnectivity/PeerIDTest.cs +++ b/tests/monotouch-test/MultipeerConnectivity/PeerIDTest.cs @@ -9,11 +9,7 @@ #if !__TVOS__ -using System; -using Foundation; using MultipeerConnectivity; -using ObjCRuntime; -using NUnit.Framework; using Xamarin.Utils; namespace MonoTouchFixtures.MultipeerConnectivity { diff --git a/tests/monotouch-test/MultipeerConnectivity/SessionTest.cs b/tests/monotouch-test/MultipeerConnectivity/SessionTest.cs index d797a343ec4a..fc65473a8d74 100644 --- a/tests/monotouch-test/MultipeerConnectivity/SessionTest.cs +++ b/tests/monotouch-test/MultipeerConnectivity/SessionTest.cs @@ -9,15 +9,11 @@ #if !__TVOS__ -using System; -using Foundation; #if !MONOMAC using UIKit; #endif using MultipeerConnectivity; -using ObjCRuntime; using Security; -using NUnit.Framework; using MonoTouchFixtures.Security; using Xamarin.Utils; diff --git a/tests/monotouch-test/NativeTypesTest.cs b/tests/monotouch-test/NativeTypesTest.cs index 8a7e0f69cdd8..06f89bacb62e 100644 --- a/tests/monotouch-test/NativeTypesTest.cs +++ b/tests/monotouch-test/NativeTypesTest.cs @@ -7,15 +7,10 @@ // Copyright 2014 Xamarin Inc. All rights reserved. // -using System; using System.Globalization; -using Foundation; -using ObjCRuntime; using Security; -using NUnit.Framework; - using RectangleF = CoreGraphics.CGRect; using SizeF = CoreGraphics.CGSize; using PointF = CoreGraphics.CGPoint; diff --git a/tests/monotouch-test/NaturalLanguage/EmbeddingTest.cs b/tests/monotouch-test/NaturalLanguage/EmbeddingTest.cs index 9ecf3bfdbb52..1f8d62f75b31 100644 --- a/tests/monotouch-test/NaturalLanguage/EmbeddingTest.cs +++ b/tests/monotouch-test/NaturalLanguage/EmbeddingTest.cs @@ -4,11 +4,8 @@ // Copyright 2019 Microsoft Corp. All rights reserved. // -using System; using System.IO; -using Foundation; using NaturalLanguage; -using NUnit.Framework; namespace MonoTouchFixtures.NaturalLanguage { diff --git a/tests/monotouch-test/NaturalLanguage/GazetteerTest.cs b/tests/monotouch-test/NaturalLanguage/GazetteerTest.cs index ba84e9b1cad8..737ea21fab80 100644 --- a/tests/monotouch-test/NaturalLanguage/GazetteerTest.cs +++ b/tests/monotouch-test/NaturalLanguage/GazetteerTest.cs @@ -4,10 +4,7 @@ // Copyright 2019 Microsoft Corp. All rights reserved. // -using System; -using Foundation; using NaturalLanguage; -using NUnit.Framework; namespace MonoTouchFixtures.NaturalLanguage { diff --git a/tests/monotouch-test/NaturalLanguage/NLLanguageRecognizerTest.cs b/tests/monotouch-test/NaturalLanguage/NLLanguageRecognizerTest.cs index 5387b985a725..1cd9b0383764 100644 --- a/tests/monotouch-test/NaturalLanguage/NLLanguageRecognizerTest.cs +++ b/tests/monotouch-test/NaturalLanguage/NLLanguageRecognizerTest.cs @@ -7,11 +7,7 @@ // Copyright 2018 Microsoft Corp. All rights reserved. // -using System; -using System.Collections.Generic; -using Foundation; using NaturalLanguage; -using NUnit.Framework; namespace MonoTouchFixtures.NaturalLanguage { diff --git a/tests/monotouch-test/NaturalLanguage/NLTaggerTest.cs b/tests/monotouch-test/NaturalLanguage/NLTaggerTest.cs index aa0358910b18..5c2ebb3bbf4a 100644 --- a/tests/monotouch-test/NaturalLanguage/NLTaggerTest.cs +++ b/tests/monotouch-test/NaturalLanguage/NLTaggerTest.cs @@ -4,10 +4,7 @@ // Copyright 2018 Microsoft Corp. All rights reserved. // -using System; -using Foundation; using NaturalLanguage; -using NUnit.Framework; namespace MonoTouchFixtures.NaturalLanguage { diff --git a/tests/monotouch-test/NearbyInteraction/NIAlgorithmConvergenceStatusReasonValuesTest.cs b/tests/monotouch-test/NearbyInteraction/NIAlgorithmConvergenceStatusReasonValuesTest.cs index b4274ef81a43..4a08cb90971a 100644 --- a/tests/monotouch-test/NearbyInteraction/NIAlgorithmConvergenceStatusReasonValuesTest.cs +++ b/tests/monotouch-test/NearbyInteraction/NIAlgorithmConvergenceStatusReasonValuesTest.cs @@ -2,11 +2,7 @@ #if IOS || __MACCATALYST__ -using System; -using Foundation; -using ObjCRuntime; using NearbyInteraction; -using NUnit.Framework; using Xamarin.Utils; namespace MonoTouchFixtures.NearbyInteraction { diff --git a/tests/monotouch-test/NearbyInteraction/NINearbyObjectTest.cs b/tests/monotouch-test/NearbyInteraction/NINearbyObjectTest.cs index 53b984f12829..a994f0d468c2 100644 --- a/tests/monotouch-test/NearbyInteraction/NINearbyObjectTest.cs +++ b/tests/monotouch-test/NearbyInteraction/NINearbyObjectTest.cs @@ -2,11 +2,7 @@ #if __IOS__ -using System; -using Foundation; -using ObjCRuntime; using NearbyInteraction; -using NUnit.Framework; using Xamarin.Utils; using System.Numerics; diff --git a/tests/monotouch-test/Network/NSUrlTest.cs b/tests/monotouch-test/Network/NSUrlTest.cs index 973dddbc582d..c0e0c752fbca 100644 --- a/tests/monotouch-test/Network/NSUrlTest.cs +++ b/tests/monotouch-test/Network/NSUrlTest.cs @@ -1,8 +1,5 @@ -using Foundation; using Network; -using NUnit.Framework; - namespace MonoTouchFixtures.Network { [TestFixture] [Preserve (AllMembers = true)] diff --git a/tests/monotouch-test/Network/NWBrowserDescriptorTest.cs b/tests/monotouch-test/Network/NWBrowserDescriptorTest.cs index af21114a6a47..e5f7e3ed2805 100644 --- a/tests/monotouch-test/Network/NWBrowserDescriptorTest.cs +++ b/tests/monotouch-test/Network/NWBrowserDescriptorTest.cs @@ -1,9 +1,5 @@ -using System; -using Foundation; using Network; -using NUnit.Framework; - namespace MonoTouchFixtures.Network { [TestFixture] [Preserve (AllMembers = true)] diff --git a/tests/monotouch-test/Network/NWBrowserTest.cs b/tests/monotouch-test/Network/NWBrowserTest.cs index ffe130b2b31f..52a549b49ce0 100644 --- a/tests/monotouch-test/Network/NWBrowserTest.cs +++ b/tests/monotouch-test/Network/NWBrowserTest.cs @@ -1,13 +1,7 @@ -using System; -using System.Collections.Generic; using System.Threading; -using CoreFoundation; -using Foundation; using Network; -using NUnit.Framework; - namespace MonoTouchFixtures.Network { [TestFixture] diff --git a/tests/monotouch-test/Network/NWConnectionGroupTest.cs b/tests/monotouch-test/Network/NWConnectionGroupTest.cs index a7161c7c071c..8df1604f5714 100644 --- a/tests/monotouch-test/Network/NWConnectionGroupTest.cs +++ b/tests/monotouch-test/Network/NWConnectionGroupTest.cs @@ -1,11 +1,6 @@ -using System; -using CoreFoundation; -using Foundation; using Network; -using NUnit.Framework; - namespace MonoTouchFixtures.Network { diff --git a/tests/monotouch-test/Network/NWConnectionTest.cs b/tests/monotouch-test/Network/NWConnectionTest.cs index 67b306e420e2..833d526ebec9 100644 --- a/tests/monotouch-test/Network/NWConnectionTest.cs +++ b/tests/monotouch-test/Network/NWConnectionTest.cs @@ -1,14 +1,9 @@ -using System; using System.Threading; -using CoreFoundation; -using Foundation; using Network; -using NUnit.Framework; using MonoTests.System.Net.Http; - namespace MonoTouchFixtures.Network { [TestFixture] diff --git a/tests/monotouch-test/Network/NWEndpointTests.cs b/tests/monotouch-test/Network/NWEndpointTests.cs index 7739b3a06767..4f9102f468ae 100644 --- a/tests/monotouch-test/Network/NWEndpointTests.cs +++ b/tests/monotouch-test/Network/NWEndpointTests.cs @@ -1,8 +1,5 @@ -using Foundation; using Network; -using NUnit.Framework; - namespace MonoTouchFixtures.Network { [TestFixture] diff --git a/tests/monotouch-test/Network/NWEstablishmentReportTest.cs b/tests/monotouch-test/Network/NWEstablishmentReportTest.cs index 387bcd18653b..cf64ccd41594 100644 --- a/tests/monotouch-test/Network/NWEstablishmentReportTest.cs +++ b/tests/monotouch-test/Network/NWEstablishmentReportTest.cs @@ -1,14 +1,9 @@ -using System; using System.Threading; -using CoreFoundation; -using Foundation; using Network; -using NUnit.Framework; using MonoTests.System.Net.Http; - namespace MonoTouchFixtures.Network { [TestFixture] diff --git a/tests/monotouch-test/Network/NWFramerMessageTest.cs b/tests/monotouch-test/Network/NWFramerMessageTest.cs index a49e48c15bdd..bea1d4a102fa 100644 --- a/tests/monotouch-test/Network/NWFramerMessageTest.cs +++ b/tests/monotouch-test/Network/NWFramerMessageTest.cs @@ -1,11 +1,7 @@ -using System; using System.Text; -using Foundation; using Network; -using NUnit.Framework; - namespace MonoTouchFixtures.Network { [TestFixture] diff --git a/tests/monotouch-test/Network/NWIPProtocolMetadataTest.cs b/tests/monotouch-test/Network/NWIPProtocolMetadataTest.cs index bf86b987d0bf..c8de9cd4b645 100644 --- a/tests/monotouch-test/Network/NWIPProtocolMetadataTest.cs +++ b/tests/monotouch-test/Network/NWIPProtocolMetadataTest.cs @@ -1,10 +1,6 @@ -using System; -using Foundation; using Network; -using NUnit.Framework; - namespace MonoTouchFixtures.Network { [TestFixture] diff --git a/tests/monotouch-test/Network/NWListenerTest.cs b/tests/monotouch-test/Network/NWListenerTest.cs index 04219904c2f9..1b2e8547d933 100644 --- a/tests/monotouch-test/Network/NWListenerTest.cs +++ b/tests/monotouch-test/Network/NWListenerTest.cs @@ -1,10 +1,6 @@ -using System; -using Foundation; using Network; -using NUnit.Framework; - namespace MonoTouchFixtures.Network { [TestFixture] [Preserve (AllMembers = true)] diff --git a/tests/monotouch-test/Network/NWMulticastGroupTest.cs b/tests/monotouch-test/Network/NWMulticastGroupTest.cs index 7337099802c9..d64bc76340d2 100644 --- a/tests/monotouch-test/Network/NWMulticastGroupTest.cs +++ b/tests/monotouch-test/Network/NWMulticastGroupTest.cs @@ -1,11 +1,7 @@ -using System; using System.Threading; -using Foundation; using Network; -using NUnit.Framework; - namespace MonoTouchFixtures.Network { [TestFixture] diff --git a/tests/monotouch-test/Network/NWParametersTest.cs b/tests/monotouch-test/Network/NWParametersTest.cs index e2010989d747..b25f5636cd8f 100644 --- a/tests/monotouch-test/Network/NWParametersTest.cs +++ b/tests/monotouch-test/Network/NWParametersTest.cs @@ -1,12 +1,7 @@ -using System; -using System.Collections.Generic; using System.Threading; -using CoreFoundation; -using Foundation; using Network; -using NUnit.Framework; using MonoTests.System.Net.Http; namespace MonoTouchFixtures.Network { diff --git a/tests/monotouch-test/Network/NWPathMonitorTest.cs b/tests/monotouch-test/Network/NWPathMonitorTest.cs index f4b89da0e7ab..29d8dffa3ed8 100644 --- a/tests/monotouch-test/Network/NWPathMonitorTest.cs +++ b/tests/monotouch-test/Network/NWPathMonitorTest.cs @@ -1,12 +1,6 @@ -using System; using System.Threading; using Network; -using CoreFoundation; -using Foundation; - -using NUnit.Framework; - namespace monotouchtest.Network { [TestFixture] diff --git a/tests/monotouch-test/Network/NWPathTest.cs b/tests/monotouch-test/Network/NWPathTest.cs index 1ebd73d39563..e5724c6572f1 100644 --- a/tests/monotouch-test/Network/NWPathTest.cs +++ b/tests/monotouch-test/Network/NWPathTest.cs @@ -1,16 +1,9 @@ -using System; -using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; -using CoreFoundation; -using Foundation; using Network; -using ObjCRuntime; -using NUnit.Framework; using MonoTests.System.Net.Http; - namespace MonoTouchFixtures.Network { [TestFixture] diff --git a/tests/monotouch-test/Network/NWPrivacyContextTest.cs b/tests/monotouch-test/Network/NWPrivacyContextTest.cs index c1dd3ed26a23..b6bc87e196b8 100644 --- a/tests/monotouch-test/Network/NWPrivacyContextTest.cs +++ b/tests/monotouch-test/Network/NWPrivacyContextTest.cs @@ -1,10 +1,5 @@ -using System; using System.Threading; using Network; -using CoreFoundation; -using Foundation; - -using NUnit.Framework; #nullable enable diff --git a/tests/monotouch-test/Network/NWProtocolDefinitionTest.cs b/tests/monotouch-test/Network/NWProtocolDefinitionTest.cs index 2f82863ca759..c82062b2ed9b 100644 --- a/tests/monotouch-test/Network/NWProtocolDefinitionTest.cs +++ b/tests/monotouch-test/Network/NWProtocolDefinitionTest.cs @@ -1,8 +1,5 @@ -using Foundation; using Network; -using NUnit.Framework; - namespace MonoTouchFixtures.Network { [TestFixture] diff --git a/tests/monotouch-test/Network/NWProtocolIPOptionsTest.cs b/tests/monotouch-test/Network/NWProtocolIPOptionsTest.cs index f997cb625b29..29bcee78a625 100644 --- a/tests/monotouch-test/Network/NWProtocolIPOptionsTest.cs +++ b/tests/monotouch-test/Network/NWProtocolIPOptionsTest.cs @@ -1,14 +1,9 @@ -using System; using System.Threading; -using Foundation; using Network; -using CoreFoundation; -using NUnit.Framework; using MonoTests.System.Net.Http; - namespace MonoTouchFixtures.Network { [TestFixture] diff --git a/tests/monotouch-test/Network/NWProtocolMetadataTest.cs b/tests/monotouch-test/Network/NWProtocolMetadataTest.cs index 23a3dc4af99c..8b6580b6dd07 100644 --- a/tests/monotouch-test/Network/NWProtocolMetadataTest.cs +++ b/tests/monotouch-test/Network/NWProtocolMetadataTest.cs @@ -1,9 +1,5 @@ -using System; -using Foundation; using Network; -using NUnit.Framework; - namespace MonoTouchFixtures.Network { [TestFixture] diff --git a/tests/monotouch-test/Network/NWProtocolOptionsTest.cs b/tests/monotouch-test/Network/NWProtocolOptionsTest.cs index f7b3a2decba4..ac3389da19cd 100644 --- a/tests/monotouch-test/Network/NWProtocolOptionsTest.cs +++ b/tests/monotouch-test/Network/NWProtocolOptionsTest.cs @@ -1,8 +1,4 @@ -using System; -using Foundation; using Network; -using ObjCRuntime; -using NUnit.Framework; namespace MonoTouchFixtures.Network { diff --git a/tests/monotouch-test/Network/NWProtocolStackTest.cs b/tests/monotouch-test/Network/NWProtocolStackTest.cs index 1f6fc661f578..a7dc0008efe5 100644 --- a/tests/monotouch-test/Network/NWProtocolStackTest.cs +++ b/tests/monotouch-test/Network/NWProtocolStackTest.cs @@ -1,13 +1,7 @@ -using System; -using System.Collections.Generic; using System.Threading; -using CoreFoundation; -using Foundation; using Network; -using NUnit.Framework; - namespace MonoTouchFixtures.Network { [TestFixture] diff --git a/tests/monotouch-test/Network/NWProtocolTcpOptionsTest.cs b/tests/monotouch-test/Network/NWProtocolTcpOptionsTest.cs index ecf35c6bb9df..29061d48cfb4 100644 --- a/tests/monotouch-test/Network/NWProtocolTcpOptionsTest.cs +++ b/tests/monotouch-test/Network/NWProtocolTcpOptionsTest.cs @@ -1,9 +1,6 @@ -using System; -using Foundation; using Network; -using NUnit.Framework; using NUnit.Framework.Internal; namespace MonoTouchFixtures.Network { diff --git a/tests/monotouch-test/Network/NWProtocolTlsOptionsTest.cs b/tests/monotouch-test/Network/NWProtocolTlsOptionsTest.cs index e43bcc2aace6..4170ee48c57c 100644 --- a/tests/monotouch-test/Network/NWProtocolTlsOptionsTest.cs +++ b/tests/monotouch-test/Network/NWProtocolTlsOptionsTest.cs @@ -1,8 +1,5 @@ -using Foundation; using Network; -using NUnit.Framework; - namespace MonoTouchFixtures.Network { [TestFixture] diff --git a/tests/monotouch-test/Network/NWProtocolUdpOptionsTest.cs b/tests/monotouch-test/Network/NWProtocolUdpOptionsTest.cs index 97541b01d969..4e139975e005 100644 --- a/tests/monotouch-test/Network/NWProtocolUdpOptionsTest.cs +++ b/tests/monotouch-test/Network/NWProtocolUdpOptionsTest.cs @@ -1,8 +1,5 @@ -using Foundation; using Network; -using NUnit.Framework; - namespace MonoTouchFixtures.Network { [TestFixture] diff --git a/tests/monotouch-test/Network/NWProxyConfigTests.cs b/tests/monotouch-test/Network/NWProxyConfigTests.cs index 7113aea289c2..07850bcc02e4 100644 --- a/tests/monotouch-test/Network/NWProxyConfigTests.cs +++ b/tests/monotouch-test/Network/NWProxyConfigTests.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; -using Foundation; using Network; -using NUnit.Framework; - #nullable enable namespace MonoTouchFixtures.Network { diff --git a/tests/monotouch-test/Network/NWRelayHopTests.cs b/tests/monotouch-test/Network/NWRelayHopTests.cs index d09b6194ea11..28bf1aa80409 100644 --- a/tests/monotouch-test/Network/NWRelayHopTests.cs +++ b/tests/monotouch-test/Network/NWRelayHopTests.cs @@ -1,8 +1,5 @@ -using Foundation; using Network; -using NUnit.Framework; - #nullable enable namespace MonoTouchFixtures.Network { diff --git a/tests/monotouch-test/Network/NWResolutionReportTest.cs b/tests/monotouch-test/Network/NWResolutionReportTest.cs index d2a584351d8c..8b47ed5d579e 100644 --- a/tests/monotouch-test/Network/NWResolutionReportTest.cs +++ b/tests/monotouch-test/Network/NWResolutionReportTest.cs @@ -1,10 +1,6 @@ using System.Threading; -using Foundation; using Network; -using CoreFoundation; -using ObjCRuntime; using MonoTests.System.Net.Http; -using NUnit.Framework; #nullable enable diff --git a/tests/monotouch-test/Network/NWResolverConfigTest.cs b/tests/monotouch-test/Network/NWResolverConfigTest.cs index 924d3def4a34..591d153abd26 100644 --- a/tests/monotouch-test/Network/NWResolverConfigTest.cs +++ b/tests/monotouch-test/Network/NWResolverConfigTest.cs @@ -1,7 +1,4 @@ -using System; -using Foundation; using Network; -using NUnit.Framework; #nullable enable diff --git a/tests/monotouch-test/Network/NWTxtRecordTest.cs b/tests/monotouch-test/Network/NWTxtRecordTest.cs index 986cd817d3de..f7dfa43bc253 100644 --- a/tests/monotouch-test/Network/NWTxtRecordTest.cs +++ b/tests/monotouch-test/Network/NWTxtRecordTest.cs @@ -1,11 +1,7 @@ -using System.Collections.Generic; using System.Threading; -using Foundation; using Network; -using NUnit.Framework; - namespace MonoTouchFixtures.Network { [TestFixture] [Preserve (AllMembers = true)] diff --git a/tests/monotouch-test/Network/NWWebSocketMetadataTest.cs b/tests/monotouch-test/Network/NWWebSocketMetadataTest.cs index 7decceae0aa7..74d5fbced07e 100644 --- a/tests/monotouch-test/Network/NWWebSocketMetadataTest.cs +++ b/tests/monotouch-test/Network/NWWebSocketMetadataTest.cs @@ -1,11 +1,6 @@ -using System; -using CoreFoundation; -using Foundation; using Network; -using NUnit.Framework; - namespace MonoTouchFixtures.Network { [TestFixture] diff --git a/tests/monotouch-test/Network/NWWebSocketOptionsTest.cs b/tests/monotouch-test/Network/NWWebSocketOptionsTest.cs index 8eb6b711939a..17b6fd1ead03 100644 --- a/tests/monotouch-test/Network/NWWebSocketOptionsTest.cs +++ b/tests/monotouch-test/Network/NWWebSocketOptionsTest.cs @@ -1,11 +1,6 @@ -using System; -using CoreFoundation; -using Foundation; using Network; -using NUnit.Framework; - namespace MonoTouchFixtures.Network { [TestFixture] diff --git a/tests/monotouch-test/NetworkExtension/OnDemandTest.cs b/tests/monotouch-test/NetworkExtension/OnDemandTest.cs index 10bccec72ef1..3014521d83d0 100644 --- a/tests/monotouch-test/NetworkExtension/OnDemandTest.cs +++ b/tests/monotouch-test/NetworkExtension/OnDemandTest.cs @@ -9,11 +9,7 @@ #if !__TVOS__ -using System; -using Foundation; using NetworkExtension; -using ObjCRuntime; -using NUnit.Framework; using Xamarin.Utils; namespace MonoTouchFixtures.NetworkExtension { diff --git a/tests/monotouch-test/NetworkExtension/VpnManagerTest.cs b/tests/monotouch-test/NetworkExtension/VpnManagerTest.cs index aed306c35d49..15a836649a77 100644 --- a/tests/monotouch-test/NetworkExtension/VpnManagerTest.cs +++ b/tests/monotouch-test/NetworkExtension/VpnManagerTest.cs @@ -9,11 +9,7 @@ #if !__TVOS__ -using System; -using Foundation; using NetworkExtension; -using ObjCRuntime; -using NUnit.Framework; using Xamarin.Utils; namespace MonoTouchFixtures.NetworkExtension { diff --git a/tests/monotouch-test/ObjCRuntime/BlocksTest.cs b/tests/monotouch-test/ObjCRuntime/BlocksTest.cs index 5bb6538897e3..79ecaa3cbf66 100644 --- a/tests/monotouch-test/ObjCRuntime/BlocksTest.cs +++ b/tests/monotouch-test/ObjCRuntime/BlocksTest.cs @@ -7,14 +7,7 @@ // Copyright 2015 Xamarin Inc. All rights reserved. // -using System; -using System.Collections.Generic; using System.Reflection; -using System.Runtime.InteropServices; - -using Foundation; -using ObjCRuntime; -using NUnit.Framework; namespace MonoTouchFixtures.ObjCRuntime { diff --git a/tests/monotouch-test/ObjCRuntime/CategoryTest.cs b/tests/monotouch-test/ObjCRuntime/CategoryTest.cs index 292627c8af04..0194d5cac4da 100644 --- a/tests/monotouch-test/ObjCRuntime/CategoryTest.cs +++ b/tests/monotouch-test/ObjCRuntime/CategoryTest.cs @@ -1,17 +1,12 @@ -using System; -using System.Collections.Generic; using System.Drawing; using System.Linq; -using System.Runtime.InteropServices; using System.Threading; -using Foundation; #if !MONOMAC using UIKit; using NativeException = ObjCRuntime.ObjCException; #endif using Bindings.Test; -using ObjCRuntime; #if !__TVOS__ using MapKit; #endif @@ -19,7 +14,6 @@ using CoreGraphics; using CoreLocation; using PlatformException = ObjCRuntime.RuntimeException; -using NUnit.Framework; using RectangleF = CoreGraphics.CGRect; using SizeF = CoreGraphics.CGSize; diff --git a/tests/monotouch-test/ObjCRuntime/ClassTest.classlist.cs b/tests/monotouch-test/ObjCRuntime/ClassTest.classlist.cs index 3677af4f0394..8f7e4a38bdc7 100644 --- a/tests/monotouch-test/ObjCRuntime/ClassTest.classlist.cs +++ b/tests/monotouch-test/ObjCRuntime/ClassTest.classlist.cs @@ -1,4 +1,3 @@ -using Foundation; class BUG33981_0 : NSObject { } class BUG33981_1 : NSObject { } diff --git a/tests/monotouch-test/ObjCRuntime/ClassTest.cs b/tests/monotouch-test/ObjCRuntime/ClassTest.cs index dbb23f8fdb93..2c61b9da7782 100644 --- a/tests/monotouch-test/ObjCRuntime/ClassTest.cs +++ b/tests/monotouch-test/ObjCRuntime/ClassTest.cs @@ -7,17 +7,10 @@ // Copyright 2012 Xamarin Inc. All rights reserved. // -using System; -using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Reflection; -using System.Runtime.InteropServices; using System.Threading; -using Foundation; -using ObjCRuntime; -using NUnit.Framework; - namespace MonoTouchFixtures.ObjCRuntime { [TestFixture] diff --git a/tests/monotouch-test/ObjCRuntime/DelegateAndDataSourceTest.cs b/tests/monotouch-test/ObjCRuntime/DelegateAndDataSourceTest.cs index 09614188aca9..c0c08f4355cd 100644 --- a/tests/monotouch-test/ObjCRuntime/DelegateAndDataSourceTest.cs +++ b/tests/monotouch-test/ObjCRuntime/DelegateAndDataSourceTest.cs @@ -1,15 +1,10 @@ #if __MACOS__ -using System; -using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Linq; using System.Reflection; -using NUnit.Framework; using System.Runtime.CompilerServices; -using Foundation; using AppKit; -using ObjCRuntime; namespace Xamarin.Mac.Tests { static class TypeExtension { diff --git a/tests/monotouch-test/ObjCRuntime/DisposableObjectTest.cs b/tests/monotouch-test/ObjCRuntime/DisposableObjectTest.cs index 69a79391c2e7..bcc8dd3926e1 100644 --- a/tests/monotouch-test/ObjCRuntime/DisposableObjectTest.cs +++ b/tests/monotouch-test/ObjCRuntime/DisposableObjectTest.cs @@ -1,9 +1,3 @@ -using System; - -using Foundation; -using ObjCRuntime; - -using NUnit.Framework; namespace MonoTouchFixtures.ObjCRuntime { [TestFixture] diff --git a/tests/monotouch-test/ObjCRuntime/DlfcnTest.cs b/tests/monotouch-test/ObjCRuntime/DlfcnTest.cs index 2176e323b685..aeda262d8b76 100644 --- a/tests/monotouch-test/ObjCRuntime/DlfcnTest.cs +++ b/tests/monotouch-test/ObjCRuntime/DlfcnTest.cs @@ -7,11 +7,6 @@ // Copyright 2012 Xamarin Inc. All rights reserved. // -using System; -using Foundation; -using ObjCRuntime; -using NUnit.Framework; - namespace MonoTouchFixtures.ObjCRuntime { [TestFixture] diff --git a/tests/monotouch-test/ObjCRuntime/EveryFrameworkSmokeTest.cs b/tests/monotouch-test/ObjCRuntime/EveryFrameworkSmokeTest.cs index f620fda96e14..33cfce365583 100644 --- a/tests/monotouch-test/ObjCRuntime/EveryFrameworkSmokeTest.cs +++ b/tests/monotouch-test/ObjCRuntime/EveryFrameworkSmokeTest.cs @@ -1,16 +1,10 @@ #if __MACOS__ -using System; -using System.Collections.Generic; using System.IO; using System.Linq; using System.Reflection; using System.Runtime.CompilerServices; -using NUnit.Framework; - using AppKit; -using Foundation; -using ObjCRuntime; namespace Xamarin.Mac.Tests { [TestFixture] diff --git a/tests/monotouch-test/ObjCRuntime/ExceptionsTest.cs b/tests/monotouch-test/ObjCRuntime/ExceptionsTest.cs index 1f7495ce0e3e..d6e7226db2be 100644 --- a/tests/monotouch-test/ObjCRuntime/ExceptionsTest.cs +++ b/tests/monotouch-test/ObjCRuntime/ExceptionsTest.cs @@ -1,18 +1,11 @@ -using System; -using System.Collections.Generic; using System.Diagnostics; -using System.Runtime.InteropServices; using System.Threading; -using Foundation; -using ObjCRuntime; #if !MONOMAC using UIKit; #endif using Bindings.Test; -using NUnit.Framework; - namespace MonoTouchFixtures.ObjCRuntime { [TestFixture] diff --git a/tests/monotouch-test/ObjCRuntime/Messaging.cs b/tests/monotouch-test/ObjCRuntime/Messaging.cs index 97dd6eb6775c..2c51deaf2357 100644 --- a/tests/monotouch-test/ObjCRuntime/Messaging.cs +++ b/tests/monotouch-test/ObjCRuntime/Messaging.cs @@ -1,5 +1,3 @@ -using System; -using System.Runtime.InteropServices; using System.Drawing; using CoreAnimation; @@ -7,7 +5,6 @@ using MapKit; #endif using CoreGraphics; -using Foundation; using System.Numerics; diff --git a/tests/monotouch-test/ObjCRuntime/NativeHandleTest.cs b/tests/monotouch-test/ObjCRuntime/NativeHandleTest.cs index b7b964154d58..b9cb0c8f5c56 100644 --- a/tests/monotouch-test/ObjCRuntime/NativeHandleTest.cs +++ b/tests/monotouch-test/ObjCRuntime/NativeHandleTest.cs @@ -1,9 +1,3 @@ -using System; - -using Foundation; -using ObjCRuntime; - -using NUnit.Framework; namespace MonoTouchFixtures.ObjCRuntime { [TestFixture] diff --git a/tests/monotouch-test/ObjCRuntime/NativeRuntimeTest.cs b/tests/monotouch-test/ObjCRuntime/NativeRuntimeTest.cs index 53c9d35eac12..2ddf38c2c659 100644 --- a/tests/monotouch-test/ObjCRuntime/NativeRuntimeTest.cs +++ b/tests/monotouch-test/ObjCRuntime/NativeRuntimeTest.cs @@ -1,12 +1,5 @@ -using System; -using System.Runtime.InteropServices; using System.Text; -using Foundation; -using ObjCRuntime; - -using NUnit.Framework; - namespace MonoTouchFixtures.ObjCRuntime { [TestFixture] diff --git a/tests/monotouch-test/ObjCRuntime/ProtocolTest.cs b/tests/monotouch-test/ObjCRuntime/ProtocolTest.cs index 48b7b202983d..fea96b3b3618 100644 --- a/tests/monotouch-test/ObjCRuntime/ProtocolTest.cs +++ b/tests/monotouch-test/ObjCRuntime/ProtocolTest.cs @@ -7,15 +7,7 @@ // Copyright 2018 Microsoft Inc. All rights reserved. // -using System; -using System.Collections.Generic; using System.Reflection; -using System.Runtime.InteropServices; - -using Foundation; -using ObjCRuntime; - -using NUnit.Framework; namespace MonoTouchFixtures.ObjCRuntime { diff --git a/tests/monotouch-test/ObjCRuntime/Registrar2.cs b/tests/monotouch-test/ObjCRuntime/Registrar2.cs index 25e05a987b52..28b919aeb09a 100644 --- a/tests/monotouch-test/ObjCRuntime/Registrar2.cs +++ b/tests/monotouch-test/ObjCRuntime/Registrar2.cs @@ -7,13 +7,7 @@ // Copyright 2015 Xamarin Inc. All rights reserved. // -using System; -using System.Collections.Generic; using System.Reflection; -using System.Runtime.InteropServices; -using Foundation; -using ObjCRuntime; -using NUnit.Framework; namespace XamarinTests.ObjCRuntime { [TestFixture] diff --git a/tests/monotouch-test/ObjCRuntime/RegistrarTest.cs b/tests/monotouch-test/ObjCRuntime/RegistrarTest.cs index 628b838beedf..a2fc75d3a08d 100644 --- a/tests/monotouch-test/ObjCRuntime/RegistrarTest.cs +++ b/tests/monotouch-test/ObjCRuntime/RegistrarTest.cs @@ -1,14 +1,10 @@ -using System; -using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Drawing; using System.Linq; using System.Reflection; -using System.Runtime.InteropServices; using System.Runtime.Versioning; using System.Threading; -using CoreFoundation; using MapKit; #if HAS_ADDRESSBOOK using AddressBook; @@ -16,7 +12,6 @@ #if HAS_ADDRESSBOOKUI using AddressBookUI; #endif -using Foundation; #if MONOMAC using AppKit; using UIColor = AppKit.NSColor; @@ -25,7 +20,6 @@ #endif using PlatformException = ObjCRuntime.RuntimeException; using NativeException = ObjCRuntime.ObjCException; -using ObjCRuntime; using CoreAnimation; using CoreGraphics; using CoreLocation; @@ -38,7 +32,6 @@ #if !__TVOS__ using WebKit; #endif -using NUnit.Framework; using Bindings.Test; using RectangleF = CoreGraphics.CGRect; diff --git a/tests/monotouch-test/ObjCRuntime/RegistrarTestGenerated.cs b/tests/monotouch-test/ObjCRuntime/RegistrarTestGenerated.cs index 669c6e02c3a3..49229e63fafa 100644 --- a/tests/monotouch-test/ObjCRuntime/RegistrarTestGenerated.cs +++ b/tests/monotouch-test/ObjCRuntime/RegistrarTestGenerated.cs @@ -1,8 +1,5 @@ -using ObjCRuntime; using System.Runtime.CompilerServices; -using NUnit.Framework; - namespace MonoTouchFixtures.ObjCRuntime { public partial class RegistrarTestGenerated { diff --git a/tests/monotouch-test/ObjCRuntime/ResourcesTest.cs b/tests/monotouch-test/ObjCRuntime/ResourcesTest.cs index 5db5e07231ad..1899894d3ae2 100644 --- a/tests/monotouch-test/ObjCRuntime/ResourcesTest.cs +++ b/tests/monotouch-test/ObjCRuntime/ResourcesTest.cs @@ -7,16 +7,11 @@ // Copyright 2022 Microsoft Corp. All rights reserved. // -using System; using System.IO; using System.Resources; using System.Globalization; using System.Reflection; using System.Reflection.Emit; -using NUnit.Framework; - -using Foundation; -using ObjCRuntime; namespace MonoTouchFixtures.ObjCRuntime { diff --git a/tests/monotouch-test/ObjCRuntime/RuntimeTest.cs b/tests/monotouch-test/ObjCRuntime/RuntimeTest.cs index 7e68a1d6f459..8ea31c916842 100644 --- a/tests/monotouch-test/ObjCRuntime/RuntimeTest.cs +++ b/tests/monotouch-test/ObjCRuntime/RuntimeTest.cs @@ -1,18 +1,13 @@ -using System; using System.Diagnostics; using System.Drawing; -using System.Runtime.InteropServices; using System.Threading; using System.Threading.Tasks; using CoreGraphics; -using Foundation; -using ObjCRuntime; using SpriteKit; #if !MONOMAC using UIKit; #endif -using NUnit.Framework; using MonoTests.System.Net.Http; using Xamarin.Utils; diff --git a/tests/monotouch-test/ObjCRuntime/SimpleRegistrarTest.cs b/tests/monotouch-test/ObjCRuntime/SimpleRegistrarTest.cs index 8fd116c9a9d1..e89d1016efc4 100644 --- a/tests/monotouch-test/ObjCRuntime/SimpleRegistrarTest.cs +++ b/tests/monotouch-test/ObjCRuntime/SimpleRegistrarTest.cs @@ -1,10 +1,4 @@ #if __MACOS__ -using System; -using System.Runtime.InteropServices; -using NUnit.Framework; - -using Foundation; -using ObjCRuntime; namespace Xamarin.Mac.Tests { [Register ("SimpleRegistrarTestClass")] diff --git a/tests/monotouch-test/ObjCRuntime/StrongEnumTests.cs b/tests/monotouch-test/ObjCRuntime/StrongEnumTests.cs index 9bf970297004..2bf96f27701b 100644 --- a/tests/monotouch-test/ObjCRuntime/StrongEnumTests.cs +++ b/tests/monotouch-test/ObjCRuntime/StrongEnumTests.cs @@ -1,13 +1,6 @@ -using System; -using System.Collections.Generic; using System.Linq; using System.Reflection; -using Foundation; -using ObjCRuntime; - -using NUnit.Framework; - namespace MonoTouchFixtures.ObjCRuntime { [TestFixture] diff --git a/tests/monotouch-test/ObjCRuntime/TestPreservation.cs b/tests/monotouch-test/ObjCRuntime/TestPreservation.cs index 7600f1434cf0..0b7399528a41 100644 --- a/tests/monotouch-test/ObjCRuntime/TestPreservation.cs +++ b/tests/monotouch-test/ObjCRuntime/TestPreservation.cs @@ -1,12 +1,6 @@ -using System; -using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Reflection; -using Foundation; - -using NUnit.Framework; - namespace MonoTouchFixtures { [TestFixture] [Preserve (AllMembers = true)] diff --git a/tests/monotouch-test/ObjCRuntime/ToggleRefRetainDeadlockTest.cs b/tests/monotouch-test/ObjCRuntime/ToggleRefRetainDeadlockTest.cs index 3c55b1e189c1..5a7f6ea2e7d9 100644 --- a/tests/monotouch-test/ObjCRuntime/ToggleRefRetainDeadlockTest.cs +++ b/tests/monotouch-test/ObjCRuntime/ToggleRefRetainDeadlockTest.cs @@ -1,13 +1,7 @@ -using System; using System.Diagnostics; -using System.Runtime.InteropServices; using System.Threading; using CoreGraphics; -using Foundation; -using ObjCRuntime; - -using NUnit.Framework; namespace MonoTouchFixtures.ObjCRuntime { [TestFixture] diff --git a/tests/monotouch-test/ObjCRuntime/TrampolineTest.cs b/tests/monotouch-test/ObjCRuntime/TrampolineTest.cs index a5a0b2513266..bf804cc7224e 100644 --- a/tests/monotouch-test/ObjCRuntime/TrampolineTest.cs +++ b/tests/monotouch-test/ObjCRuntime/TrampolineTest.cs @@ -1,17 +1,12 @@ -using System; using System.Drawing; using System.Globalization; -using System.Runtime.InteropServices; -using Foundation; using CoreGraphics; -using ObjCRuntime; #if !__TVOS__ using MapKit; #endif using CoreAnimation; using CoreLocation; using CoreMedia; -using NUnit.Framework; using System.Numerics; diff --git a/tests/monotouch-test/ObjCRuntime/TrampolineTestGenerated.cs b/tests/monotouch-test/ObjCRuntime/TrampolineTestGenerated.cs index 1d8199691386..3f1b5b8ac139 100644 --- a/tests/monotouch-test/ObjCRuntime/TrampolineTestGenerated.cs +++ b/tests/monotouch-test/ObjCRuntime/TrampolineTestGenerated.cs @@ -1,7 +1,5 @@ using System.Runtime.CompilerServices; -using NUnit.Framework; - namespace MonoTouchFixtures.ObjCRuntime { public partial class TrampolineTestGenerated { diff --git a/tests/monotouch-test/OpenGL/CGLContext.cs b/tests/monotouch-test/OpenGL/CGLContext.cs index 5e7ed5c8cf93..55d3efc75e2e 100644 --- a/tests/monotouch-test/OpenGL/CGLContext.cs +++ b/tests/monotouch-test/OpenGL/CGLContext.cs @@ -1,7 +1,4 @@ #if __MACOS__ -using System; -using NUnit.Framework; -using Foundation; using OpenGL; namespace Xamarin.Mac.Tests { diff --git a/tests/monotouch-test/PassKit/AddPassesViewControllerTest.cs b/tests/monotouch-test/PassKit/AddPassesViewControllerTest.cs index c1671daa06da..edde0fe70faf 100644 --- a/tests/monotouch-test/PassKit/AddPassesViewControllerTest.cs +++ b/tests/monotouch-test/PassKit/AddPassesViewControllerTest.cs @@ -9,12 +9,8 @@ #if !__TVOS__ && !MONOMAC -using System; -using Foundation; using UIKit; using PassKit; -using ObjCRuntime; -using NUnit.Framework; using Xamarin.Utils; namespace MonoTouchFixtures.PassKit { diff --git a/tests/monotouch-test/PassKit/LabeledValueTest.cs b/tests/monotouch-test/PassKit/LabeledValueTest.cs index e2c5c07796c4..25a66f0e7f9a 100644 --- a/tests/monotouch-test/PassKit/LabeledValueTest.cs +++ b/tests/monotouch-test/PassKit/LabeledValueTest.cs @@ -1,9 +1,6 @@ #if __IOS__ -using System; -using Foundation; using PassKit; -using NUnit.Framework; namespace MonoTouchFixtures.PassKit { diff --git a/tests/monotouch-test/PassKit/ObjectTest.cs b/tests/monotouch-test/PassKit/ObjectTest.cs index 003c6cbdd4b6..7b763796db49 100644 --- a/tests/monotouch-test/PassKit/ObjectTest.cs +++ b/tests/monotouch-test/PassKit/ObjectTest.cs @@ -9,11 +9,8 @@ #if !__TVOS__ && !MONOMAC -using System; -using Foundation; using UIKit; using PassKit; -using NUnit.Framework; namespace MonoTouchFixtures.PassKit { diff --git a/tests/monotouch-test/PassKit/PKJapanIndividualNumberCardMetadataTest.cs b/tests/monotouch-test/PassKit/PKJapanIndividualNumberCardMetadataTest.cs index 5adfede4cbc9..1aa6a8e0e9be 100644 --- a/tests/monotouch-test/PassKit/PKJapanIndividualNumberCardMetadataTest.cs +++ b/tests/monotouch-test/PassKit/PKJapanIndividualNumberCardMetadataTest.cs @@ -3,15 +3,10 @@ // #if HAS_PASSKIT -using System; -using Foundation; using CoreGraphics; -using ObjCRuntime; using PassKit; -using NUnit.Framework; - using Xamarin.Utils; namespace MonoTouchFixtures.PassKit { diff --git a/tests/monotouch-test/PassKit/PKPassTest.cs b/tests/monotouch-test/PassKit/PKPassTest.cs index d2c055af8f7c..3aed15e05355 100644 --- a/tests/monotouch-test/PassKit/PKPassTest.cs +++ b/tests/monotouch-test/PassKit/PKPassTest.cs @@ -1,10 +1,7 @@ #if !__TVOS__ && !MONOMAC -using System; -using Foundation; using UIKit; using PassKit; -using NUnit.Framework; namespace MonoTouchFixtures.PassKit { diff --git a/tests/monotouch-test/PassKit/PKPayLaterViewTest.cs b/tests/monotouch-test/PassKit/PKPayLaterViewTest.cs index 3dafe6dec6b0..34d7a41bcb3f 100644 --- a/tests/monotouch-test/PassKit/PKPayLaterViewTest.cs +++ b/tests/monotouch-test/PassKit/PKPayLaterViewTest.cs @@ -1,15 +1,11 @@ #if __IOS__ && !__MACCATALYST__ -using System; using System.Threading; -using Foundation; using UIKit; using PassKit; -using NUnit.Framework; - namespace MonoTouchFixtures.PassKit { [TestFixture] diff --git a/tests/monotouch-test/PassKit/PKPaymentRequestTest.cs b/tests/monotouch-test/PassKit/PKPaymentRequestTest.cs index 5c76ec3abbec..38e9422ff6fa 100644 --- a/tests/monotouch-test/PassKit/PKPaymentRequestTest.cs +++ b/tests/monotouch-test/PassKit/PKPaymentRequestTest.cs @@ -1,10 +1,7 @@ #if !__TVOS__ && !MONOMAC -using System; -using Foundation; using UIKit; using PassKit; -using NUnit.Framework; namespace MonoTouchFixtures.PassKit { diff --git a/tests/monotouch-test/PassKit/PKPaymentSummaryItemTest.cs b/tests/monotouch-test/PassKit/PKPaymentSummaryItemTest.cs index 010360f137d2..a0c60ff93dd0 100644 --- a/tests/monotouch-test/PassKit/PKPaymentSummaryItemTest.cs +++ b/tests/monotouch-test/PassKit/PKPaymentSummaryItemTest.cs @@ -1,10 +1,7 @@ #if !__TVOS__ && !MONOMAC -using System; -using Foundation; using UIKit; using PassKit; -using NUnit.Framework; namespace MonoTouchFixtures.PassKit { diff --git a/tests/monotouch-test/PassKit/PassLibraryTest.cs b/tests/monotouch-test/PassKit/PassLibraryTest.cs index 84408e73668b..af602c5e1d20 100644 --- a/tests/monotouch-test/PassKit/PassLibraryTest.cs +++ b/tests/monotouch-test/PassKit/PassLibraryTest.cs @@ -9,12 +9,9 @@ #if !__TVOS__ && !MONOMAC -using System; using System.IO; -using Foundation; using UIKit; using PassKit; -using NUnit.Framework; namespace MonoTouchFixtures.PassKit { diff --git a/tests/monotouch-test/PassKit/PassTest.cs b/tests/monotouch-test/PassKit/PassTest.cs index 24e1795c1aa8..3ffe4d1713cb 100644 --- a/tests/monotouch-test/PassKit/PassTest.cs +++ b/tests/monotouch-test/PassKit/PassTest.cs @@ -9,12 +9,9 @@ #if !__TVOS__ && !MONOMAC -using System; using System.IO; -using Foundation; using UIKit; using PassKit; -using NUnit.Framework; namespace MonoTouchFixtures.PassKit { diff --git a/tests/monotouch-test/PdfKit/PdfAnnotationTest.cs b/tests/monotouch-test/PdfKit/PdfAnnotationTest.cs index c487e18c0688..3d24269dc431 100644 --- a/tests/monotouch-test/PdfKit/PdfAnnotationTest.cs +++ b/tests/monotouch-test/PdfKit/PdfAnnotationTest.cs @@ -9,15 +9,9 @@ #if __IOS__ || MONOMAC -using System; - using CoreGraphics; -using Foundation; -using ObjCRuntime; using PdfKit; -using NUnit.Framework; - namespace MonoTouchFixtures.PdfKit { [TestFixture] diff --git a/tests/monotouch-test/Phase/PhaseAmbientMixerDefinitionTest.cs b/tests/monotouch-test/Phase/PhaseAmbientMixerDefinitionTest.cs index 5658979faa90..475c84aea78b 100644 --- a/tests/monotouch-test/Phase/PhaseAmbientMixerDefinitionTest.cs +++ b/tests/monotouch-test/Phase/PhaseAmbientMixerDefinitionTest.cs @@ -1,13 +1,8 @@ #if __IOS__ || MONOMAC -using System; - using CoreGraphics; -using Foundation; -using ObjCRuntime; using Phase; -using NUnit.Framework; using AVFoundation; using AudioToolbox; diff --git a/tests/monotouch-test/Phase/PhaseEnvelopeSegmentTest.cs b/tests/monotouch-test/Phase/PhaseEnvelopeSegmentTest.cs index bdd88bd92b9e..3eec98d83556 100644 --- a/tests/monotouch-test/Phase/PhaseEnvelopeSegmentTest.cs +++ b/tests/monotouch-test/Phase/PhaseEnvelopeSegmentTest.cs @@ -1,14 +1,8 @@ #if __IOS__ || MONOMAC -using System; - using CoreGraphics; -using Foundation; -using ObjCRuntime; using Phase; -using NUnit.Framework; - using Vector2d = global::CoreGraphics.NVector2d; #nullable enable diff --git a/tests/monotouch-test/Phase/PhaseEnvelopeTest.cs b/tests/monotouch-test/Phase/PhaseEnvelopeTest.cs index 7e0f5713e3aa..c4df7b2c0a0e 100644 --- a/tests/monotouch-test/Phase/PhaseEnvelopeTest.cs +++ b/tests/monotouch-test/Phase/PhaseEnvelopeTest.cs @@ -1,14 +1,8 @@ #if __IOS__ || MONOMAC -using System; - using CoreGraphics; -using Foundation; -using ObjCRuntime; using Phase; -using NUnit.Framework; - using Vector2d = global::CoreGraphics.NVector2d; #nullable enable diff --git a/tests/monotouch-test/Phase/PhaseObjectTest.cs b/tests/monotouch-test/Phase/PhaseObjectTest.cs index 03a3516e134b..b01e4f6b574c 100644 --- a/tests/monotouch-test/Phase/PhaseObjectTest.cs +++ b/tests/monotouch-test/Phase/PhaseObjectTest.cs @@ -1,14 +1,8 @@ #if __IOS__ || MONOMAC -using System; - using CoreGraphics; -using Foundation; -using ObjCRuntime; using Phase; -using NUnit.Framework; - #nullable enable namespace MonoTouchFixtures.Phase { diff --git a/tests/monotouch-test/Photos/FetchResultTest.cs b/tests/monotouch-test/Photos/FetchResultTest.cs index 58c9fe119766..717ec5770317 100644 --- a/tests/monotouch-test/Photos/FetchResultTest.cs +++ b/tests/monotouch-test/Photos/FetchResultTest.cs @@ -9,14 +9,10 @@ #if HAS_PHOTOS && !__TVOS__ && HAS_UIKIT -using System; using System.Linq; -using Foundation; using UIKit; -using ObjCRuntime; using Photos; using CoreGraphics; -using NUnit.Framework; using Xamarin.Utils; namespace MonoTouchFixtures.Photos { diff --git a/tests/monotouch-test/Photos/LivePhotoEditingContextTest.cs b/tests/monotouch-test/Photos/LivePhotoEditingContextTest.cs index a1be30146ac6..ad16bd49a910 100644 --- a/tests/monotouch-test/Photos/LivePhotoEditingContextTest.cs +++ b/tests/monotouch-test/Photos/LivePhotoEditingContextTest.cs @@ -1,14 +1,9 @@ #if !__TVOS__ -using System; using System.Diagnostics.CodeAnalysis; using System.Reflection; -using System.Runtime.InteropServices; using CoreGraphics; -using Foundation; -using ObjCRuntime; using Photos; -using NUnit.Framework; namespace MonoTouchFixtures.Photos { diff --git a/tests/monotouch-test/PushKit/PushRegistryTest.cs b/tests/monotouch-test/PushKit/PushRegistryTest.cs index df6d850b7af1..11b037bd3db5 100644 --- a/tests/monotouch-test/PushKit/PushRegistryTest.cs +++ b/tests/monotouch-test/PushKit/PushRegistryTest.cs @@ -2,13 +2,8 @@ #if !__TVOS__ && !MONOMAC -using System; -using CoreFoundation; -using Foundation; using PushKit; using UIKit; -using ObjCRuntime; -using NUnit.Framework; using Xamarin.Utils; namespace MonoTouchFixtures.PushKit { diff --git a/tests/monotouch-test/QuickLook/PreviewControllerTest.cs b/tests/monotouch-test/QuickLook/PreviewControllerTest.cs index da7dc8c1036a..891403cf054f 100644 --- a/tests/monotouch-test/QuickLook/PreviewControllerTest.cs +++ b/tests/monotouch-test/QuickLook/PreviewControllerTest.cs @@ -9,14 +9,10 @@ #if !__TVOS__ && !MONOMAC -using System; using System.Drawing; using CoreGraphics; -using Foundation; using UIKit; using QuickLook; -using ObjCRuntime; -using NUnit.Framework; using Xamarin.Utils; namespace MonoTouchFixtures.QuickLook { diff --git a/tests/monotouch-test/ReplayKit/BroadcastHandlerTest.cs b/tests/monotouch-test/ReplayKit/BroadcastHandlerTest.cs index 24480f489b51..13962965d01c 100644 --- a/tests/monotouch-test/ReplayKit/BroadcastHandlerTest.cs +++ b/tests/monotouch-test/ReplayKit/BroadcastHandlerTest.cs @@ -1,4 +1,3 @@ -using System; namespace monotouchtest.ReplayKit { public class BroadcastHandlerTest { public BroadcastHandlerTest () diff --git a/tests/monotouch-test/SafariServices/ReadingListTest.cs b/tests/monotouch-test/SafariServices/ReadingListTest.cs index 155ef181deff..9fdea3dfb7fd 100644 --- a/tests/monotouch-test/SafariServices/ReadingListTest.cs +++ b/tests/monotouch-test/SafariServices/ReadingListTest.cs @@ -9,13 +9,9 @@ #if !__TVOS__ && !MONOMAC -using System; using System.IO; -using Foundation; using SafariServices; using UIKit; -using ObjCRuntime; -using NUnit.Framework; using Xamarin.Utils; namespace MonoTouchFixtures.SafariServices { diff --git a/tests/monotouch-test/SceneDelegate.cs b/tests/monotouch-test/SceneDelegate.cs index 377ab2ab842b..633a2a6623e7 100644 --- a/tests/monotouch-test/SceneDelegate.cs +++ b/tests/monotouch-test/SceneDelegate.cs @@ -1,11 +1,7 @@ #if !MONOMAC -using System; -using System.Collections.Generic; using System.Reflection; using System.Threading.Tasks; -using CoreFoundation; -using Foundation; using UIKit; using MonoTouch.NUnit.UI; using NUnit.Framework.Internal; @@ -48,5 +44,4 @@ public static void PresentModalViewController (UIViewController vc, double durat } } - #endif // !MONOMAC diff --git a/tests/monotouch-test/SceneKit/ActionTest.cs b/tests/monotouch-test/SceneKit/ActionTest.cs index bfe21f1fbdfb..993ea3656344 100644 --- a/tests/monotouch-test/SceneKit/ActionTest.cs +++ b/tests/monotouch-test/SceneKit/ActionTest.cs @@ -2,11 +2,7 @@ // Unit tests for SCNAction // -using System; -using Foundation; using SceneKit; -using ObjCRuntime; -using NUnit.Framework; using Xamarin.Utils; namespace MonoTouchFixtures.SceneKit { diff --git a/tests/monotouch-test/SceneKit/AvoidOccluderConstraintTest.cs b/tests/monotouch-test/SceneKit/AvoidOccluderConstraintTest.cs index 9db8a5f961cc..7afa7b95a273 100644 --- a/tests/monotouch-test/SceneKit/AvoidOccluderConstraintTest.cs +++ b/tests/monotouch-test/SceneKit/AvoidOccluderConstraintTest.cs @@ -1,8 +1,4 @@ -using System; -using Foundation; using SceneKit; -using ObjCRuntime; -using NUnit.Framework; namespace MonoTouchFixtures.SceneKit { diff --git a/tests/monotouch-test/SceneKit/GeometrySourceTest.cs b/tests/monotouch-test/SceneKit/GeometrySourceTest.cs index 463c1aaf2543..dcb9dab490b7 100644 --- a/tests/monotouch-test/SceneKit/GeometrySourceTest.cs +++ b/tests/monotouch-test/SceneKit/GeometrySourceTest.cs @@ -1,16 +1,12 @@ // Copyright 2015 Xamarin Inc. All rights reserved. -using System; -using Foundation; using Metal; -using ObjCRuntime; using SceneKit; #if MONOMAC using AppKit; #else using UIKit; #endif -using NUnit.Framework; namespace MonoTouchFixtures.SceneKit { diff --git a/tests/monotouch-test/SceneKit/MorpherTest.cs b/tests/monotouch-test/SceneKit/MorpherTest.cs index ab81e8e3bb46..855584b82001 100644 --- a/tests/monotouch-test/SceneKit/MorpherTest.cs +++ b/tests/monotouch-test/SceneKit/MorpherTest.cs @@ -1,8 +1,4 @@ -using System; -using Foundation; using SceneKit; -using ObjCRuntime; -using NUnit.Framework; namespace MonoTouchFixtures.SceneKit { diff --git a/tests/monotouch-test/SceneKit/NodeTest.cs b/tests/monotouch-test/SceneKit/NodeTest.cs index 7872bd65f06f..5d983179562b 100644 --- a/tests/monotouch-test/SceneKit/NodeTest.cs +++ b/tests/monotouch-test/SceneKit/NodeTest.cs @@ -7,17 +7,13 @@ // Copyright 2014 Xamarin Inc. All rights reserved. // -using System; using CoreAnimation; -using Foundation; using SceneKit; -using ObjCRuntime; #if MONOMAC using AppKit; #else using UIKit; #endif -using NUnit.Framework; using Xamarin.Utils; namespace MonoTouchFixtures.SceneKit { diff --git a/tests/monotouch-test/SceneKit/SCNGeometrySource.cs b/tests/monotouch-test/SceneKit/SCNGeometrySource.cs index aada4750d022..426845c6799c 100644 --- a/tests/monotouch-test/SceneKit/SCNGeometrySource.cs +++ b/tests/monotouch-test/SceneKit/SCNGeometrySource.cs @@ -1,9 +1,6 @@ #if __MACOS__ -using System; using System.Threading.Tasks; -using NUnit.Framework; -using Foundation; using SceneKit; namespace Xamarin.Mac.Tests { diff --git a/tests/monotouch-test/SceneKit/SCNMaterial.cs b/tests/monotouch-test/SceneKit/SCNMaterial.cs index be176c792185..be52e7b90495 100644 --- a/tests/monotouch-test/SceneKit/SCNMaterial.cs +++ b/tests/monotouch-test/SceneKit/SCNMaterial.cs @@ -1,10 +1,7 @@ #if __MACOS__ -using System; using System.Threading.Tasks; -using NUnit.Framework; using AppKit; -using Foundation; using SceneKit; namespace Xamarin.Mac.Tests { diff --git a/tests/monotouch-test/SceneKit/SCNMatrixTest.cs b/tests/monotouch-test/SceneKit/SCNMatrixTest.cs index 1118cc299917..626fc8418851 100644 --- a/tests/monotouch-test/SceneKit/SCNMatrixTest.cs +++ b/tests/monotouch-test/SceneKit/SCNMatrixTest.cs @@ -9,15 +9,10 @@ #nullable enable -using System; using System.Numerics; -using System.Runtime.InteropServices; using CoreAnimation; -using Foundation; using SceneKit; -using NUnit.Framework; - using Vector3d = global::CoreGraphics.NVector3d; using Quaterniond = global::CoreGraphics.NQuaterniond; diff --git a/tests/monotouch-test/SceneKit/SCNNode.cs b/tests/monotouch-test/SceneKit/SCNNode.cs index d8b91c6ac8a4..cc650dae5f12 100644 --- a/tests/monotouch-test/SceneKit/SCNNode.cs +++ b/tests/monotouch-test/SceneKit/SCNNode.cs @@ -1,10 +1,7 @@ #if __MACOS__ -using System; using System.Threading.Tasks; -using NUnit.Framework; using AppKit; -using Foundation; using CoreAnimation; using SceneKit; diff --git a/tests/monotouch-test/SceneKit/SCNScene.cs b/tests/monotouch-test/SceneKit/SCNScene.cs index 85ff2e1687b7..05c6c8269bce 100644 --- a/tests/monotouch-test/SceneKit/SCNScene.cs +++ b/tests/monotouch-test/SceneKit/SCNScene.cs @@ -1,9 +1,6 @@ #if __MACOS__ -using System; using System.Threading.Tasks; -using NUnit.Framework; -using Foundation; using SceneKit; namespace Xamarin.Mac.Tests { diff --git a/tests/monotouch-test/SceneKit/SCNVector3Test.cs b/tests/monotouch-test/SceneKit/SCNVector3Test.cs index 7d2b32bf879a..0ba2b3516dcb 100644 --- a/tests/monotouch-test/SceneKit/SCNVector3Test.cs +++ b/tests/monotouch-test/SceneKit/SCNVector3Test.cs @@ -11,12 +11,8 @@ #nullable enable -using System; -using Foundation; using SceneKit; -using NUnit.Framework; - #if __MACOS__ using pfloat = System.Runtime.InteropServices.NFloat; #else diff --git a/tests/monotouch-test/SceneKit/SCNVector4Test.cs b/tests/monotouch-test/SceneKit/SCNVector4Test.cs index f7f4d73c48a7..5a7b2cb0850b 100644 --- a/tests/monotouch-test/SceneKit/SCNVector4Test.cs +++ b/tests/monotouch-test/SceneKit/SCNVector4Test.cs @@ -11,12 +11,8 @@ #nullable enable -using System; -using Foundation; using SceneKit; -using NUnit.Framework; - #if __MACOS__ using pfloat = System.Runtime.InteropServices.NFloat; #else diff --git a/tests/monotouch-test/SceneKit/SCNView.cs b/tests/monotouch-test/SceneKit/SCNView.cs index 2abdab956690..92bc4433e98f 100644 --- a/tests/monotouch-test/SceneKit/SCNView.cs +++ b/tests/monotouch-test/SceneKit/SCNView.cs @@ -1,10 +1,7 @@ #if __MACOS__ -using System; using System.Threading.Tasks; -using NUnit.Framework; using AppKit; -using Foundation; using CoreAnimation; using CoreGraphics; using SceneKit; diff --git a/tests/monotouch-test/SceneKit/SCNViewTests.cs b/tests/monotouch-test/SceneKit/SCNViewTests.cs index fece34e43b11..cb466b007074 100644 --- a/tests/monotouch-test/SceneKit/SCNViewTests.cs +++ b/tests/monotouch-test/SceneKit/SCNViewTests.cs @@ -8,10 +8,6 @@ // Copyright 2018 Xamarin Inc. All rights reserved. // -using System; -using NUnit.Framework; - -using Foundation; using SceneKit; using CoreGraphics; diff --git a/tests/monotouch-test/SceneKit/SCNWorld.cs b/tests/monotouch-test/SceneKit/SCNWorld.cs index 20406d7cd74e..69536131158f 100644 --- a/tests/monotouch-test/SceneKit/SCNWorld.cs +++ b/tests/monotouch-test/SceneKit/SCNWorld.cs @@ -1,10 +1,7 @@ #if __MACOS__ -using System; using System.Threading.Tasks; -using NUnit.Framework; using AppKit; -using Foundation; using CoreAnimation; using SceneKit; diff --git a/tests/monotouch-test/SceneKit/SceneKit.cs b/tests/monotouch-test/SceneKit/SceneKit.cs index 855184e99a85..f4a084772d09 100644 --- a/tests/monotouch-test/SceneKit/SceneKit.cs +++ b/tests/monotouch-test/SceneKit/SceneKit.cs @@ -1,10 +1,7 @@ #if __MACOS__ -using System; using System.Threading.Tasks; -using NUnit.Framework; using AppKit; -using Foundation; using CoreAnimation; using CoreGraphics; using SceneKit; diff --git a/tests/monotouch-test/SceneKit/StructTest.cs b/tests/monotouch-test/SceneKit/StructTest.cs index 857af775db11..6a168e18b697 100644 --- a/tests/monotouch-test/SceneKit/StructTest.cs +++ b/tests/monotouch-test/SceneKit/StructTest.cs @@ -7,16 +7,13 @@ // Copyright 2014 Xamarin Inc. All rights reserved. // -using System; using CoreAnimation; -using Foundation; using SceneKit; #if MONOMAC using AppKit; #else using UIKit; #endif -using NUnit.Framework; namespace MonoTouchFixtures.SceneKit { diff --git a/tests/monotouch-test/ScreenTime/STWebHistoryTest.cs b/tests/monotouch-test/ScreenTime/STWebHistoryTest.cs index ccfb3a58ebeb..e0756dad44ad 100644 --- a/tests/monotouch-test/ScreenTime/STWebHistoryTest.cs +++ b/tests/monotouch-test/ScreenTime/STWebHistoryTest.cs @@ -9,13 +9,8 @@ #if HAS_SCREENTIME -using System; - -using Foundation; using ScreenTime; -using NUnit.Framework; - namespace MonoTouchFixtures.ScreenTime { [TestFixture] diff --git a/tests/monotouch-test/ScriptingBridge/SBApplicationTest.cs b/tests/monotouch-test/ScriptingBridge/SBApplicationTest.cs index b3ad074901c1..e266c8408915 100644 --- a/tests/monotouch-test/ScriptingBridge/SBApplicationTest.cs +++ b/tests/monotouch-test/ScriptingBridge/SBApplicationTest.cs @@ -1,10 +1,6 @@ #if __MACOS__ -using NUnit.Framework; -using System; using AppKit; -using ObjCRuntime; -using Foundation; using ScriptingBridge; namespace Xamarin.Mac.Tests { diff --git a/tests/monotouch-test/SearchKit/SearchKitTest.cs b/tests/monotouch-test/SearchKit/SearchKitTest.cs index c0a6dd19a76e..4be3afd5072a 100644 --- a/tests/monotouch-test/SearchKit/SearchKitTest.cs +++ b/tests/monotouch-test/SearchKit/SearchKitTest.cs @@ -1,11 +1,6 @@ #if __MACOS__ -using System; using System.IO; -using System.Runtime.InteropServices; -using NUnit.Framework; - -using Foundation; using SearchKit; namespace apitest { diff --git a/tests/monotouch-test/Security/CertificateTest.cs b/tests/monotouch-test/Security/CertificateTest.cs index b339f9d4cf8e..dbe6d9b09555 100644 --- a/tests/monotouch-test/Security/CertificateTest.cs +++ b/tests/monotouch-test/Security/CertificateTest.cs @@ -7,17 +7,11 @@ // Copyright 2012 Xamarin Inc. // -using System; using System.Diagnostics; -using System.Runtime.InteropServices; using System.Security.Cryptography; using System.Security.Cryptography.X509Certificates; -using CoreFoundation; -using Foundation; using Security; -using ObjCRuntime; -using NUnit.Framework; namespace MonoTouchFixtures.Security { diff --git a/tests/monotouch-test/Security/IdentityTest.cs b/tests/monotouch-test/Security/IdentityTest.cs index 539f65e872f3..d35f25b67f73 100644 --- a/tests/monotouch-test/Security/IdentityTest.cs +++ b/tests/monotouch-test/Security/IdentityTest.cs @@ -8,11 +8,7 @@ // Copyright 2019 Microsoft Corporation // -using System; -using Foundation; -using ObjCRuntime; using Security; -using NUnit.Framework; namespace MonoTouchFixtures.Security { diff --git a/tests/monotouch-test/Security/ImportExportTest.cs b/tests/monotouch-test/Security/ImportExportTest.cs index cd3b2c53864a..e74e4163c7ae 100644 --- a/tests/monotouch-test/Security/ImportExportTest.cs +++ b/tests/monotouch-test/Security/ImportExportTest.cs @@ -1,9 +1,6 @@ // Copyright 2011 Xamarin Inc. All rights reserved -using System; -using Foundation; using Security; -using NUnit.Framework; namespace MonoTouchFixtures.Security { diff --git a/tests/monotouch-test/Security/KeyChainTest.cs b/tests/monotouch-test/Security/KeyChainTest.cs index 27009c2336f6..deaaeaa16540 100644 --- a/tests/monotouch-test/Security/KeyChainTest.cs +++ b/tests/monotouch-test/Security/KeyChainTest.cs @@ -1,17 +1,11 @@ // Copyright 2011, 2013 Xamarin Inc. All rights reserved -using System; using System.Diagnostics; -using System.Runtime.InteropServices; using System.IO; using System.Reflection; using System.Threading; -using CoreFoundation; -using Foundation; using Security; -using ObjCRuntime; -using NUnit.Framework; using Xamarin.Utils; namespace MonoTouchFixtures.Security { diff --git a/tests/monotouch-test/Security/KeyTest.cs b/tests/monotouch-test/Security/KeyTest.cs index ce4add46548d..2652e0bfdf45 100644 --- a/tests/monotouch-test/Security/KeyTest.cs +++ b/tests/monotouch-test/Security/KeyTest.cs @@ -7,22 +7,16 @@ // Copyright 2013-2015 Xamarin Inc. // -using System; using System.Diagnostics; -using System.Runtime.InteropServices; using System.Security.Cryptography; using System.Security.Cryptography.X509Certificates; -using CoreFoundation; -using Foundation; using Security; -using ObjCRuntime; #if MONOMAC using AppKit; #else using UIKit; #endif -using NUnit.Framework; using Xamarin.Utils; namespace MonoTouchFixtures.Security { diff --git a/tests/monotouch-test/Security/PolicyTest.cs b/tests/monotouch-test/Security/PolicyTest.cs index 779fbc5ead4c..982fe2f1d90d 100644 --- a/tests/monotouch-test/Security/PolicyTest.cs +++ b/tests/monotouch-test/Security/PolicyTest.cs @@ -7,19 +7,14 @@ // Copyright 2012-2013 Xamarin Inc. // -using System; -using System.Runtime.InteropServices; using System.Security.Cryptography; using System.Security.Cryptography.X509Certificates; -using Foundation; #if MONOMAC using AppKit; #else using UIKit; #endif using Security; -using ObjCRuntime; -using NUnit.Framework; using Xamarin.Utils; namespace MonoTouchFixtures.Security { diff --git a/tests/monotouch-test/Security/ProtocolOptionsTest.cs b/tests/monotouch-test/Security/ProtocolOptionsTest.cs index 8f99afa7f3e2..c383657bc71e 100644 --- a/tests/monotouch-test/Security/ProtocolOptionsTest.cs +++ b/tests/monotouch-test/Security/ProtocolOptionsTest.cs @@ -1,13 +1,7 @@ -using System; -using CoreFoundation; -using Foundation; using Network; -using ObjCRuntime; using Security; -using NUnit.Framework; - namespace MonoTouchFixtures.Security { [TestFixture] diff --git a/tests/monotouch-test/Security/RecordTest.cs b/tests/monotouch-test/Security/RecordTest.cs index 3286c5392ea0..79e6aa29f7ee 100644 --- a/tests/monotouch-test/Security/RecordTest.cs +++ b/tests/monotouch-test/Security/RecordTest.cs @@ -1,10 +1,7 @@ // Copyright 2014-2015 Xamarin Inc. All rights reserved -using System; using System.Diagnostics; -using CoreFoundation; -using Foundation; #if HAS_LOCALAUTHENTICATION using LocalAuthentication; #endif @@ -14,7 +11,6 @@ #else using UIKit; #endif -using NUnit.Framework; using NUnit.Framework.Internal; using System.Security.Cryptography.X509Certificates; diff --git a/tests/monotouch-test/Security/SecProtocolMetadataTest.cs b/tests/monotouch-test/Security/SecProtocolMetadataTest.cs index f3b44372be0e..b83a6b73586b 100644 --- a/tests/monotouch-test/Security/SecProtocolMetadataTest.cs +++ b/tests/monotouch-test/Security/SecProtocolMetadataTest.cs @@ -1,15 +1,8 @@ -using System; -using System.Runtime.InteropServices; using System.Threading; -using CoreFoundation; -using Foundation; using Network; -using ObjCRuntime; using Security; -using NUnit.Framework; - namespace MonoTouchFixtures.Security { [TestFixture] diff --git a/tests/monotouch-test/Security/SecSharedCredentialTest.cs b/tests/monotouch-test/Security/SecSharedCredentialTest.cs index a9af1d2c5bb4..7a3e4afd8d24 100644 --- a/tests/monotouch-test/Security/SecSharedCredentialTest.cs +++ b/tests/monotouch-test/Security/SecSharedCredentialTest.cs @@ -1,11 +1,7 @@ #if __IOS__ -using System; using System.Threading; -using Foundation; using Security; -using ObjCRuntime; -using NUnit.Framework; using Xamarin.Utils; namespace MonoTouchFixtures.Security { diff --git a/tests/monotouch-test/Security/SecStatusCodeTest.cs b/tests/monotouch-test/Security/SecStatusCodeTest.cs index 1f6d10fd738c..ceb32a0938b2 100644 --- a/tests/monotouch-test/Security/SecStatusCodeTest.cs +++ b/tests/monotouch-test/Security/SecStatusCodeTest.cs @@ -7,10 +7,6 @@ // Copyright 2018 Xamarin Inc. // -using System; -using NUnit.Framework; - -using Foundation; using Security; namespace MonoTouchFixtures.Security { diff --git a/tests/monotouch-test/Security/SecureTransportTest.cs b/tests/monotouch-test/Security/SecureTransportTest.cs index 79f1fbbc3f9f..8de3994e762a 100644 --- a/tests/monotouch-test/Security/SecureTransportTest.cs +++ b/tests/monotouch-test/Security/SecureTransportTest.cs @@ -7,19 +7,15 @@ // Copyright 2014 Xamarin Inc. // -using System; using System.Net.Sockets; using System.Text; using System.Threading; -using Foundation; using Security; -using ObjCRuntime; #if MONOMAC using AppKit; #else using UIKit; #endif -using NUnit.Framework; using Xamarin.Utils; namespace MonoTouchFixtures.Security { diff --git a/tests/monotouch-test/Security/TrustTest.cs b/tests/monotouch-test/Security/TrustTest.cs index 81d5097022db..96e644bfa921 100644 --- a/tests/monotouch-test/Security/TrustTest.cs +++ b/tests/monotouch-test/Security/TrustTest.cs @@ -8,25 +8,18 @@ // Coyright 2019 Microsoft Corporation // -using System; -using System.Collections.Generic; -using System.Runtime.InteropServices; using System.Security.Cryptography; using System.Security.Cryptography.X509Certificates; using System.Threading; using System.Threading.Tasks; -using Foundation; #if MONOMAC using AppKit; #else using UIKit; #endif -using CoreFoundation; using Security; -using ObjCRuntime; -using NUnit.Framework; using Xamarin.Utils; namespace MonoTouchFixtures.Security { diff --git a/tests/monotouch-test/SharedWithYouCore/SWCollaborationMetadataTest.cs b/tests/monotouch-test/SharedWithYouCore/SWCollaborationMetadataTest.cs index 4e734f9357e8..a622d41f5489 100644 --- a/tests/monotouch-test/SharedWithYouCore/SWCollaborationMetadataTest.cs +++ b/tests/monotouch-test/SharedWithYouCore/SWCollaborationMetadataTest.cs @@ -9,11 +9,7 @@ #if !__TVOS__ -using System; -using Foundation; -using ObjCRuntime; using SharedWithYouCore; -using NUnit.Framework; using Xamarin.Utils; namespace MonoTouchFixtures.SharedWithYouCore { diff --git a/tests/monotouch-test/Simd/MatrixFloat2x2Test.cs b/tests/monotouch-test/Simd/MatrixFloat2x2Test.cs index ddc28e5f7c0f..032244c9933e 100644 --- a/tests/monotouch-test/Simd/MatrixFloat2x2Test.cs +++ b/tests/monotouch-test/Simd/MatrixFloat2x2Test.cs @@ -1,14 +1,8 @@ -using System; using System.Diagnostics; -using Foundation; -using ObjCRuntime; - using MatrixFloat2x2 = global::CoreGraphics.NMatrix2; -using NUnit.Framework; - namespace MonoTouchFixtures.Simd { [TestFixture] [Preserve (AllMembers = true)] diff --git a/tests/monotouch-test/Simd/MatrixFloat3x3Test.cs b/tests/monotouch-test/Simd/MatrixFloat3x3Test.cs index eca3fd415883..840af15d6ea8 100644 --- a/tests/monotouch-test/Simd/MatrixFloat3x3Test.cs +++ b/tests/monotouch-test/Simd/MatrixFloat3x3Test.cs @@ -1,14 +1,8 @@ -using System; using System.Diagnostics; -using Foundation; -using ObjCRuntime; - using MatrixFloat3x3 = global::CoreGraphics.NMatrix3; -using NUnit.Framework; - namespace MonoTouchFixtures.Simd { [TestFixture] [Preserve (AllMembers = true)] diff --git a/tests/monotouch-test/Simd/MatrixFloat4x3Test.cs b/tests/monotouch-test/Simd/MatrixFloat4x3Test.cs index f5964e3ce0ee..911265a752a0 100644 --- a/tests/monotouch-test/Simd/MatrixFloat4x3Test.cs +++ b/tests/monotouch-test/Simd/MatrixFloat4x3Test.cs @@ -1,12 +1,7 @@ -using System; using System.Diagnostics; -using Foundation; using CoreGraphics; -using ObjCRuntime; - -using NUnit.Framework; namespace MonoTouchFixtures.Simd { [TestFixture] diff --git a/tests/monotouch-test/Simd/MatrixFloat4x4Test.cs b/tests/monotouch-test/Simd/MatrixFloat4x4Test.cs index afd04fce0879..fc4b4fe213e6 100644 --- a/tests/monotouch-test/Simd/MatrixFloat4x4Test.cs +++ b/tests/monotouch-test/Simd/MatrixFloat4x4Test.cs @@ -1,14 +1,8 @@ -using System; using System.Diagnostics; -using Foundation; -using ObjCRuntime; - using MatrixFloat4x4 = global::CoreGraphics.NMatrix4; -using NUnit.Framework; - namespace MonoTouchFixtures.Simd { [TestFixture] [Preserve (AllMembers = true)] diff --git a/tests/monotouch-test/Simd/NMatrix4dTest.cs b/tests/monotouch-test/Simd/NMatrix4dTest.cs index bee98b7bd4e5..678c626948e4 100644 --- a/tests/monotouch-test/Simd/NMatrix4dTest.cs +++ b/tests/monotouch-test/Simd/NMatrix4dTest.cs @@ -1,12 +1,7 @@ -using System; using System.Diagnostics; -using Foundation; using CoreGraphics; -using ObjCRuntime; - -using NUnit.Framework; namespace MonoTouchFixtures.Simd { [TestFixture] diff --git a/tests/monotouch-test/Simd/NVector3dTest.cs b/tests/monotouch-test/Simd/NVector3dTest.cs index 5a9bf1d51da0..4f004211290e 100644 --- a/tests/monotouch-test/Simd/NVector3dTest.cs +++ b/tests/monotouch-test/Simd/NVector3dTest.cs @@ -1,12 +1,7 @@ -using System; using System.Diagnostics; -using Foundation; using CoreGraphics; -using ObjCRuntime; - -using NUnit.Framework; namespace MonoTouchFixtures.Simd { [TestFixture] diff --git a/tests/monotouch-test/Simd/VectorFloat3Test.cs b/tests/monotouch-test/Simd/VectorFloat3Test.cs index b9de1de54c14..162fd848a7f1 100644 --- a/tests/monotouch-test/Simd/VectorFloat3Test.cs +++ b/tests/monotouch-test/Simd/VectorFloat3Test.cs @@ -1,15 +1,10 @@ -using System; using System.Diagnostics; -using Foundation; -using ObjCRuntime; using System.Numerics; using VectorFloat3 = global::CoreGraphics.NVector3; -using NUnit.Framework; - namespace MonoTouchFixtures.Simd { [TestFixture] [Preserve (AllMembers = true)] diff --git a/tests/monotouch-test/SpriteKit/FieldNodeTest.cs b/tests/monotouch-test/SpriteKit/FieldNodeTest.cs index 0849bfe429f2..659daad19bc4 100644 --- a/tests/monotouch-test/SpriteKit/FieldNodeTest.cs +++ b/tests/monotouch-test/SpriteKit/FieldNodeTest.cs @@ -1,9 +1,5 @@ -using System; -using Foundation; using SpriteKit; -using ObjCRuntime; -using NUnit.Framework; using Xamarin.Utils; using System.Numerics; diff --git a/tests/monotouch-test/SpriteKit/KeyframeSequenceTest.cs b/tests/monotouch-test/SpriteKit/KeyframeSequenceTest.cs index 0a405a824660..50fae1740adb 100644 --- a/tests/monotouch-test/SpriteKit/KeyframeSequenceTest.cs +++ b/tests/monotouch-test/SpriteKit/KeyframeSequenceTest.cs @@ -7,10 +7,7 @@ // Copyright 2013 Xamarin Inc. All rights reserved. // -using System; -using Foundation; using SpriteKit; -using NUnit.Framework; namespace MonoTouchFixtures.SpriteKit { diff --git a/tests/monotouch-test/SpriteKit/PhysicsBodyTest.cs b/tests/monotouch-test/SpriteKit/PhysicsBodyTest.cs index 1f2db10db6e0..3678db234e8e 100644 --- a/tests/monotouch-test/SpriteKit/PhysicsBodyTest.cs +++ b/tests/monotouch-test/SpriteKit/PhysicsBodyTest.cs @@ -7,13 +7,9 @@ // Copyright 2013 Xamarin Inc. All rights reserved. // -using System; using System.Drawing; using CoreGraphics; -using Foundation; using SpriteKit; -using ObjCRuntime; -using NUnit.Framework; namespace MonoTouchFixtures.SpriteKit { diff --git a/tests/monotouch-test/SpriteKit/PhysicsJointFixedTest.cs b/tests/monotouch-test/SpriteKit/PhysicsJointFixedTest.cs index 823c899a85f5..7359a14ad1d7 100644 --- a/tests/monotouch-test/SpriteKit/PhysicsJointFixedTest.cs +++ b/tests/monotouch-test/SpriteKit/PhysicsJointFixedTest.cs @@ -7,12 +7,9 @@ // Copyright 2013 Xamarin Inc. All rights reserved. // -using System; using System.Drawing; using CoreGraphics; -using Foundation; using SpriteKit; -using NUnit.Framework; namespace MonoTouchFixtures.SpriteKit { diff --git a/tests/monotouch-test/SpriteKit/PhysicsJointLimitTest.cs b/tests/monotouch-test/SpriteKit/PhysicsJointLimitTest.cs index f32e8b57d079..d1114b35beda 100644 --- a/tests/monotouch-test/SpriteKit/PhysicsJointLimitTest.cs +++ b/tests/monotouch-test/SpriteKit/PhysicsJointLimitTest.cs @@ -7,12 +7,9 @@ // Copyright 2013 Xamarin Inc. All rights reserved. // -using System; using System.Drawing; using CoreGraphics; -using Foundation; using SpriteKit; -using NUnit.Framework; namespace MonoTouchFixtures.SpriteKit { diff --git a/tests/monotouch-test/SpriteKit/PhysicsWorldTest.cs b/tests/monotouch-test/SpriteKit/PhysicsWorldTest.cs index 8815c6f7b254..eb8d6015fe7f 100644 --- a/tests/monotouch-test/SpriteKit/PhysicsWorldTest.cs +++ b/tests/monotouch-test/SpriteKit/PhysicsWorldTest.cs @@ -1,8 +1,4 @@ -using System; -using Foundation; -using ObjCRuntime; using SpriteKit; -using NUnit.Framework; using Xamarin.Utils; using System.Numerics; diff --git a/tests/monotouch-test/SpriteKit/SK3DNodeTest.cs b/tests/monotouch-test/SpriteKit/SK3DNodeTest.cs index 63a2f12c2b37..118fa1374135 100644 --- a/tests/monotouch-test/SpriteKit/SK3DNodeTest.cs +++ b/tests/monotouch-test/SpriteKit/SK3DNodeTest.cs @@ -1,12 +1,8 @@ -using System; -using Foundation; #if !MONOMAC using UIKit; #endif using SpriteKit; -using ObjCRuntime; using SceneKit; -using NUnit.Framework; using Xamarin.Utils; using System.Numerics; diff --git a/tests/monotouch-test/SpriteKit/SKPaymentTests.cs b/tests/monotouch-test/SpriteKit/SKPaymentTests.cs index bc780c8746d8..d44bb18e7ab7 100644 --- a/tests/monotouch-test/SpriteKit/SKPaymentTests.cs +++ b/tests/monotouch-test/SpriteKit/SKPaymentTests.cs @@ -1,10 +1,7 @@ #if __MACOS__ -using System; using System.Threading.Tasks; -using NUnit.Framework; using AppKit; -using Foundation; using StoreKit; namespace Xamarin.Mac.Tests { diff --git a/tests/monotouch-test/SpriteKit/SKScene.cs b/tests/monotouch-test/SpriteKit/SKScene.cs index ce6f93ac0e8f..d8c0f3a57ce3 100644 --- a/tests/monotouch-test/SpriteKit/SKScene.cs +++ b/tests/monotouch-test/SpriteKit/SKScene.cs @@ -1,10 +1,7 @@ #if __MACOS__ -using System; using System.Threading.Tasks; -using NUnit.Framework; using AppKit; -using Foundation; using CoreAnimation; using CoreGraphics; using SpriteKit; diff --git a/tests/monotouch-test/SpriteKit/SKShapeNodeTest.cs b/tests/monotouch-test/SpriteKit/SKShapeNodeTest.cs index 49768b388a41..063b8fb06e9c 100644 --- a/tests/monotouch-test/SpriteKit/SKShapeNodeTest.cs +++ b/tests/monotouch-test/SpriteKit/SKShapeNodeTest.cs @@ -7,13 +7,9 @@ // Copyright 2016 Xamarin Inc. All rights reserved. // -using System; using System.Drawing; using CoreGraphics; -using Foundation; using SpriteKit; -using ObjCRuntime; -using NUnit.Framework; using Xamarin.Utils; namespace MonoTouchFixtures.SpriteKit { diff --git a/tests/monotouch-test/SpriteKit/SKTransformNodeTest.cs b/tests/monotouch-test/SpriteKit/SKTransformNodeTest.cs index b31f4d2390fa..17729d31f827 100644 --- a/tests/monotouch-test/SpriteKit/SKTransformNodeTest.cs +++ b/tests/monotouch-test/SpriteKit/SKTransformNodeTest.cs @@ -1,12 +1,9 @@ #if !MONOMAC -using System; -using Foundation; #if !MONOMAC using UIKit; #endif using SpriteKit; -using ObjCRuntime; using System.Numerics; using MatrixFloat2x2 = global::CoreGraphics.NMatrix2; @@ -15,7 +12,6 @@ using VectorFloat3 = global::CoreGraphics.NVector3; using Bindings.Test; -using NUnit.Framework; namespace MonoTouchFixtures.SpriteKit { diff --git a/tests/monotouch-test/SpriteKit/SpriteNodeTest.cs b/tests/monotouch-test/SpriteKit/SpriteNodeTest.cs index a6d0d7fdddb5..5171d6bdc86b 100644 --- a/tests/monotouch-test/SpriteKit/SpriteNodeTest.cs +++ b/tests/monotouch-test/SpriteKit/SpriteNodeTest.cs @@ -7,11 +7,8 @@ // Copyright 2013 Xamarin Inc. All rights reserved. // -using System; using System.Drawing; using CoreGraphics; -using Foundation; -using ObjCRuntime; #if MONOMAC using AppKit; using UIColor = AppKit.NSColor; @@ -19,7 +16,6 @@ using UIKit; #endif using SpriteKit; -using NUnit.Framework; using Xamarin.Utils; namespace MonoTouchFixtures.SpriteKit { diff --git a/tests/monotouch-test/SpriteKit/TextureAtlasTest.cs b/tests/monotouch-test/SpriteKit/TextureAtlasTest.cs index 4a73b6a030fd..93dc3454df1f 100644 --- a/tests/monotouch-test/SpriteKit/TextureAtlasTest.cs +++ b/tests/monotouch-test/SpriteKit/TextureAtlasTest.cs @@ -7,11 +7,7 @@ // Copyright 2013 Xamarin Inc. All rights reserved. // -using System; -using Foundation; using SpriteKit; -using ObjCRuntime; -using NUnit.Framework; using Xamarin.Utils; namespace MonoTouchFixtures.SpriteKit { diff --git a/tests/monotouch-test/SpriteKit/TextureTest.cs b/tests/monotouch-test/SpriteKit/TextureTest.cs index f3e8c0c96abc..c3aa2ba1a0c0 100644 --- a/tests/monotouch-test/SpriteKit/TextureTest.cs +++ b/tests/monotouch-test/SpriteKit/TextureTest.cs @@ -7,16 +7,12 @@ // Copyright 2013 Xamarin Inc. All rights reserved. // -using System; using System.Drawing; using CoreGraphics; -using Foundation; -using ObjCRuntime; #if !MONOMAC using UIKit; #endif using SpriteKit; -using NUnit.Framework; using Xamarin.Utils; namespace MonoTouchFixtures.SpriteKit { diff --git a/tests/monotouch-test/SpriteKit/UniformTest.cs b/tests/monotouch-test/SpriteKit/UniformTest.cs index f4ecc3b5a2f1..23d0a9a70d97 100644 --- a/tests/monotouch-test/SpriteKit/UniformTest.cs +++ b/tests/monotouch-test/SpriteKit/UniformTest.cs @@ -1,10 +1,7 @@ -using System; -using Foundation; using SpriteKit; #if !MONOMAC using UIKit; #endif -using ObjCRuntime; using CoreGraphics; using MatrixFloat2x2 = global::CoreGraphics.NMatrix2; @@ -12,7 +9,6 @@ using MatrixFloat4x4 = global::CoreGraphics.NMatrix4; using VectorFloat3 = global::CoreGraphics.NVector3; -using NUnit.Framework; using Bindings.Test; namespace MonoTouchFixtures.SpriteKit { diff --git a/tests/monotouch-test/SpriteKit/WarpGeometryGridTest.cs b/tests/monotouch-test/SpriteKit/WarpGeometryGridTest.cs index 461cffef05d0..288b88b3de6a 100644 --- a/tests/monotouch-test/SpriteKit/WarpGeometryGridTest.cs +++ b/tests/monotouch-test/SpriteKit/WarpGeometryGridTest.cs @@ -1,7 +1,4 @@ -using System; -using Foundation; using SpriteKit; -using NUnit.Framework; using System.Numerics; namespace MonoTouchFixtures.SpriteKit { diff --git a/tests/monotouch-test/StoreKit/ReceiptRefreshRequestTest.cs b/tests/monotouch-test/StoreKit/ReceiptRefreshRequestTest.cs index 42da7bfccdb7..2218c56fab96 100644 --- a/tests/monotouch-test/StoreKit/ReceiptRefreshRequestTest.cs +++ b/tests/monotouch-test/StoreKit/ReceiptRefreshRequestTest.cs @@ -9,15 +9,11 @@ #if !MONOMAC -using System; using System.IO; -using Foundation; -using ObjCRuntime; using StoreKit; #if !MONOMAC using UIKit; #endif -using NUnit.Framework; using Xamarin.Utils; namespace MonoTouchFixtures.StoreKit { diff --git a/tests/monotouch-test/StoreKit/SKCloudServiceSetupOptionsTest.cs b/tests/monotouch-test/StoreKit/SKCloudServiceSetupOptionsTest.cs index 347faa045d23..c7665f6103bb 100644 --- a/tests/monotouch-test/StoreKit/SKCloudServiceSetupOptionsTest.cs +++ b/tests/monotouch-test/StoreKit/SKCloudServiceSetupOptionsTest.cs @@ -9,9 +9,6 @@ #if __IOS__ -using System; -using Foundation; -using NUnit.Framework; using StoreKit; namespace MonoTouchFixtures.StoreKit { diff --git a/tests/monotouch-test/System.Net.Http/MessageHandlers.cs b/tests/monotouch-test/System.Net.Http/MessageHandlers.cs index 878f90269752..c58c6b64028b 100644 --- a/tests/monotouch-test/System.Net.Http/MessageHandlers.cs +++ b/tests/monotouch-test/System.Net.Http/MessageHandlers.cs @@ -2,9 +2,7 @@ // MessageHandlers.cs // -using System; using System.Collections; -using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; using System.Net; @@ -14,12 +12,9 @@ using System.Linq; using System.IO; -using NUnit.Framework; using System.Net.Http.Headers; using System.Security.Authentication; using System.Text; -using Foundation; -using ObjCRuntime; using Xamarin.Utils; namespace MonoTests.System.Net.Http { diff --git a/tests/monotouch-test/System.Net.Http/NetworkResources.cs b/tests/monotouch-test/System.Net.Http/NetworkResources.cs index e0483022c32f..86813569df98 100644 --- a/tests/monotouch-test/System.Net.Http/NetworkResources.cs +++ b/tests/monotouch-test/System.Net.Http/NetworkResources.cs @@ -1,14 +1,8 @@ -using System; -using System.Collections.Generic; using System.Net; using System.Net.Http; using System.Threading; using System.Threading.Tasks; -using Foundation; - -using NUnit.Framework; - namespace MonoTests.System.Net.Http { [Preserve (AllMembers = true)] public static class NetworkResources { diff --git a/tests/monotouch-test/SystemConfiguration/CaptiveNetworkTest.cs b/tests/monotouch-test/SystemConfiguration/CaptiveNetworkTest.cs index 175d67b63ea9..e38e3edd8f3f 100644 --- a/tests/monotouch-test/SystemConfiguration/CaptiveNetworkTest.cs +++ b/tests/monotouch-test/SystemConfiguration/CaptiveNetworkTest.cs @@ -7,15 +7,11 @@ // Copyright 2012 Xamarin Inc. All rights reserved. // -using System; using System.IO; -using Foundation; -using ObjCRuntime; using SystemConfiguration; #if !MONOMAC using UIKit; #endif -using NUnit.Framework; using Xamarin.Utils; namespace MonoTouchFixtures.SystemConfiguration { diff --git a/tests/monotouch-test/SystemConfiguration/NetworkReachabilityTest.cs b/tests/monotouch-test/SystemConfiguration/NetworkReachabilityTest.cs index a74e697c1b51..368f42839548 100644 --- a/tests/monotouch-test/SystemConfiguration/NetworkReachabilityTest.cs +++ b/tests/monotouch-test/SystemConfiguration/NetworkReachabilityTest.cs @@ -7,15 +7,10 @@ // Copyright 2012 Xamarin Inc. All rights reserved. // -using System; -using CoreFoundation; -using Foundation; #if !MONOMAC using UIKit; #endif -using ObjCRuntime; using SystemConfiguration; -using NUnit.Framework; using System.Net; namespace MonoTouchFixtures.SystemConfiguration { diff --git a/tests/monotouch-test/SystemConfiguration/StatusCodeErrorTest.cs b/tests/monotouch-test/SystemConfiguration/StatusCodeErrorTest.cs index 78b447c7bee4..6bc19154a5ce 100644 --- a/tests/monotouch-test/SystemConfiguration/StatusCodeErrorTest.cs +++ b/tests/monotouch-test/SystemConfiguration/StatusCodeErrorTest.cs @@ -7,10 +7,7 @@ // Copyright 2014 Xamarin Inc. All rights reserved. // -using System; -using Foundation; using SystemConfiguration; -using NUnit.Framework; namespace MonoTouchFixtures.SystemConfiguration { diff --git a/tests/monotouch-test/TestLoader.cs b/tests/monotouch-test/TestLoader.cs index 7ae2b57f18ba..2505e47dd0c6 100644 --- a/tests/monotouch-test/TestLoader.cs +++ b/tests/monotouch-test/TestLoader.cs @@ -1,12 +1,6 @@ -using System; -using System.Collections.Generic; using System.Linq; using System.Reflection; -using NUnit.Framework; - -using Foundation; - #nullable enable public static partial class TestLoader { diff --git a/tests/monotouch-test/UIKit/AccessibilityTest.cs b/tests/monotouch-test/UIKit/AccessibilityTest.cs index aca97a4401bb..094b6a418318 100644 --- a/tests/monotouch-test/UIKit/AccessibilityTest.cs +++ b/tests/monotouch-test/UIKit/AccessibilityTest.cs @@ -9,11 +9,7 @@ #if !MONOMAC -using System; -using Foundation; using UIKit; -using ObjCRuntime; -using NUnit.Framework; using Xamarin.Utils; namespace MonoTouchFixtures.UIKit { diff --git a/tests/monotouch-test/UIKit/ActionSheetTest.cs b/tests/monotouch-test/UIKit/ActionSheetTest.cs index 39a6801bdc07..75f3f86cea96 100644 --- a/tests/monotouch-test/UIKit/ActionSheetTest.cs +++ b/tests/monotouch-test/UIKit/ActionSheetTest.cs @@ -2,14 +2,10 @@ #if !__TVOS__ && !MONOMAC -using System; using System.Drawing; using System.Reflection; using CoreGraphics; -using Foundation; using UIKit; -using ObjCRuntime; -using NUnit.Framework; using Xamarin.Utils; namespace MonoTouchFixtures.UIKit { diff --git a/tests/monotouch-test/UIKit/ActivityIndicatorViewTest.cs b/tests/monotouch-test/UIKit/ActivityIndicatorViewTest.cs index 7998a5cb3bd3..d2951afce7a9 100644 --- a/tests/monotouch-test/UIKit/ActivityIndicatorViewTest.cs +++ b/tests/monotouch-test/UIKit/ActivityIndicatorViewTest.cs @@ -2,12 +2,9 @@ #if !MONOMAC -using System; using System.Drawing; using CoreGraphics; -using Foundation; using UIKit; -using NUnit.Framework; namespace MonoTouchFixtures.UIKit { diff --git a/tests/monotouch-test/UIKit/AlertViewDelegateTest.cs b/tests/monotouch-test/UIKit/AlertViewDelegateTest.cs index 23a5d06be3b6..fa99be4192fc 100644 --- a/tests/monotouch-test/UIKit/AlertViewDelegateTest.cs +++ b/tests/monotouch-test/UIKit/AlertViewDelegateTest.cs @@ -2,10 +2,7 @@ #if !__TVOS__ && !MONOMAC -using System; -using Foundation; using UIKit; -using NUnit.Framework; namespace MonoTouchFixtures.UIKit { diff --git a/tests/monotouch-test/UIKit/AlertViewTest.cs b/tests/monotouch-test/UIKit/AlertViewTest.cs index 3f4e1aa681cb..9ff928951f86 100644 --- a/tests/monotouch-test/UIKit/AlertViewTest.cs +++ b/tests/monotouch-test/UIKit/AlertViewTest.cs @@ -2,13 +2,10 @@ #if !__TVOS__ && !MONOMAC -using System; using System.Drawing; using System.Reflection; using CoreGraphics; -using Foundation; using UIKit; -using NUnit.Framework; namespace MonoTouchFixtures.UIKit { diff --git a/tests/monotouch-test/UIKit/AppearanceTest.cs b/tests/monotouch-test/UIKit/AppearanceTest.cs index 93df514dfc2a..f5c17568aa8c 100644 --- a/tests/monotouch-test/UIKit/AppearanceTest.cs +++ b/tests/monotouch-test/UIKit/AppearanceTest.cs @@ -9,13 +9,8 @@ #if !MONOMAC -using System; - -using Foundation; using UIKit; -using ObjCRuntime; -using NUnit.Framework; using Xamarin.Utils; namespace MonoTouchFixtures.UIKit { diff --git a/tests/monotouch-test/UIKit/ApplicationTest.cs b/tests/monotouch-test/UIKit/ApplicationTest.cs index fa6444e35ce7..33a114d4eebc 100644 --- a/tests/monotouch-test/UIKit/ApplicationTest.cs +++ b/tests/monotouch-test/UIKit/ApplicationTest.cs @@ -2,12 +2,8 @@ #if !MONOMAC -using System; using System.Drawing; -using Foundation; using UIKit; -using ObjCRuntime; -using NUnit.Framework; namespace MonoTouchFixtures.UIKit { diff --git a/tests/monotouch-test/UIKit/BarButtonItemTest.cs b/tests/monotouch-test/UIKit/BarButtonItemTest.cs index 8407d7d54604..56e0d21e0ca0 100644 --- a/tests/monotouch-test/UIKit/BarButtonItemTest.cs +++ b/tests/monotouch-test/UIKit/BarButtonItemTest.cs @@ -2,12 +2,9 @@ #if !MONOMAC -using System; using System.Drawing; using System.Reflection; -using Foundation; using UIKit; -using NUnit.Framework; namespace MonoTouchFixtures.UIKit { class MyView : UIView { diff --git a/tests/monotouch-test/UIKit/ButtonTest.cs b/tests/monotouch-test/UIKit/ButtonTest.cs index 2547fc2449f3..2f805b46e1b1 100644 --- a/tests/monotouch-test/UIKit/ButtonTest.cs +++ b/tests/monotouch-test/UIKit/ButtonTest.cs @@ -2,13 +2,9 @@ #if !MONOMAC -using System; using System.Drawing; using CoreGraphics; -using Foundation; using UIKit; -using ObjCRuntime; -using NUnit.Framework; using Xamarin.Utils; namespace MonoTouchFixtures.UIKit { diff --git a/tests/monotouch-test/UIKit/CellAccessoryTest.cs b/tests/monotouch-test/UIKit/CellAccessoryTest.cs index fa8df1636f2d..baa7d7486776 100644 --- a/tests/monotouch-test/UIKit/CellAccessoryTest.cs +++ b/tests/monotouch-test/UIKit/CellAccessoryTest.cs @@ -1,10 +1,6 @@ #if __IOS__ || __TVOS__ -using System; -using Foundation; using UIKit; -using ObjCRuntime; -using NUnit.Framework; namespace MonoTouchFixtures.UIKit { diff --git a/tests/monotouch-test/UIKit/CollectionViewControllerTest.cs b/tests/monotouch-test/UIKit/CollectionViewControllerTest.cs index 015cf6406c91..b95d30e986db 100644 --- a/tests/monotouch-test/UIKit/CollectionViewControllerTest.cs +++ b/tests/monotouch-test/UIKit/CollectionViewControllerTest.cs @@ -2,11 +2,7 @@ #if !MONOMAC -using System; -using Foundation; using UIKit; -using ObjCRuntime; -using NUnit.Framework; using Xamarin.Utils; namespace MonoTouchFixtures.UIKit { diff --git a/tests/monotouch-test/UIKit/CollectionViewTransitionLayoutTest.cs b/tests/monotouch-test/UIKit/CollectionViewTransitionLayoutTest.cs index 1f0141245572..6cf14f641201 100644 --- a/tests/monotouch-test/UIKit/CollectionViewTransitionLayoutTest.cs +++ b/tests/monotouch-test/UIKit/CollectionViewTransitionLayoutTest.cs @@ -2,11 +2,7 @@ #if !MONOMAC -using System; -using Foundation; using UIKit; -using ObjCRuntime; -using NUnit.Framework; using Xamarin.Utils; namespace MonoTouchFixtures.UIKit { diff --git a/tests/monotouch-test/UIKit/ColorTest.cs b/tests/monotouch-test/UIKit/ColorTest.cs index 3b713b137eac..1228268a795e 100644 --- a/tests/monotouch-test/UIKit/ColorTest.cs +++ b/tests/monotouch-test/UIKit/ColorTest.cs @@ -1,13 +1,9 @@ // Copyright 2011-2012 Xamarin Inc. All rights reserved #if !MONOMAC -using System; using System.IO; using System.Drawing; -using Foundation; using UIKit; -using ObjCRuntime; -using NUnit.Framework; namespace MonoTouchFixtures.UIKit { diff --git a/tests/monotouch-test/UIKit/ControlTest.cs b/tests/monotouch-test/UIKit/ControlTest.cs index b125f44f29eb..ad6679f38f82 100644 --- a/tests/monotouch-test/UIKit/ControlTest.cs +++ b/tests/monotouch-test/UIKit/ControlTest.cs @@ -2,15 +2,11 @@ #if !MONOMAC -using System; using System.Drawing; using System.Reflection; -using System.Runtime.InteropServices; using CoreGraphics; -using Foundation; using UIKit; -using NUnit.Framework; namespace MonoTouchFixtures.UIKit { diff --git a/tests/monotouch-test/UIKit/DatePickerTest.cs b/tests/monotouch-test/UIKit/DatePickerTest.cs index 941d4d197baa..e5d1bece91d0 100644 --- a/tests/monotouch-test/UIKit/DatePickerTest.cs +++ b/tests/monotouch-test/UIKit/DatePickerTest.cs @@ -2,12 +2,9 @@ #if !__TVOS__ && !MONOMAC -using System; using System.Drawing; using CoreGraphics; -using Foundation; using UIKit; -using NUnit.Framework; namespace MonoTouchFixtures.UIKit { diff --git a/tests/monotouch-test/UIKit/DeviceTest.cs b/tests/monotouch-test/UIKit/DeviceTest.cs index 451066ba6c02..44f5236d2000 100644 --- a/tests/monotouch-test/UIKit/DeviceTest.cs +++ b/tests/monotouch-test/UIKit/DeviceTest.cs @@ -8,12 +8,8 @@ // #if !MONOMAC -using System; using System.IO; -using Foundation; using UIKit; -using ObjCRuntime; -using NUnit.Framework; namespace MonoTouchFixtures.UIKit { diff --git a/tests/monotouch-test/UIKit/DictationPhrase.cs b/tests/monotouch-test/UIKit/DictationPhrase.cs index 0ea92aab988f..99f79761e292 100644 --- a/tests/monotouch-test/UIKit/DictationPhrase.cs +++ b/tests/monotouch-test/UIKit/DictationPhrase.cs @@ -2,11 +2,8 @@ #if !MONOMAC -using System; using System.Drawing; -using Foundation; using UIKit; -using NUnit.Framework; namespace MonoTouchFixtures.UIKit { diff --git a/tests/monotouch-test/UIKit/DirectionalEdgeInsetsTest.cs b/tests/monotouch-test/UIKit/DirectionalEdgeInsetsTest.cs index 0bfa67d057e5..1b963c354544 100644 --- a/tests/monotouch-test/UIKit/DirectionalEdgeInsetsTest.cs +++ b/tests/monotouch-test/UIKit/DirectionalEdgeInsetsTest.cs @@ -9,11 +9,8 @@ #if !MONOMAC -using System; using System.Drawing; -using Foundation; using UIKit; -using NUnit.Framework; namespace MonoTouchFixtures.UIKit { diff --git a/tests/monotouch-test/UIKit/EdgeInsetsTest.cs b/tests/monotouch-test/UIKit/EdgeInsetsTest.cs index c1fc5dfee5b1..8b0948252c09 100644 --- a/tests/monotouch-test/UIKit/EdgeInsetsTest.cs +++ b/tests/monotouch-test/UIKit/EdgeInsetsTest.cs @@ -8,13 +8,9 @@ // #if !MONOMAC -using System; using System.Drawing; using CoreGraphics; -using Foundation; using UIKit; -using ObjCRuntime; -using NUnit.Framework; namespace MonoTouchFixtures.UIKit { diff --git a/tests/monotouch-test/UIKit/FloatRangeTest.cs b/tests/monotouch-test/UIKit/FloatRangeTest.cs index 0b5e5b9ec25d..e0296e92ae95 100644 --- a/tests/monotouch-test/UIKit/FloatRangeTest.cs +++ b/tests/monotouch-test/UIKit/FloatRangeTest.cs @@ -6,13 +6,8 @@ #if !MONOMAC -using System; using System.Drawing; -using System.Runtime.InteropServices; -using Foundation; -using ObjCRuntime; using UIKit; -using NUnit.Framework; namespace MonoTouchFixtures.UIKit { diff --git a/tests/monotouch-test/UIKit/FontTest.cs b/tests/monotouch-test/UIKit/FontTest.cs index 71814e97fd51..68e642179ae3 100644 --- a/tests/monotouch-test/UIKit/FontTest.cs +++ b/tests/monotouch-test/UIKit/FontTest.cs @@ -1,12 +1,8 @@ // Copyright 2011 Xamarin Inc. All rights reserved #if !MONOMAC -using System; using System.Drawing; -using Foundation; using UIKit; -using ObjCRuntime; -using NUnit.Framework; namespace MonoTouchFixtures.UIKit { diff --git a/tests/monotouch-test/UIKit/GestureRecognizerTest.cs b/tests/monotouch-test/UIKit/GestureRecognizerTest.cs index b8279f82a26d..eb7f28064135 100644 --- a/tests/monotouch-test/UIKit/GestureRecognizerTest.cs +++ b/tests/monotouch-test/UIKit/GestureRecognizerTest.cs @@ -9,11 +9,7 @@ #if !MONOMAC -using System; -using System.Collections.Generic; -using Foundation; using UIKit; -using NUnit.Framework; using System.Threading; namespace MonoTouchFixtures.UIKit { diff --git a/tests/monotouch-test/UIKit/GraphicsRendererTest.cs b/tests/monotouch-test/UIKit/GraphicsRendererTest.cs index 6a5dc8dc0675..4519889bc5ed 100644 --- a/tests/monotouch-test/UIKit/GraphicsRendererTest.cs +++ b/tests/monotouch-test/UIKit/GraphicsRendererTest.cs @@ -9,11 +9,7 @@ #if !MONOMAC -using System; -using Foundation; using UIKit; -using ObjCRuntime; -using NUnit.Framework; namespace MonoTouchFixtures.UIKit { diff --git a/tests/monotouch-test/UIKit/GuidedAccessRestrictionTest.cs b/tests/monotouch-test/UIKit/GuidedAccessRestrictionTest.cs index 85b0fdd90168..46b0992379eb 100644 --- a/tests/monotouch-test/UIKit/GuidedAccessRestrictionTest.cs +++ b/tests/monotouch-test/UIKit/GuidedAccessRestrictionTest.cs @@ -9,11 +9,7 @@ #if !MONOMAC -using System; -using Foundation; using UIKit; -using ObjCRuntime; -using NUnit.Framework; using Xamarin.Utils; namespace MonoTouchFixtures.UIKit { diff --git a/tests/monotouch-test/UIKit/ImageTest.cs b/tests/monotouch-test/UIKit/ImageTest.cs index 29647773dfd2..1afc0dba0b32 100644 --- a/tests/monotouch-test/UIKit/ImageTest.cs +++ b/tests/monotouch-test/UIKit/ImageTest.cs @@ -1,15 +1,11 @@ // Copyright 2011, 2013 Xamarin Inc. All rights reserved #if !MONOMAC -using System; using System.Drawing; using System.IO; using System.Threading; using CoreGraphics; -using Foundation; using UIKit; -using ObjCRuntime; -using NUnit.Framework; namespace MonoTouchFixtures.UIKit { diff --git a/tests/monotouch-test/UIKit/ImageViewTest.cs b/tests/monotouch-test/UIKit/ImageViewTest.cs index 299575717b89..5b88d117629e 100644 --- a/tests/monotouch-test/UIKit/ImageViewTest.cs +++ b/tests/monotouch-test/UIKit/ImageViewTest.cs @@ -2,13 +2,10 @@ #if !MONOMAC -using System; using System.Drawing; using System.Reflection; using CoreGraphics; -using Foundation; using UIKit; -using NUnit.Framework; namespace MonoTouchFixtures.UIKit { [TestFixture] diff --git a/tests/monotouch-test/UIKit/KeyCommandTest.cs b/tests/monotouch-test/UIKit/KeyCommandTest.cs index b78c02082dc4..de8d9857c245 100644 --- a/tests/monotouch-test/UIKit/KeyCommandTest.cs +++ b/tests/monotouch-test/UIKit/KeyCommandTest.cs @@ -1,13 +1,7 @@ #if __IOS__ -using System; - -using Foundation; -using ObjCRuntime; using UIKit; -using NUnit.Framework; - namespace MonoTouchFixtures.UIKit { [TestFixture] diff --git a/tests/monotouch-test/UIKit/LabelTest.cs b/tests/monotouch-test/UIKit/LabelTest.cs index 218003483781..4cd20716be36 100644 --- a/tests/monotouch-test/UIKit/LabelTest.cs +++ b/tests/monotouch-test/UIKit/LabelTest.cs @@ -2,12 +2,9 @@ #if !MONOMAC -using System; using System.Drawing; using CoreGraphics; -using Foundation; using UIKit; -using NUnit.Framework; namespace MonoTouchFixtures.UIKit { diff --git a/tests/monotouch-test/UIKit/LayoutConstraintTest.cs b/tests/monotouch-test/UIKit/LayoutConstraintTest.cs index 9e2b323ff59f..b27bc28363c7 100644 --- a/tests/monotouch-test/UIKit/LayoutConstraintTest.cs +++ b/tests/monotouch-test/UIKit/LayoutConstraintTest.cs @@ -2,11 +2,8 @@ #if !MONOMAC -using System; using System.Drawing; -using Foundation; using UIKit; -using NUnit.Framework; namespace MonoTouchFixtures.UIKit { diff --git a/tests/monotouch-test/UIKit/LayoutManagerTest.cs b/tests/monotouch-test/UIKit/LayoutManagerTest.cs index 08b61060be1e..199e03d07037 100644 --- a/tests/monotouch-test/UIKit/LayoutManagerTest.cs +++ b/tests/monotouch-test/UIKit/LayoutManagerTest.cs @@ -9,11 +9,7 @@ #if !MONOMAC -using System; -using Foundation; using UIKit; -using ObjCRuntime; -using NUnit.Framework; using Xamarin.Utils; namespace MonoTouchFixtures.UIKit { diff --git a/tests/monotouch-test/UIKit/LocalNotificationTest.cs b/tests/monotouch-test/UIKit/LocalNotificationTest.cs index e09457b9bd84..4e98f4d443e5 100644 --- a/tests/monotouch-test/UIKit/LocalNotificationTest.cs +++ b/tests/monotouch-test/UIKit/LocalNotificationTest.cs @@ -9,11 +9,7 @@ #if !__TVOS__ && !MONOMAC -using System; -using Foundation; -using ObjCRuntime; using UIKit; -using NUnit.Framework; namespace MonoTouchFixtures.UIKit { diff --git a/tests/monotouch-test/UIKit/NSDiffableDataSourceSnapshotTest.cs b/tests/monotouch-test/UIKit/NSDiffableDataSourceSnapshotTest.cs index 35384ef32126..512d32658478 100644 --- a/tests/monotouch-test/UIKit/NSDiffableDataSourceSnapshotTest.cs +++ b/tests/monotouch-test/UIKit/NSDiffableDataSourceSnapshotTest.cs @@ -9,11 +9,7 @@ // #if !MONOMAC -using System; -using NUnit.Framework; -using Foundation; using UIKit; -using ObjCRuntime; namespace MonoTouchFixtures.UIKit { [TestFixture] diff --git a/tests/monotouch-test/UIKit/NSTextStorageTest.cs b/tests/monotouch-test/UIKit/NSTextStorageTest.cs index caacae365204..4bf6f3bc88b7 100644 --- a/tests/monotouch-test/UIKit/NSTextStorageTest.cs +++ b/tests/monotouch-test/UIKit/NSTextStorageTest.cs @@ -2,21 +2,16 @@ #if HAS_UIKIT || HAS_APPKIT -using System; using System.Drawing; #if HAS_APPKIT using AppKit; #endif using CoreGraphics; -using Foundation; -using ObjCRuntime; #if HAS_UIKIT using UIKit; #endif -using NUnit.Framework; - namespace MonoTouchFixtures.XKit { [TestFixture] [Preserve (AllMembers = true)] diff --git a/tests/monotouch-test/UIKit/NavigationBarTest.cs b/tests/monotouch-test/UIKit/NavigationBarTest.cs index 9aacff5204fd..6064a1f90e47 100644 --- a/tests/monotouch-test/UIKit/NavigationBarTest.cs +++ b/tests/monotouch-test/UIKit/NavigationBarTest.cs @@ -2,13 +2,10 @@ #if !MONOMAC -using System; using System.Drawing; using System.Reflection; using CoreGraphics; -using Foundation; using UIKit; -using NUnit.Framework; namespace MonoTouchFixtures.UIKit { [TestFixture] diff --git a/tests/monotouch-test/UIKit/NavigationControllerTest.cs b/tests/monotouch-test/UIKit/NavigationControllerTest.cs index 5f035cf5dd71..546a7982985e 100644 --- a/tests/monotouch-test/UIKit/NavigationControllerTest.cs +++ b/tests/monotouch-test/UIKit/NavigationControllerTest.cs @@ -9,12 +9,9 @@ #if !MONOMAC -using System; using System.Drawing; using System.Reflection; -using Foundation; using UIKit; -using NUnit.Framework; namespace MonoTouchFixtures.UIKit { diff --git a/tests/monotouch-test/UIKit/NavigationItemTest.cs b/tests/monotouch-test/UIKit/NavigationItemTest.cs index f5d3905fb223..840ac5207105 100644 --- a/tests/monotouch-test/UIKit/NavigationItemTest.cs +++ b/tests/monotouch-test/UIKit/NavigationItemTest.cs @@ -9,12 +9,9 @@ #if !MONOMAC -using System; using System.Drawing; using System.Reflection; -using Foundation; using UIKit; -using NUnit.Framework; namespace MonoTouchFixtures.UIKit { diff --git a/tests/monotouch-test/UIKit/NibTest.cs b/tests/monotouch-test/UIKit/NibTest.cs index 4d51f4db8768..e2fec0f03346 100644 --- a/tests/monotouch-test/UIKit/NibTest.cs +++ b/tests/monotouch-test/UIKit/NibTest.cs @@ -9,13 +9,7 @@ #if !MONOMAC -using System; - -using Foundation; using UIKit; -using ObjCRuntime; - -using NUnit.Framework; namespace MonoTouchFixtures.UIKit { diff --git a/tests/monotouch-test/UIKit/PageControlTest.cs b/tests/monotouch-test/UIKit/PageControlTest.cs index da4da4554f47..47b53ccd7e7e 100644 --- a/tests/monotouch-test/UIKit/PageControlTest.cs +++ b/tests/monotouch-test/UIKit/PageControlTest.cs @@ -2,12 +2,9 @@ #if !MONOMAC -using System; using System.Drawing; using CoreGraphics; -using Foundation; using UIKit; -using NUnit.Framework; namespace MonoTouchFixtures.UIKit { diff --git a/tests/monotouch-test/UIKit/PageViewControllerTest.cs b/tests/monotouch-test/UIKit/PageViewControllerTest.cs index 15b0c7d84233..7c6692f55d7d 100644 --- a/tests/monotouch-test/UIKit/PageViewControllerTest.cs +++ b/tests/monotouch-test/UIKit/PageViewControllerTest.cs @@ -9,11 +9,8 @@ #if !MONOMAC -using System; using System.Reflection; -using Foundation; using UIKit; -using NUnit.Framework; namespace MonoTouchFixtures.UIKit { [TestFixture] diff --git a/tests/monotouch-test/UIKit/PanGestureRecognizerTest.cs b/tests/monotouch-test/UIKit/PanGestureRecognizerTest.cs index c415d2c22af8..c77203df8938 100644 --- a/tests/monotouch-test/UIKit/PanGestureRecognizerTest.cs +++ b/tests/monotouch-test/UIKit/PanGestureRecognizerTest.cs @@ -9,12 +9,9 @@ #if !MONOMAC -using System; using System.Drawing; using CoreGraphics; -using Foundation; using UIKit; -using NUnit.Framework; namespace MonoTouchFixtures.UIKit { diff --git a/tests/monotouch-test/UIKit/PasteboardTest.cs b/tests/monotouch-test/UIKit/PasteboardTest.cs index e89d87695e88..8b4457573679 100644 --- a/tests/monotouch-test/UIKit/PasteboardTest.cs +++ b/tests/monotouch-test/UIKit/PasteboardTest.cs @@ -2,16 +2,12 @@ #if !__TVOS__ && !MONOMAC -using System; using System.Drawing; using System.IO; -using Foundation; using UIKit; using CoreGraphics; -using NUnit.Framework; - namespace MonoTouchFixtures.UIKit { [TestFixture] diff --git a/tests/monotouch-test/UIKit/PickerViewTest.cs b/tests/monotouch-test/UIKit/PickerViewTest.cs index b9b9dd80ea72..38ed5f708b65 100644 --- a/tests/monotouch-test/UIKit/PickerViewTest.cs +++ b/tests/monotouch-test/UIKit/PickerViewTest.cs @@ -2,13 +2,9 @@ #if !__TVOS__ && !MONOMAC -using System; using System.Drawing; using CoreGraphics; -using Foundation; -using ObjCRuntime; using UIKit; -using NUnit.Framework; namespace MonoTouchFixtures.UIKit { diff --git a/tests/monotouch-test/UIKit/PopoverBackgroundViewTest.cs b/tests/monotouch-test/UIKit/PopoverBackgroundViewTest.cs index 7645c3fd4a6c..b4a0616f661a 100644 --- a/tests/monotouch-test/UIKit/PopoverBackgroundViewTest.cs +++ b/tests/monotouch-test/UIKit/PopoverBackgroundViewTest.cs @@ -2,12 +2,9 @@ #if !MONOMAC -using System; using System.Drawing; using CoreGraphics; -using Foundation; using UIKit; -using NUnit.Framework; namespace MonoTouchFixtures.UIKit { diff --git a/tests/monotouch-test/UIKit/PopoverControllerTest.cs b/tests/monotouch-test/UIKit/PopoverControllerTest.cs index b3344008541a..eed1f37db61d 100644 --- a/tests/monotouch-test/UIKit/PopoverControllerTest.cs +++ b/tests/monotouch-test/UIKit/PopoverControllerTest.cs @@ -2,13 +2,9 @@ #if !MONOMAC -using System; using System.Drawing; using CoreGraphics; -using Foundation; using UIKit; -using ObjCRuntime; -using NUnit.Framework; using Xamarin.Utils; using RectangleF = CoreGraphics.CGRect; diff --git a/tests/monotouch-test/UIKit/PopoverPresentationControllerTest.cs b/tests/monotouch-test/UIKit/PopoverPresentationControllerTest.cs index f5e077405f9f..d1c03c47cf54 100644 --- a/tests/monotouch-test/UIKit/PopoverPresentationControllerTest.cs +++ b/tests/monotouch-test/UIKit/PopoverPresentationControllerTest.cs @@ -2,11 +2,7 @@ #if !__TVOS__ && !MONOMAC -using System; -using Foundation; using UIKit; -using ObjCRuntime; -using NUnit.Framework; using Xamarin.Utils; namespace MonoTouchFixtures.UIKit { diff --git a/tests/monotouch-test/UIKit/ProgressViewTest.cs b/tests/monotouch-test/UIKit/ProgressViewTest.cs index 96374b4cdd79..929dc915ac0b 100644 --- a/tests/monotouch-test/UIKit/ProgressViewTest.cs +++ b/tests/monotouch-test/UIKit/ProgressViewTest.cs @@ -2,12 +2,9 @@ #if !MONOMAC -using System; using System.Drawing; using CoreGraphics; -using Foundation; using UIKit; -using NUnit.Framework; namespace MonoTouchFixtures.UIKit { diff --git a/tests/monotouch-test/UIKit/ReferenceLibraryViewControllerTest.cs b/tests/monotouch-test/UIKit/ReferenceLibraryViewControllerTest.cs index 3d1506f1f5a4..03c011cd72dd 100644 --- a/tests/monotouch-test/UIKit/ReferenceLibraryViewControllerTest.cs +++ b/tests/monotouch-test/UIKit/ReferenceLibraryViewControllerTest.cs @@ -2,11 +2,7 @@ #if !__TVOS__ && !MONOMAC -using System; -using Foundation; -using ObjCRuntime; using UIKit; -using NUnit.Framework; using Xamarin.Utils; namespace MonoTouchFixtures.UIKit { diff --git a/tests/monotouch-test/UIKit/ScrollViewTest.cs b/tests/monotouch-test/UIKit/ScrollViewTest.cs index b3a8f6c45d58..4c957c6b2200 100644 --- a/tests/monotouch-test/UIKit/ScrollViewTest.cs +++ b/tests/monotouch-test/UIKit/ScrollViewTest.cs @@ -2,12 +2,9 @@ #if !MONOMAC -using System; using System.Drawing; using CoreGraphics; -using Foundation; using UIKit; -using NUnit.Framework; namespace MonoTouchFixtures.UIKit { diff --git a/tests/monotouch-test/UIKit/SearchBarTest.cs b/tests/monotouch-test/UIKit/SearchBarTest.cs index 8cd77c439641..f04c0640c818 100644 --- a/tests/monotouch-test/UIKit/SearchBarTest.cs +++ b/tests/monotouch-test/UIKit/SearchBarTest.cs @@ -2,12 +2,9 @@ #if !MONOMAC -using System; using System.Drawing; using CoreGraphics; -using Foundation; using UIKit; -using NUnit.Framework; namespace MonoTouchFixtures.UIKit { diff --git a/tests/monotouch-test/UIKit/SegmentedControlTest.cs b/tests/monotouch-test/UIKit/SegmentedControlTest.cs index 9dd5536513b5..dd4ef58077b7 100644 --- a/tests/monotouch-test/UIKit/SegmentedControlTest.cs +++ b/tests/monotouch-test/UIKit/SegmentedControlTest.cs @@ -2,14 +2,10 @@ #if !MONOMAC -using System; using System.Drawing; using System.IO; using CoreGraphics; -using Foundation; -using ObjCRuntime; using UIKit; -using NUnit.Framework; namespace MonoTouchFixtures.UIKit { diff --git a/tests/monotouch-test/UIKit/SimpleTextPrintFormatterTest.cs b/tests/monotouch-test/UIKit/SimpleTextPrintFormatterTest.cs index e37656f571f3..aecc939203d4 100644 --- a/tests/monotouch-test/UIKit/SimpleTextPrintFormatterTest.cs +++ b/tests/monotouch-test/UIKit/SimpleTextPrintFormatterTest.cs @@ -9,13 +9,9 @@ #if !__TVOS__ && !MONOMAC -using System; using System.IO; using System.Threading; -using Foundation; using UIKit; -using ObjCRuntime; -using NUnit.Framework; using Xamarin.Utils; namespace MonoTouchFixtures.UIKit { diff --git a/tests/monotouch-test/UIKit/SplitViewControllerTest.cs b/tests/monotouch-test/UIKit/SplitViewControllerTest.cs index 562781ad5d4d..b523a8000d37 100644 --- a/tests/monotouch-test/UIKit/SplitViewControllerTest.cs +++ b/tests/monotouch-test/UIKit/SplitViewControllerTest.cs @@ -2,12 +2,9 @@ #if !MONOMAC -using System; using System.Drawing; using System.Reflection; -using Foundation; using UIKit; -using NUnit.Framework; namespace MonoTouchFixtures.UIKit { [TestFixture] diff --git a/tests/monotouch-test/UIKit/StepperTest.cs b/tests/monotouch-test/UIKit/StepperTest.cs index 9866f1349cf4..0d42c047ea12 100644 --- a/tests/monotouch-test/UIKit/StepperTest.cs +++ b/tests/monotouch-test/UIKit/StepperTest.cs @@ -2,12 +2,9 @@ #if !__TVOS__ && !MONOMAC -using System; using System.Drawing; using CoreGraphics; -using Foundation; using UIKit; -using NUnit.Framework; namespace MonoTouchFixtures.UIKit { diff --git a/tests/monotouch-test/UIKit/StringAttributesTest.cs b/tests/monotouch-test/UIKit/StringAttributesTest.cs index dbdef68805b4..dcdd7490f245 100644 --- a/tests/monotouch-test/UIKit/StringAttributesTest.cs +++ b/tests/monotouch-test/UIKit/StringAttributesTest.cs @@ -8,11 +8,8 @@ // #if !MONOMAC -using System; -using Foundation; using CoreGraphics; using UIKit; -using NUnit.Framework; using TextAttributes = UIKit.UIStringAttributes; diff --git a/tests/monotouch-test/UIKit/SwitchTest.cs b/tests/monotouch-test/UIKit/SwitchTest.cs index e9246ad8b860..afbfe5fc5299 100644 --- a/tests/monotouch-test/UIKit/SwitchTest.cs +++ b/tests/monotouch-test/UIKit/SwitchTest.cs @@ -2,12 +2,9 @@ #if !__TVOS__ && !MONOMAC -using System; using System.Drawing; using CoreGraphics; -using Foundation; using UIKit; -using NUnit.Framework; namespace MonoTouchFixtures.UIKit { diff --git a/tests/monotouch-test/UIKit/TabBarControllerTest.cs b/tests/monotouch-test/UIKit/TabBarControllerTest.cs index e63ce913dbac..bbbbdad9d909 100644 --- a/tests/monotouch-test/UIKit/TabBarControllerTest.cs +++ b/tests/monotouch-test/UIKit/TabBarControllerTest.cs @@ -9,12 +9,9 @@ #if !MONOMAC -using System; using System.Drawing; using System.Reflection; -using Foundation; using UIKit; -using NUnit.Framework; namespace MonoTouchFixtures.UIKit { [TestFixture] diff --git a/tests/monotouch-test/UIKit/TabBarTest.cs b/tests/monotouch-test/UIKit/TabBarTest.cs index c40cb5a3f46c..bef1c6990d6d 100644 --- a/tests/monotouch-test/UIKit/TabBarTest.cs +++ b/tests/monotouch-test/UIKit/TabBarTest.cs @@ -2,14 +2,10 @@ #if !MONOMAC -using System; using System.Drawing; using System.Reflection; using CoreGraphics; -using Foundation; using UIKit; -using ObjCRuntime; -using NUnit.Framework; using Xamarin.Utils; namespace MonoTouchFixtures.UIKit { diff --git a/tests/monotouch-test/UIKit/TableViewCellTest.cs b/tests/monotouch-test/UIKit/TableViewCellTest.cs index 6005940e037f..07402f235479 100644 --- a/tests/monotouch-test/UIKit/TableViewCellTest.cs +++ b/tests/monotouch-test/UIKit/TableViewCellTest.cs @@ -2,13 +2,9 @@ #if !MONOMAC -using System; using System.Drawing; using CoreGraphics; -using Foundation; using UIKit; -using ObjCRuntime; -using NUnit.Framework; namespace MonoTouchFixtures.UIKit { diff --git a/tests/monotouch-test/UIKit/TableViewControllerTest.cs b/tests/monotouch-test/UIKit/TableViewControllerTest.cs index 54143ef06db8..3c88a06076ca 100644 --- a/tests/monotouch-test/UIKit/TableViewControllerTest.cs +++ b/tests/monotouch-test/UIKit/TableViewControllerTest.cs @@ -9,11 +9,8 @@ #if !MONOMAC -using System; using System.Drawing; -using Foundation; using UIKit; -using NUnit.Framework; namespace MonoTouchFixtures.UIKit { diff --git a/tests/monotouch-test/UIKit/TableViewTest.cs b/tests/monotouch-test/UIKit/TableViewTest.cs index 6abf41464fc2..2829a5cf04b8 100644 --- a/tests/monotouch-test/UIKit/TableViewTest.cs +++ b/tests/monotouch-test/UIKit/TableViewTest.cs @@ -2,12 +2,9 @@ #if !MONOMAC -using System; using System.Drawing; using CoreGraphics; -using Foundation; using UIKit; -using NUnit.Framework; namespace MonoTouchFixtures.UIKit { diff --git a/tests/monotouch-test/UIKit/TarBarItemTest.cs b/tests/monotouch-test/UIKit/TarBarItemTest.cs index 500210a6e8aa..ba7d632a7e78 100644 --- a/tests/monotouch-test/UIKit/TarBarItemTest.cs +++ b/tests/monotouch-test/UIKit/TarBarItemTest.cs @@ -9,13 +9,9 @@ #if !MONOMAC -using System; using System.Drawing; using System.Reflection; -using Foundation; -using ObjCRuntime; using UIKit; -using NUnit.Framework; using Xamarin.Utils; namespace MonoTouchFixtures.UIKit { diff --git a/tests/monotouch-test/UIKit/TextAttachmentTest.cs b/tests/monotouch-test/UIKit/TextAttachmentTest.cs index 450f32396b36..cf71035f9b7d 100644 --- a/tests/monotouch-test/UIKit/TextAttachmentTest.cs +++ b/tests/monotouch-test/UIKit/TextAttachmentTest.cs @@ -9,11 +9,7 @@ #if !MONOMAC -using System; -using Foundation; using UIKit; -using ObjCRuntime; -using NUnit.Framework; using Xamarin.Utils; namespace MonoTouchFixtures.UIKit { diff --git a/tests/monotouch-test/UIKit/TextContainerTest.cs b/tests/monotouch-test/UIKit/TextContainerTest.cs index 1eaa7ed24875..c905704dac61 100644 --- a/tests/monotouch-test/UIKit/TextContainerTest.cs +++ b/tests/monotouch-test/UIKit/TextContainerTest.cs @@ -9,11 +9,7 @@ #if !MONOMAC -using System; -using Foundation; using UIKit; -using ObjCRuntime; -using NUnit.Framework; using Xamarin.Utils; namespace MonoTouchFixtures.UIKit { diff --git a/tests/monotouch-test/UIKit/TextFieldTest.cs b/tests/monotouch-test/UIKit/TextFieldTest.cs index 2bccddf472f4..7dc62eccb94c 100644 --- a/tests/monotouch-test/UIKit/TextFieldTest.cs +++ b/tests/monotouch-test/UIKit/TextFieldTest.cs @@ -2,12 +2,9 @@ #if !MONOMAC -using System; using System.Drawing; -using Foundation; using UIKit; using CoreGraphics; -using NUnit.Framework; namespace MonoTouchFixtures.UIKit { diff --git a/tests/monotouch-test/UIKit/TextViewTest.cs b/tests/monotouch-test/UIKit/TextViewTest.cs index 05d1249d3853..f74c6be945dd 100644 --- a/tests/monotouch-test/UIKit/TextViewTest.cs +++ b/tests/monotouch-test/UIKit/TextViewTest.cs @@ -2,13 +2,9 @@ #if !MONOMAC -using System; using System.Drawing; using CoreGraphics; -using Foundation; using UIKit; -using ObjCRuntime; -using NUnit.Framework; using Xamarin.Utils; namespace MonoTouchFixtures.UIKit { diff --git a/tests/monotouch-test/UIKit/ToolbarTest.cs b/tests/monotouch-test/UIKit/ToolbarTest.cs index 2b90f9970f3d..5bb2a795976c 100644 --- a/tests/monotouch-test/UIKit/ToolbarTest.cs +++ b/tests/monotouch-test/UIKit/ToolbarTest.cs @@ -2,12 +2,9 @@ #if !__TVOS__ && !MONOMAC -using System; using System.Drawing; using CoreGraphics; -using Foundation; using UIKit; -using NUnit.Framework; namespace MonoTouchFixtures.UIKit { diff --git a/tests/monotouch-test/UIKit/UIAlertControllerTest.cs b/tests/monotouch-test/UIKit/UIAlertControllerTest.cs index 3c957fcebf10..1d461611c4ff 100644 --- a/tests/monotouch-test/UIKit/UIAlertControllerTest.cs +++ b/tests/monotouch-test/UIKit/UIAlertControllerTest.cs @@ -10,12 +10,8 @@ #if !MONOMAC -using System; using System.Drawing; -using Foundation; using UIKit; -using ObjCRuntime; -using NUnit.Framework; using Xamarin.Utils; namespace MonoTouchFixtures.UIKit { diff --git a/tests/monotouch-test/UIKit/UIContentSizeCategoryTest.cs b/tests/monotouch-test/UIKit/UIContentSizeCategoryTest.cs index 7e7eb4c94d69..52af97cde3dc 100644 --- a/tests/monotouch-test/UIKit/UIContentSizeCategoryTest.cs +++ b/tests/monotouch-test/UIKit/UIContentSizeCategoryTest.cs @@ -9,9 +9,6 @@ #if !MONOMAC -using System; -using Foundation; -using NUnit.Framework; using UIKit; namespace MonoTouchFixtures.UIKit { diff --git a/tests/monotouch-test/UIKit/UIDocumentTest.cs b/tests/monotouch-test/UIKit/UIDocumentTest.cs index a4a7cc41496e..5543f5996f07 100644 --- a/tests/monotouch-test/UIKit/UIDocumentTest.cs +++ b/tests/monotouch-test/UIKit/UIDocumentTest.cs @@ -9,15 +9,11 @@ #if !__TVOS__ && !MONOMAC -using System; using System.IO; using System.Reflection; using System.Threading; -using Foundation; using UIKit; -using ObjCRuntime; using MonoTouchException = ObjCRuntime.RuntimeException; -using NUnit.Framework; using Xamarin.Utils; namespace MonoTouchFixtures.UIKit { diff --git a/tests/monotouch-test/UIKit/UIDragDropSessionExtensionsTest.cs b/tests/monotouch-test/UIKit/UIDragDropSessionExtensionsTest.cs index 14d4b149cdf6..d9447955fbb9 100644 --- a/tests/monotouch-test/UIKit/UIDragDropSessionExtensionsTest.cs +++ b/tests/monotouch-test/UIKit/UIDragDropSessionExtensionsTest.cs @@ -10,12 +10,8 @@ #if !__TVOS__ && !MONOMAC -using System; using CoreGraphics; -using Foundation; -using ObjCRuntime; using UIKit; -using NUnit.Framework; namespace MonoTouchFixtures.UIKit { [TestFixture] diff --git a/tests/monotouch-test/UIKit/UIListSeparatorConfigurationTest.cs b/tests/monotouch-test/UIKit/UIListSeparatorConfigurationTest.cs index e7ad7bb260e0..bb873e063db9 100644 --- a/tests/monotouch-test/UIKit/UIListSeparatorConfigurationTest.cs +++ b/tests/monotouch-test/UIKit/UIListSeparatorConfigurationTest.cs @@ -9,12 +9,8 @@ #if __IOS__ -using System; using System.Drawing; -using Foundation; using UIKit; -using ObjCRuntime; -using NUnit.Framework; namespace MonoTouchFixtures.UIKit { [TestFixture] diff --git a/tests/monotouch-test/UIKit/UIPasteConfigurationSupportingTest.cs b/tests/monotouch-test/UIKit/UIPasteConfigurationSupportingTest.cs index 469c729287fe..41a8277aa384 100644 --- a/tests/monotouch-test/UIKit/UIPasteConfigurationSupportingTest.cs +++ b/tests/monotouch-test/UIKit/UIPasteConfigurationSupportingTest.cs @@ -10,13 +10,9 @@ #if !__TVOS__ && !MONOMAC -using System; using CoreGraphics; -using Foundation; using SpriteKit; -using ObjCRuntime; using UIKit; -using NUnit.Framework; namespace MonoTouchFixtures.UIKit { [TestFixture] diff --git a/tests/monotouch-test/UIKit/UIPointerAccessory.cs b/tests/monotouch-test/UIKit/UIPointerAccessory.cs index aed451032287..18b95fc79939 100644 --- a/tests/monotouch-test/UIKit/UIPointerAccessory.cs +++ b/tests/monotouch-test/UIKit/UIPointerAccessory.cs @@ -9,11 +9,7 @@ // #if __IOS__ -using System; -using NUnit.Framework; -using Foundation; using UIKit; -using ObjCRuntime; namespace MonoTouchFixtures.UIKit { [TestFixture] diff --git a/tests/monotouch-test/UIKit/UISearchControllerTest.cs b/tests/monotouch-test/UIKit/UISearchControllerTest.cs index caa141556187..e95fa4a9e3e7 100644 --- a/tests/monotouch-test/UIKit/UISearchControllerTest.cs +++ b/tests/monotouch-test/UIKit/UISearchControllerTest.cs @@ -10,12 +10,8 @@ #if !MONOMAC -using System; using System.Drawing; -using Foundation; using UIKit; -using ObjCRuntime; -using NUnit.Framework; using Xamarin.Utils; namespace MonoTouchFixtures.UIKit { diff --git a/tests/monotouch-test/UIKit/UISpringLoadedInteractionSupportingTest.cs b/tests/monotouch-test/UIKit/UISpringLoadedInteractionSupportingTest.cs index 41c824ec5a2e..32228ed2e231 100644 --- a/tests/monotouch-test/UIKit/UISpringLoadedInteractionSupportingTest.cs +++ b/tests/monotouch-test/UIKit/UISpringLoadedInteractionSupportingTest.cs @@ -10,15 +10,11 @@ #if !__TVOS__ && !MONOMAC -using System; using CoreGraphics; -using Foundation; -using ObjCRuntime; using UIKit; #if HAS_INTENTUI using IntentsUI; #endif -using NUnit.Framework; namespace MonoTouchFixtures.UIKit { [TestFixture] diff --git a/tests/monotouch-test/UIKit/UIStackViewTest.cs b/tests/monotouch-test/UIKit/UIStackViewTest.cs index c6bb94671f81..2a2065b573dd 100644 --- a/tests/monotouch-test/UIKit/UIStackViewTest.cs +++ b/tests/monotouch-test/UIKit/UIStackViewTest.cs @@ -10,13 +10,9 @@ #if !MONOMAC -using System; using System.Drawing; using CoreGraphics; -using Foundation; using UIKit; -using ObjCRuntime; -using NUnit.Framework; using Xamarin.Utils; namespace MonoTouchFixtures.UIKit { diff --git a/tests/monotouch-test/UIKit/UITextFormattingViewControllerFormattingDescriptorTest.cs b/tests/monotouch-test/UIKit/UITextFormattingViewControllerFormattingDescriptorTest.cs index 865dae7f772e..5cab73b1463c 100644 --- a/tests/monotouch-test/UIKit/UITextFormattingViewControllerFormattingDescriptorTest.cs +++ b/tests/monotouch-test/UIKit/UITextFormattingViewControllerFormattingDescriptorTest.cs @@ -1,17 +1,11 @@ #if __IOS__ && !__MACCATALYST__ -using System; -using System.Collections.Generic; using System.Drawing; using System.Linq; using CoreGraphics; -using Foundation; -using ObjCRuntime; using UIKit; -using NUnit.Framework; - namespace MonoTouchFixtures.UIKit { [TestFixture] diff --git a/tests/monotouch-test/UIKit/UITraitOverrides.cs b/tests/monotouch-test/UIKit/UITraitOverrides.cs index de748785d777..93cbb0fc6bb9 100644 --- a/tests/monotouch-test/UIKit/UITraitOverrides.cs +++ b/tests/monotouch-test/UIKit/UITraitOverrides.cs @@ -9,16 +9,11 @@ #if !__MACOS__ -using System; using System.IO; using System.Reflection; using System.Threading; -using Foundation; using UIKit; -using ObjCRuntime; - -using NUnit.Framework; using Xamarin.Utils; diff --git a/tests/monotouch-test/UIKit/VibrancyEffectTest.cs b/tests/monotouch-test/UIKit/VibrancyEffectTest.cs index 4812cfaed837..2d07f5b4cee3 100644 --- a/tests/monotouch-test/UIKit/VibrancyEffectTest.cs +++ b/tests/monotouch-test/UIKit/VibrancyEffectTest.cs @@ -9,14 +9,10 @@ #if HAS_NOTIFICATIONCENTER && HAS_UIKIT -using System; -using Foundation; using UIKit; -using ObjCRuntime; #if !__TVOS__ using NotificationCenter; #endif -using NUnit.Framework; using Xamarin.Utils; namespace MonoTouchFixtures.UIKit { diff --git a/tests/monotouch-test/UIKit/ViewControllerTest.cs b/tests/monotouch-test/UIKit/ViewControllerTest.cs index 05306f074857..8f5bb6a03337 100644 --- a/tests/monotouch-test/UIKit/ViewControllerTest.cs +++ b/tests/monotouch-test/UIKit/ViewControllerTest.cs @@ -9,12 +9,8 @@ #if !MONOMAC -using System; using System.Reflection; -using Foundation; using UIKit; -using ObjCRuntime; -using NUnit.Framework; using Xamarin.Utils; namespace MonoTouchFixtures.UIKit { diff --git a/tests/monotouch-test/UIKit/ViewTest.cs b/tests/monotouch-test/UIKit/ViewTest.cs index 42fd6d4f8ba9..4ab645a06a2a 100644 --- a/tests/monotouch-test/UIKit/ViewTest.cs +++ b/tests/monotouch-test/UIKit/ViewTest.cs @@ -2,13 +2,9 @@ #if !MONOMAC -using System; using System.Drawing; using CoreGraphics; -using Foundation; using UIKit; -using ObjCRuntime; -using NUnit.Framework; using Xamarin.Utils; namespace MonoTouchFixtures.UIKit { diff --git a/tests/monotouch-test/UIKit/WebViewTest.cs b/tests/monotouch-test/UIKit/WebViewTest.cs index 29cce80fd8be..3a5d997e650f 100644 --- a/tests/monotouch-test/UIKit/WebViewTest.cs +++ b/tests/monotouch-test/UIKit/WebViewTest.cs @@ -2,12 +2,9 @@ #if !__TVOS__ && !MONOMAC && !__MACCATALYST__ -using System; using System.Drawing; using CoreGraphics; -using Foundation; using UIKit; -using NUnit.Framework; namespace MonoTouchFixtures.UIKit { diff --git a/tests/monotouch-test/UIKit/WindowTest.cs b/tests/monotouch-test/UIKit/WindowTest.cs index e8554e23682c..efaa6ae54bcf 100644 --- a/tests/monotouch-test/UIKit/WindowTest.cs +++ b/tests/monotouch-test/UIKit/WindowTest.cs @@ -2,13 +2,9 @@ #if !MONOMAC -using System; using System.Drawing; using CoreGraphics; -using Foundation; using UIKit; -using ObjCRuntime; -using NUnit.Framework; namespace MonoTouchFixtures.UIKit { diff --git a/tests/monotouch-test/UniformTypeIdentifiers/TypeTest.cs b/tests/monotouch-test/UniformTypeIdentifiers/TypeTest.cs index ab33820fad75..9d60f48568e6 100644 --- a/tests/monotouch-test/UniformTypeIdentifiers/TypeTest.cs +++ b/tests/monotouch-test/UniformTypeIdentifiers/TypeTest.cs @@ -1,7 +1,4 @@ -using System; -using NUnit.Framework; -using Foundation; using UniformTypeIdentifiers; namespace MonoTouchFixtures.UniformTypeIdentifiers { diff --git a/tests/monotouch-test/UserNotifications/NotificationInterruptionLevel.cs b/tests/monotouch-test/UserNotifications/NotificationInterruptionLevel.cs index fbd50c6858ad..b4d07e3454b0 100644 --- a/tests/monotouch-test/UserNotifications/NotificationInterruptionLevel.cs +++ b/tests/monotouch-test/UserNotifications/NotificationInterruptionLevel.cs @@ -1,7 +1,4 @@ -using System; -using NUnit.Framework; -using Foundation; using UserNotifications; namespace MonoTouchFixtures.UserNotifications { diff --git a/tests/monotouch-test/VideoToolbox/VTCompressionSessionTests.cs b/tests/monotouch-test/VideoToolbox/VTCompressionSessionTests.cs index fe8e2859c330..09c9300dfe77 100644 --- a/tests/monotouch-test/VideoToolbox/VTCompressionSessionTests.cs +++ b/tests/monotouch-test/VideoToolbox/VTCompressionSessionTests.cs @@ -8,19 +8,12 @@ // Copyright 2015 Xamarin Inc. All rights reserved. // -using System; -using System.Collections.Generic; -using System.Runtime.InteropServices; using System.Threading; -using Foundation; using VideoToolbox; using CoreMedia; using CoreVideo; using AVFoundation; -using CoreFoundation; -using ObjCRuntime; -using NUnit.Framework; using Xamarin.Utils; namespace MonoTouchFixtures.VideoToolbox { diff --git a/tests/monotouch-test/VideoToolbox/VTDecompressionSessionTests.cs b/tests/monotouch-test/VideoToolbox/VTDecompressionSessionTests.cs index 595266a5c38b..2c829c5ffd16 100644 --- a/tests/monotouch-test/VideoToolbox/VTDecompressionSessionTests.cs +++ b/tests/monotouch-test/VideoToolbox/VTDecompressionSessionTests.cs @@ -8,20 +8,14 @@ // Copyright 2015 Xamarin Inc. All rights reserved. // -using System; -using System.Collections.Generic; using System.Linq; using System.Threading; using System.Threading.Tasks; -using Foundation; using VideoToolbox; using CoreMedia; using CoreVideo; using AVFoundation; -using CoreFoundation; -using ObjCRuntime; -using NUnit.Framework; using Xamarin.Utils; namespace MonoTouchFixtures.VideoToolbox { diff --git a/tests/monotouch-test/VideoToolbox/VTFrameRateConversionConfigurationTest.cs b/tests/monotouch-test/VideoToolbox/VTFrameRateConversionConfigurationTest.cs index 0f0e9f53ed0c..f2a0164b0f32 100644 --- a/tests/monotouch-test/VideoToolbox/VTFrameRateConversionConfigurationTest.cs +++ b/tests/monotouch-test/VideoToolbox/VTFrameRateConversionConfigurationTest.cs @@ -3,19 +3,13 @@ #if __MACOS__ -using System; using System.Linq; using AVFoundation; -using CoreFoundation; using CoreMedia; using CoreVideo; -using Foundation; -using ObjCRuntime; using VideoToolbox; -using NUnit.Framework; - using Xamarin.Utils; namespace MonoTouchFixtures.VideoToolbox { diff --git a/tests/monotouch-test/VideoToolbox/VTFrameSiloTests.cs b/tests/monotouch-test/VideoToolbox/VTFrameSiloTests.cs index 70e1a9332146..466325079c78 100644 --- a/tests/monotouch-test/VideoToolbox/VTFrameSiloTests.cs +++ b/tests/monotouch-test/VideoToolbox/VTFrameSiloTests.cs @@ -8,15 +8,9 @@ // Copyright 2015 Xamarin Inc. All rights reserved. // -using System; - -using Foundation; using VideoToolbox; using CoreMedia; using AVFoundation; -using CoreFoundation; -using ObjCRuntime; -using NUnit.Framework; using Xamarin.Utils; namespace MonoTouchFixtures.VideoToolbox { diff --git a/tests/monotouch-test/VideoToolbox/VTHdrPerFrameMetadataGenerationSessionTest.cs b/tests/monotouch-test/VideoToolbox/VTHdrPerFrameMetadataGenerationSessionTest.cs index 39b7cdd647ca..26210fbf3a94 100644 --- a/tests/monotouch-test/VideoToolbox/VTHdrPerFrameMetadataGenerationSessionTest.cs +++ b/tests/monotouch-test/VideoToolbox/VTHdrPerFrameMetadataGenerationSessionTest.cs @@ -2,17 +2,12 @@ // Unit tests for VTHdrPerFrameMetadataGenerationSession // -using System; using System.Drawing; -using System.Runtime.InteropServices; using AVFoundation; -using CoreFoundation; using CoreGraphics; using CoreMedia; using CoreVideo; -using Foundation; -using ObjCRuntime; using VideoToolbox; #if MONOMAC using AppKit; @@ -20,8 +15,6 @@ using UIKit; #endif -using NUnit.Framework; - using Xamarin.Utils; namespace MonoTouchFixtures.VideoToolbox { diff --git a/tests/monotouch-test/VideoToolbox/VTMotionBlurConfigurationTest.cs b/tests/monotouch-test/VideoToolbox/VTMotionBlurConfigurationTest.cs index 94386c6124ec..b760f1114222 100644 --- a/tests/monotouch-test/VideoToolbox/VTMotionBlurConfigurationTest.cs +++ b/tests/monotouch-test/VideoToolbox/VTMotionBlurConfigurationTest.cs @@ -3,18 +3,11 @@ #if __MACOS__ -using System; - using AVFoundation; -using CoreFoundation; using CoreMedia; using CoreVideo; -using Foundation; -using ObjCRuntime; using VideoToolbox; -using NUnit.Framework; - using Xamarin.Utils; namespace MonoTouchFixtures.VideoToolbox { diff --git a/tests/monotouch-test/VideoToolbox/VTMultiPassStorageTests.cs b/tests/monotouch-test/VideoToolbox/VTMultiPassStorageTests.cs index be5232deb479..01e60984aa63 100644 --- a/tests/monotouch-test/VideoToolbox/VTMultiPassStorageTests.cs +++ b/tests/monotouch-test/VideoToolbox/VTMultiPassStorageTests.cs @@ -8,15 +8,9 @@ // Copyright 2015 Xamarin Inc. All rights reserved. // -using System; - -using Foundation; using VideoToolbox; using CoreMedia; using AVFoundation; -using CoreFoundation; -using ObjCRuntime; -using NUnit.Framework; using Xamarin.Utils; namespace MonoTouchFixtures.VideoToolbox { diff --git a/tests/monotouch-test/VideoToolbox/VTOpticalFlowConfigurationTest.cs b/tests/monotouch-test/VideoToolbox/VTOpticalFlowConfigurationTest.cs index 353a749e4a6e..58fa9115ef4b 100644 --- a/tests/monotouch-test/VideoToolbox/VTOpticalFlowConfigurationTest.cs +++ b/tests/monotouch-test/VideoToolbox/VTOpticalFlowConfigurationTest.cs @@ -3,18 +3,11 @@ #if __MACOS__ -using System; - using AVFoundation; -using CoreFoundation; using CoreMedia; using CoreVideo; -using Foundation; -using ObjCRuntime; using VideoToolbox; -using NUnit.Framework; - using Xamarin.Utils; namespace MonoTouchFixtures.VideoToolbox { diff --git a/tests/monotouch-test/VideoToolbox/VTPixelRotationSessionTests.cs b/tests/monotouch-test/VideoToolbox/VTPixelRotationSessionTests.cs index 2a630fa1008c..d606ad5e52dd 100644 --- a/tests/monotouch-test/VideoToolbox/VTPixelRotationSessionTests.cs +++ b/tests/monotouch-test/VideoToolbox/VTPixelRotationSessionTests.cs @@ -10,19 +10,12 @@ #nullable enable -using System; -using System.Collections.Generic; -using System.Runtime.InteropServices; using System.Threading; -using Foundation; using VideoToolbox; using CoreMedia; using CoreVideo; using AVFoundation; -using CoreFoundation; -using ObjCRuntime; -using NUnit.Framework; using Xamarin.Utils; namespace MonoTouchFixtures.VideoToolbox { diff --git a/tests/monotouch-test/VideoToolbox/VTPixelTransferSessionTests.cs b/tests/monotouch-test/VideoToolbox/VTPixelTransferSessionTests.cs index 99445e1eb6ba..48e0a3ec96ef 100644 --- a/tests/monotouch-test/VideoToolbox/VTPixelTransferSessionTests.cs +++ b/tests/monotouch-test/VideoToolbox/VTPixelTransferSessionTests.cs @@ -10,19 +10,12 @@ #nullable enable -using System; -using System.Collections.Generic; -using System.Runtime.InteropServices; using System.Threading; -using Foundation; using VideoToolbox; using CoreMedia; using CoreVideo; using AVFoundation; -using CoreFoundation; -using ObjCRuntime; -using NUnit.Framework; using Xamarin.Utils; namespace MonoTouchFixtures.VideoToolbox { diff --git a/tests/monotouch-test/VideoToolbox/VTRawProcessingSessionTest.cs b/tests/monotouch-test/VideoToolbox/VTRawProcessingSessionTest.cs index f3d07124c300..30dacac1e34d 100644 --- a/tests/monotouch-test/VideoToolbox/VTRawProcessingSessionTest.cs +++ b/tests/monotouch-test/VideoToolbox/VTRawProcessingSessionTest.cs @@ -4,18 +4,12 @@ #if MONOMAC -using System; -using System.Collections.Generic; using System.Drawing; -using System.Runtime.InteropServices; using AVFoundation; -using CoreFoundation; using CoreGraphics; using CoreMedia; using CoreVideo; -using Foundation; -using ObjCRuntime; using VideoToolbox; #if MONOMAC using AppKit; @@ -23,8 +17,6 @@ using UIKit; #endif -using NUnit.Framework; - using Xamarin.Utils; namespace MonoTouchFixtures.VideoToolbox { diff --git a/tests/monotouch-test/VideoToolbox/VTUtilitiesTests.cs b/tests/monotouch-test/VideoToolbox/VTUtilitiesTests.cs index 574cffcb9942..0f2c6a59b4ee 100644 --- a/tests/monotouch-test/VideoToolbox/VTUtilitiesTests.cs +++ b/tests/monotouch-test/VideoToolbox/VTUtilitiesTests.cs @@ -8,11 +8,8 @@ // Copyright 2015 Xamarin Inc. All rights reserved. // -using System; using System.Drawing; -using System.Runtime.InteropServices; -using Foundation; using VideoToolbox; using CoreMedia; #if MONOMAC @@ -21,11 +18,8 @@ using UIKit; #endif using AVFoundation; -using CoreFoundation; using CoreVideo; using CoreGraphics; -using ObjCRuntime; -using NUnit.Framework; using Xamarin.Utils; namespace MonoTouchFixtures.VideoToolbox { diff --git a/tests/monotouch-test/VideoToolbox/VTVideoEncoderListTests.cs b/tests/monotouch-test/VideoToolbox/VTVideoEncoderListTests.cs index 39adef051946..d87cb235598f 100644 --- a/tests/monotouch-test/VideoToolbox/VTVideoEncoderListTests.cs +++ b/tests/monotouch-test/VideoToolbox/VTVideoEncoderListTests.cs @@ -8,12 +8,8 @@ // Copyright 2015 Xamarin Inc. All rights reserved. // -using System; -using Foundation; using VideoToolbox; using CoreMedia; -using ObjCRuntime; -using NUnit.Framework; using Xamarin.Utils; diff --git a/tests/monotouch-test/Vision/VNCircleTests.cs b/tests/monotouch-test/Vision/VNCircleTests.cs index 9ce4f3cd8c1a..43d0d87918de 100644 --- a/tests/monotouch-test/Vision/VNCircleTests.cs +++ b/tests/monotouch-test/Vision/VNCircleTests.cs @@ -7,13 +7,9 @@ // Copyright (c) Microsoft Corporation. // -using System; using System.Collections; -using System.Collections.Generic; -using NUnit.Framework; using CoreGraphics; -using Foundation; using Vision; namespace MonoTouchFixtures.Vision { diff --git a/tests/monotouch-test/Vision/VNGeometryUtilsTests.cs b/tests/monotouch-test/Vision/VNGeometryUtilsTests.cs index 578189da50ba..19bb7254e2a2 100644 --- a/tests/monotouch-test/Vision/VNGeometryUtilsTests.cs +++ b/tests/monotouch-test/Vision/VNGeometryUtilsTests.cs @@ -7,13 +7,9 @@ // Copyright (c) Microsoft Corporation. // -using System; using System.Collections; -using System.Collections.Generic; -using NUnit.Framework; using CoreGraphics; -using Foundation; using Vision; using System.Numerics; diff --git a/tests/monotouch-test/Vision/VNGetCameraRelativePositionTest.cs b/tests/monotouch-test/Vision/VNGetCameraRelativePositionTest.cs index 94b68bdc0c73..9685f82c7e01 100644 --- a/tests/monotouch-test/Vision/VNGetCameraRelativePositionTest.cs +++ b/tests/monotouch-test/Vision/VNGetCameraRelativePositionTest.cs @@ -6,15 +6,11 @@ using UIKit; #endif -using System; using System.IO; using System.Collections; -using System.Collections.Generic; -using NUnit.Framework; using CoreGraphics; using ImageIO; -using Foundation; using Vision; using SceneKit; diff --git a/tests/monotouch-test/Vision/VNRequestTests.cs b/tests/monotouch-test/Vision/VNRequestTests.cs index ae4fd2f3e19d..1a443c3ee87c 100644 --- a/tests/monotouch-test/Vision/VNRequestTests.cs +++ b/tests/monotouch-test/Vision/VNRequestTests.cs @@ -8,12 +8,7 @@ // Copyright 2018 Microsoft Corporation. // -using System; -using NUnit.Framework; - -using Foundation; using Vision; -using System.Collections.Generic; using System.Collections; using CoreGraphics; diff --git a/tests/monotouch-test/Vision/VNUtilsTests.cs b/tests/monotouch-test/Vision/VNUtilsTests.cs index 267c41225405..c9d5959d6535 100644 --- a/tests/monotouch-test/Vision/VNUtilsTests.cs +++ b/tests/monotouch-test/Vision/VNUtilsTests.cs @@ -7,14 +7,10 @@ // Copyright (c) Microsoft Corporation. // -using System; using System.Collections; -using System.Collections.Generic; using System.Numerics; -using NUnit.Framework; using CoreGraphics; -using Foundation; using Vision; namespace MonoTouchFixtures.Vision { diff --git a/tests/monotouch-test/Vision/VNVectorTests.cs b/tests/monotouch-test/Vision/VNVectorTests.cs index 7ba156de1003..d2448455f453 100644 --- a/tests/monotouch-test/Vision/VNVectorTests.cs +++ b/tests/monotouch-test/Vision/VNVectorTests.cs @@ -7,13 +7,9 @@ // Copyright (c) Microsoft Corporation. // -using System; using System.Collections; -using System.Collections.Generic; -using NUnit.Framework; using CoreGraphics; -using Foundation; using Vision; namespace MonoTouchFixtures.Vision { diff --git a/tests/monotouch-test/WebKit/NSAttributedStringCatagoryTest.cs b/tests/monotouch-test/WebKit/NSAttributedStringCatagoryTest.cs index b9f16fc0bee1..56e0aa453618 100644 --- a/tests/monotouch-test/WebKit/NSAttributedStringCatagoryTest.cs +++ b/tests/monotouch-test/WebKit/NSAttributedStringCatagoryTest.cs @@ -1,10 +1,7 @@ #if __IOS__ || MONOMAC -using System; using System.IO; -using NUnit.Framework; -using Foundation; using WebKit; namespace MonoTouchFixtures.WebKit { diff --git a/tests/monotouch-test/WebKit/WKPreferencesTest.cs b/tests/monotouch-test/WebKit/WKPreferencesTest.cs index 7561c9b1d1b9..e6f3c7bfe608 100644 --- a/tests/monotouch-test/WebKit/WKPreferencesTest.cs +++ b/tests/monotouch-test/WebKit/WKPreferencesTest.cs @@ -1,10 +1,7 @@ #if __IOS__ || MONOMAC -using System; using System.IO; -using NUnit.Framework; -using Foundation; using WebKit; namespace MonoTouchFixtures.WebKit { diff --git a/tests/monotouch-test/WebKit/WKWebExtensionControllerTest.cs b/tests/monotouch-test/WebKit/WKWebExtensionControllerTest.cs index 2ee420aa98f3..19501cf0882c 100644 --- a/tests/monotouch-test/WebKit/WKWebExtensionControllerTest.cs +++ b/tests/monotouch-test/WebKit/WKWebExtensionControllerTest.cs @@ -3,17 +3,12 @@ #if HAS_WEBKIT -using System; using System.Linq; using System.Numerics; using System.Threading; -using Foundation; -using ObjCRuntime; using WebKit; -using NUnit.Framework; - namespace MonoTouchFixtures.WebKit { [TestFixture] [Preserve (AllMembers = true)] diff --git a/tests/monotouch-test/mono/ConfigTest.cs b/tests/monotouch-test/mono/ConfigTest.cs index 2386e5917243..5be645c103e8 100644 --- a/tests/monotouch-test/mono/ConfigTest.cs +++ b/tests/monotouch-test/mono/ConfigTest.cs @@ -1,11 +1,6 @@ -using System; using System.IO; using System.Reflection; -using Foundation; - -using NUnit.Framework; - namespace MonoTouchFixtures { [TestFixture] [Preserve (AllMembers = true)] diff --git a/tests/monotouch-test/mono/Symbols.cs b/tests/monotouch-test/mono/Symbols.cs index 61aea05ea396..b66f5acb0800 100644 --- a/tests/monotouch-test/mono/Symbols.cs +++ b/tests/monotouch-test/mono/Symbols.cs @@ -1,11 +1,4 @@ #if !MONOMAC -using System; -using System.Runtime.InteropServices; - -using Foundation; -using ObjCRuntime; - -using NUnit.Framework; namespace MonoTouchFixtures { [TestFixture] diff --git a/tests/monotouch-test/mono/bug18634.cs b/tests/monotouch-test/mono/bug18634.cs index a4b3fe64223e..93e9bd4c481d 100644 --- a/tests/monotouch-test/mono/bug18634.cs +++ b/tests/monotouch-test/mono/bug18634.cs @@ -1,22 +1,16 @@ -using System; -using System.Collections.Generic; using System.Drawing; -using System.Runtime.InteropServices; using System.Threading; using System.Collections; using System.Collections.ObjectModel; using System.Linq; -using Foundation; -using ObjCRuntime; #if !__TVOS__ using MapKit; #endif using CoreAnimation; using CoreGraphics; using CoreLocation; -using NUnit.Framework; namespace MonoTouchFixtures { [TestFixture] diff --git a/tests/monotouch-test/mono/bug26989.cs b/tests/monotouch-test/mono/bug26989.cs index 61eddbca33a5..32b7fe7a873a 100644 --- a/tests/monotouch-test/mono/bug26989.cs +++ b/tests/monotouch-test/mono/bug26989.cs @@ -1,10 +1,3 @@ -using System; -using System.Runtime.InteropServices; - -using Foundation; -using ObjCRuntime; - -using NUnit.Framework; namespace MonoTouchFixtures { [TestFixture] diff --git a/tests/msbuild/Xamarin.MacDev.Tasks.Tests/DotNetGlobals.cs b/tests/msbuild/Xamarin.MacDev.Tasks.Tests/DotNetGlobals.cs new file mode 100644 index 000000000000..45337bed7678 --- /dev/null +++ b/tests/msbuild/Xamarin.MacDev.Tasks.Tests/DotNetGlobals.cs @@ -0,0 +1,8 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +global using System; +global using System.Collections.Generic; +global using System.Runtime.InteropServices; + +global using NUnit.Framework; diff --git a/tests/msbuild/Xamarin.MacDev.Tests/DotNetGlobals.cs b/tests/msbuild/Xamarin.MacDev.Tests/DotNetGlobals.cs new file mode 100644 index 000000000000..45337bed7678 --- /dev/null +++ b/tests/msbuild/Xamarin.MacDev.Tests/DotNetGlobals.cs @@ -0,0 +1,8 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +global using System; +global using System.Collections.Generic; +global using System.Runtime.InteropServices; + +global using NUnit.Framework; diff --git a/tests/rgen/Microsoft.Macios.Bindings.Analyzer.Tests/DotNetGlobals.cs b/tests/rgen/Microsoft.Macios.Bindings.Analyzer.Tests/DotNetGlobals.cs new file mode 100644 index 000000000000..0afd19463727 --- /dev/null +++ b/tests/rgen/Microsoft.Macios.Bindings.Analyzer.Tests/DotNetGlobals.cs @@ -0,0 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +global using System; +global using System.Collections.Generic; +global using System.Runtime.InteropServices; diff --git a/tests/rgen/Microsoft.Macios.Bindings.CodeFixers.Tests/DotNetGlobals.cs b/tests/rgen/Microsoft.Macios.Bindings.CodeFixers.Tests/DotNetGlobals.cs new file mode 100644 index 000000000000..0afd19463727 --- /dev/null +++ b/tests/rgen/Microsoft.Macios.Bindings.CodeFixers.Tests/DotNetGlobals.cs @@ -0,0 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +global using System; +global using System.Collections.Generic; +global using System.Runtime.InteropServices; diff --git a/tests/rgen/Microsoft.Macios.Generator.Tests/DotNetGlobals.cs b/tests/rgen/Microsoft.Macios.Generator.Tests/DotNetGlobals.cs new file mode 100644 index 000000000000..0afd19463727 --- /dev/null +++ b/tests/rgen/Microsoft.Macios.Generator.Tests/DotNetGlobals.cs @@ -0,0 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +global using System; +global using System.Collections.Generic; +global using System.Runtime.InteropServices; diff --git a/tests/rgen/Microsoft.Macios.Transformer.Tests/DotNetGlobals.cs b/tests/rgen/Microsoft.Macios.Transformer.Tests/DotNetGlobals.cs new file mode 100644 index 000000000000..0afd19463727 --- /dev/null +++ b/tests/rgen/Microsoft.Macios.Transformer.Tests/DotNetGlobals.cs @@ -0,0 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +global using System; +global using System.Collections.Generic; +global using System.Runtime.InteropServices; diff --git a/tests/xcframework-test/XCFrameworkTests.cs b/tests/xcframework-test/XCFrameworkTests.cs index 1e02125dbbd6..206951ea19b0 100644 --- a/tests/xcframework-test/XCFrameworkTests.cs +++ b/tests/xcframework-test/XCFrameworkTests.cs @@ -7,14 +7,7 @@ // Copyright 2015 Xamarin Inc. All rights reserved. // -using System; -using System.Runtime.InteropServices; - using MonoTouch; -using Foundation; -using ObjCRuntime; - -using NUnit.Framework; using Bindings.Test; diff --git a/tools/dotnet-linker/DotNetGlobals.cs b/tools/dotnet-linker/DotNetGlobals.cs new file mode 100644 index 000000000000..b9a24cb31531 --- /dev/null +++ b/tools/dotnet-linker/DotNetGlobals.cs @@ -0,0 +1,9 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +global using System; +global using System.Collections.Generic; +global using System.Runtime.InteropServices; + +global using Foundation; +global using ObjCRuntime; diff --git a/tools/mmp/DotNetGlobals.cs b/tools/mmp/DotNetGlobals.cs new file mode 100644 index 000000000000..b9a24cb31531 --- /dev/null +++ b/tools/mmp/DotNetGlobals.cs @@ -0,0 +1,9 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +global using System; +global using System.Collections.Generic; +global using System.Runtime.InteropServices; + +global using Foundation; +global using ObjCRuntime; diff --git a/tools/mmp/mmp.csproj b/tools/mmp/mmp.csproj index 6d6b7c45ce0b..d2fede3ed7c9 100644 --- a/tools/mmp/mmp.csproj +++ b/tools/mmp/mmp.csproj @@ -16,6 +16,7 @@ + diff --git a/tools/mtouch/DotNetGlobals.cs b/tools/mtouch/DotNetGlobals.cs new file mode 100644 index 000000000000..b9a24cb31531 --- /dev/null +++ b/tools/mtouch/DotNetGlobals.cs @@ -0,0 +1,9 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +global using System; +global using System.Collections.Generic; +global using System.Runtime.InteropServices; + +global using Foundation; +global using ObjCRuntime; diff --git a/tools/mtouch/mtouch.csproj b/tools/mtouch/mtouch.csproj index fc4df0d3649d..613a5160c539 100644 --- a/tools/mtouch/mtouch.csproj +++ b/tools/mtouch/mtouch.csproj @@ -13,6 +13,7 @@ true +