From f6958a2eb60f1bcb7031723e04065c5ea1cee227 Mon Sep 17 00:00:00 2001 From: Rolf Bjarne Kvinge Date: Mon, 27 Apr 2020 17:27:47 +0200 Subject: [PATCH] Remove code to be compatible with MonoTouch (Classic Xamarin.iOS). (#59) It's long dead. --- NUnitLite/MonoTouch.NUnitLite.csproj | 2 +- NUnitLite/TouchRunner/HttpTextWriter.cs | 4 ---- NUnitLite/TouchRunner/TcpTextWriter.cs | 4 ---- NUnitLite/TouchRunner/TestCaseElement.cs | 4 ---- NUnitLite/TouchRunner/TestElement.cs | 4 ---- NUnitLite/TouchRunner/TestResultElement.cs | 4 ---- NUnitLite/TouchRunner/TestSuiteElement.cs | 4 ---- NUnitLite/TouchRunner/TouchOptions.cs | 5 ----- NUnitLite/TouchRunner/TouchRunner.cs | 7 ------- NUnitLite/TouchRunner/TouchViewController.cs | 10 ---------- 10 files changed, 1 insertion(+), 47 deletions(-) diff --git a/NUnitLite/MonoTouch.NUnitLite.csproj b/NUnitLite/MonoTouch.NUnitLite.csproj index b2b44d5..cbbd5bb 100644 --- a/NUnitLite/MonoTouch.NUnitLite.csproj +++ b/NUnitLite/MonoTouch.NUnitLite.csproj @@ -16,7 +16,7 @@ full False bin\Debug - DEBUG;NUNITLITE;CLR_4_0;NET_4_5;XAMCORE_2_0 + DEBUG;NUNITLITE;CLR_4_0;NET_4_5 prompt 4 False diff --git a/NUnitLite/TouchRunner/HttpTextWriter.cs b/NUnitLite/TouchRunner/HttpTextWriter.cs index bbc97cc..6c3ab7f 100644 --- a/NUnitLite/TouchRunner/HttpTextWriter.cs +++ b/NUnitLite/TouchRunner/HttpTextWriter.cs @@ -12,11 +12,7 @@ using System.Threading; using System.Threading.Tasks; -#if __UNIFIED__ using Foundation; -#else -using MonoTouch.Foundation; -#endif namespace MonoTouch.NUnit { class HttpTextWriter : TextWriter diff --git a/NUnitLite/TouchRunner/TcpTextWriter.cs b/NUnitLite/TouchRunner/TcpTextWriter.cs index 05107ae..e2ee4c8 100644 --- a/NUnitLite/TouchRunner/TcpTextWriter.cs +++ b/NUnitLite/TouchRunner/TcpTextWriter.cs @@ -7,11 +7,7 @@ using System.Net.Sockets; using System.Text; -#if XAMCORE_2_0 using UIKit; -#else -using MonoTouch.UIKit; -#endif namespace MonoTouch.NUnit { diff --git a/NUnitLite/TouchRunner/TestCaseElement.cs b/NUnitLite/TouchRunner/TestCaseElement.cs index 61c9fd5..9269bb4 100644 --- a/NUnitLite/TouchRunner/TestCaseElement.cs +++ b/NUnitLite/TouchRunner/TestCaseElement.cs @@ -21,11 +21,7 @@ using System; using System.Reflection; -#if XAMCORE_2_0 using UIKit; -#else -using MonoTouch.UIKit; -#endif using MonoTouch.Dialog; diff --git a/NUnitLite/TouchRunner/TestElement.cs b/NUnitLite/TouchRunner/TestElement.cs index 5181cca..2fd7624 100644 --- a/NUnitLite/TouchRunner/TestElement.cs +++ b/NUnitLite/TouchRunner/TestElement.cs @@ -20,11 +20,7 @@ using System; -#if XAMCORE_2_0 using UIKit; -#else -using MonoTouch.UIKit; -#endif using MonoTouch.Dialog; diff --git a/NUnitLite/TouchRunner/TestResultElement.cs b/NUnitLite/TouchRunner/TestResultElement.cs index 29e4e73..0d13243 100644 --- a/NUnitLite/TouchRunner/TestResultElement.cs +++ b/NUnitLite/TouchRunner/TestResultElement.cs @@ -20,11 +20,7 @@ using System; -#if XAMCORE_2_0 using UIKit; -#else -using MonoTouch.UIKit; -#endif using MonoTouch.Dialog; diff --git a/NUnitLite/TouchRunner/TestSuiteElement.cs b/NUnitLite/TouchRunner/TestSuiteElement.cs index 776dac6..1b9d87c 100644 --- a/NUnitLite/TouchRunner/TestSuiteElement.cs +++ b/NUnitLite/TouchRunner/TestSuiteElement.cs @@ -21,11 +21,7 @@ using System; using System.Text; -#if XAMCORE_2_0 using UIKit; -#else -using MonoTouch.UIKit; -#endif using MonoTouch.Dialog; diff --git a/NUnitLite/TouchRunner/TouchOptions.cs b/NUnitLite/TouchRunner/TouchOptions.cs index ac2df0b..2943606 100644 --- a/NUnitLite/TouchRunner/TouchOptions.cs +++ b/NUnitLite/TouchRunner/TouchOptions.cs @@ -20,13 +20,8 @@ using System; -#if XAMCORE_2_0 using Foundation; using UIKit; -#else -using MonoTouch.Foundation; -using MonoTouch.UIKit; -#endif #if !__WATCHOS__ using MonoTouch.Dialog; diff --git a/NUnitLite/TouchRunner/TouchRunner.cs b/NUnitLite/TouchRunner/TouchRunner.cs index 74bfcaa..8ca15a2 100644 --- a/NUnitLite/TouchRunner/TouchRunner.cs +++ b/NUnitLite/TouchRunner/TouchRunner.cs @@ -28,17 +28,10 @@ using System.Threading; using System.Threading.Tasks; -#if XAMCORE_2_0 using Foundation; using ObjCRuntime; using UIKit; using Constants = global::ObjCRuntime.Constants; -#else -using MonoTouch.Foundation; -using MonoTouch.ObjCRuntime; -using MonoTouch.UIKit; -using Constants = global::MonoTouch.Constants; -#endif #if !__WATCHOS__ using MonoTouch.Dialog; diff --git a/NUnitLite/TouchRunner/TouchViewController.cs b/NUnitLite/TouchRunner/TouchViewController.cs index 47734c9..49fb0bf 100644 --- a/NUnitLite/TouchRunner/TouchViewController.cs +++ b/NUnitLite/TouchRunner/TouchViewController.cs @@ -22,22 +22,12 @@ using System.Collections.Generic; using System.Drawing; -#if XAMCORE_2_0 using CoreGraphics; using Foundation; using UIKit; -#else -using MonoTouch.CoreGraphics; -using MonoTouch.Foundation; -using MonoTouch.UIKit; -#endif using MonoTouch.Dialog; -#if !XAMCORE_2_0 -using CGSize = global::System.Drawing.SizeF; -#endif - namespace MonoTouch.NUnit.UI { public partial class TouchViewController : DialogViewController {