From 6df27f5fd0abbe9fb60cea9dd36aa6d0db04406d Mon Sep 17 00:00:00 2001 From: Charlie Kindel Date: Sun, 14 Jun 2020 22:17:01 -0700 Subject: [PATCH] removed DEBUG stuff --- Terminal.Gui/Core/Responder.cs | 5 ----- UnitTests/ScenarioTests.cs | 5 ----- 2 files changed, 10 deletions(-) diff --git a/Terminal.Gui/Core/Responder.cs b/Terminal.Gui/Core/Responder.cs index 985f9dff3..7f43bb17a 100644 --- a/Terminal.Gui/Core/Responder.cs +++ b/Terminal.Gui/Core/Responder.cs @@ -240,11 +240,6 @@ namespace Terminal.Gui { // Do not change this code. Put cleanup code in 'Dispose(bool disposing)' method Dispose (disposing: true); GC.SuppressFinalize (this); -#if DEBUG - WasDisposed = true; - Debug.Assert (DisposedCount == 0); - DisposedCount++; -#endif } } } diff --git a/UnitTests/ScenarioTests.cs b/UnitTests/ScenarioTests.cs index 2fd1e56c3..c6d6723ce 100644 --- a/UnitTests/ScenarioTests.cs +++ b/UnitTests/ScenarioTests.cs @@ -71,11 +71,6 @@ namespace Terminal.Gui { Assert.Equal (1, iterations); Assert.Equal (stackSize, iterations); } -#if DEBUG - foreach (var inst in Responder.Instances) { - Assert.True (inst.WasDisposed); - } -#endif } [Fact]