Skip to content

Commit

Permalink
Remove code to be compatible with MonoTouch (Classic Xamarin.iOS). (#59)
Browse files Browse the repository at this point in the history
It's long dead.
  • Loading branch information
rolfbjarne committed Apr 27, 2020
1 parent 6a10d44 commit f6958a2
Show file tree
Hide file tree
Showing 10 changed files with 1 addition and 47 deletions.
2 changes: 1 addition & 1 deletion NUnitLite/MonoTouch.NUnitLite.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<DebugType>full</DebugType>
<Optimize>False</Optimize>
<OutputPath>bin\Debug</OutputPath>
<DefineConstants>DEBUG;NUNITLITE;CLR_4_0;NET_4_5;XAMCORE_2_0</DefineConstants>
<DefineConstants>DEBUG;NUNITLITE;CLR_4_0;NET_4_5</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<ConsolePause>False</ConsolePause>
Expand Down
4 changes: 0 additions & 4 deletions NUnitLite/TouchRunner/HttpTextWriter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 0 additions & 4 deletions NUnitLite/TouchRunner/TcpTextWriter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

Expand Down
4 changes: 0 additions & 4 deletions NUnitLite/TouchRunner/TestCaseElement.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,7 @@
using System;
using System.Reflection;

#if XAMCORE_2_0
using UIKit;
#else
using MonoTouch.UIKit;
#endif

using MonoTouch.Dialog;

Expand Down
4 changes: 0 additions & 4 deletions NUnitLite/TouchRunner/TestElement.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,7 @@

using System;

#if XAMCORE_2_0
using UIKit;
#else
using MonoTouch.UIKit;
#endif

using MonoTouch.Dialog;

Expand Down
4 changes: 0 additions & 4 deletions NUnitLite/TouchRunner/TestResultElement.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,7 @@

using System;

#if XAMCORE_2_0
using UIKit;
#else
using MonoTouch.UIKit;
#endif

using MonoTouch.Dialog;

Expand Down
4 changes: 0 additions & 4 deletions NUnitLite/TouchRunner/TestSuiteElement.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,7 @@
using System;
using System.Text;

#if XAMCORE_2_0
using UIKit;
#else
using MonoTouch.UIKit;
#endif

using MonoTouch.Dialog;

Expand Down
5 changes: 0 additions & 5 deletions NUnitLite/TouchRunner/TouchOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
7 changes: 0 additions & 7 deletions NUnitLite/TouchRunner/TouchRunner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
10 changes: 0 additions & 10 deletions NUnitLite/TouchRunner/TouchViewController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit f6958a2

Please sign in to comment.