Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'mcs/nunit20/util/TestExceptionHandler.cs')
-rw-r--r--mcs/nunit20/util/TestExceptionHandler.cs6
1 files changed, 0 insertions, 6 deletions
diff --git a/mcs/nunit20/util/TestExceptionHandler.cs b/mcs/nunit20/util/TestExceptionHandler.cs
index 5787ec8170a..2e370c22564 100644
--- a/mcs/nunit20/util/TestExceptionHandler.cs
+++ b/mcs/nunit20/util/TestExceptionHandler.cs
@@ -11,28 +11,23 @@ namespace NUnit.Util
public TestExceptionHandler( UnhandledExceptionEventHandler handler )
{
-#if !TARGET_JVM
this.handler = handler;
AppDomain.CurrentDomain.UnhandledException += handler;
-#endif
}
~TestExceptionHandler()
{
-#if !TARGET_JVM
if ( handler != null )
{
AppDomain.CurrentDomain.UnhandledException -= handler;
handler = null;
}
-#endif
}
public void Dispose()
{
-#if !TARGET_JVM
if ( handler != null )
{
AppDomain.CurrentDomain.UnhandledException -= handler;
@@ -40,7 +35,6 @@ namespace NUnit.Util
}
System.GC.SuppressFinalize( this );
-#endif
}
}
}