Skip to content
This repository was archived by the owner on Jan 10, 2025. It is now read-only.

Commit f6958a2

Browse files
authored
Remove code to be compatible with MonoTouch (Classic Xamarin.iOS). (#59)
It's long dead.
1 parent 6a10d44 commit f6958a2

10 files changed

Lines changed: 1 addition & 47 deletions

NUnitLite/MonoTouch.NUnitLite.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<DebugType>full</DebugType>
1717
<Optimize>False</Optimize>
1818
<OutputPath>bin\Debug</OutputPath>
19-
<DefineConstants>DEBUG;NUNITLITE;CLR_4_0;NET_4_5;XAMCORE_2_0</DefineConstants>
19+
<DefineConstants>DEBUG;NUNITLITE;CLR_4_0;NET_4_5</DefineConstants>
2020
<ErrorReport>prompt</ErrorReport>
2121
<WarningLevel>4</WarningLevel>
2222
<ConsolePause>False</ConsolePause>

NUnitLite/TouchRunner/HttpTextWriter.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,7 @@
1212
using System.Threading;
1313
using System.Threading.Tasks;
1414

15-
#if __UNIFIED__
1615
using Foundation;
17-
#else
18-
using MonoTouch.Foundation;
19-
#endif
2016

2117
namespace MonoTouch.NUnit {
2218
class HttpTextWriter : TextWriter

NUnitLite/TouchRunner/TcpTextWriter.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,7 @@
77
using System.Net.Sockets;
88
using System.Text;
99

10-
#if XAMCORE_2_0
1110
using UIKit;
12-
#else
13-
using MonoTouch.UIKit;
14-
#endif
1511

1612
namespace MonoTouch.NUnit {
1713

NUnitLite/TouchRunner/TestCaseElement.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,7 @@
2121
using System;
2222
using System.Reflection;
2323

24-
#if XAMCORE_2_0
2524
using UIKit;
26-
#else
27-
using MonoTouch.UIKit;
28-
#endif
2925

3026
using MonoTouch.Dialog;
3127

NUnitLite/TouchRunner/TestElement.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,7 @@
2020

2121
using System;
2222

23-
#if XAMCORE_2_0
2423
using UIKit;
25-
#else
26-
using MonoTouch.UIKit;
27-
#endif
2824

2925
using MonoTouch.Dialog;
3026

NUnitLite/TouchRunner/TestResultElement.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,7 @@
2020

2121
using System;
2222

23-
#if XAMCORE_2_0
2423
using UIKit;
25-
#else
26-
using MonoTouch.UIKit;
27-
#endif
2824

2925
using MonoTouch.Dialog;
3026

NUnitLite/TouchRunner/TestSuiteElement.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,7 @@
2121
using System;
2222
using System.Text;
2323

24-
#if XAMCORE_2_0
2524
using UIKit;
26-
#else
27-
using MonoTouch.UIKit;
28-
#endif
2925

3026
using MonoTouch.Dialog;
3127

NUnitLite/TouchRunner/TouchOptions.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,8 @@
2020

2121
using System;
2222

23-
#if XAMCORE_2_0
2423
using Foundation;
2524
using UIKit;
26-
#else
27-
using MonoTouch.Foundation;
28-
using MonoTouch.UIKit;
29-
#endif
3025

3126
#if !__WATCHOS__
3227
using MonoTouch.Dialog;

NUnitLite/TouchRunner/TouchRunner.cs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,10 @@
2828
using System.Threading;
2929
using System.Threading.Tasks;
3030

31-
#if XAMCORE_2_0
3231
using Foundation;
3332
using ObjCRuntime;
3433
using UIKit;
3534
using Constants = global::ObjCRuntime.Constants;
36-
#else
37-
using MonoTouch.Foundation;
38-
using MonoTouch.ObjCRuntime;
39-
using MonoTouch.UIKit;
40-
using Constants = global::MonoTouch.Constants;
41-
#endif
4235

4336
#if !__WATCHOS__
4437
using MonoTouch.Dialog;

NUnitLite/TouchRunner/TouchViewController.cs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,22 +22,12 @@
2222
using System.Collections.Generic;
2323
using System.Drawing;
2424

25-
#if XAMCORE_2_0
2625
using CoreGraphics;
2726
using Foundation;
2827
using UIKit;
29-
#else
30-
using MonoTouch.CoreGraphics;
31-
using MonoTouch.Foundation;
32-
using MonoTouch.UIKit;
33-
#endif
3428

3529
using MonoTouch.Dialog;
3630

37-
#if !XAMCORE_2_0
38-
using CGSize = global::System.Drawing.SizeF;
39-
#endif
40-
4131
namespace MonoTouch.NUnit.UI {
4232

4333
public partial class TouchViewController : DialogViewController {

0 commit comments

Comments
 (0)