2
0
Charlie Kindel 5 жил өмнө
parent
commit
6df27f5fd0

+ 0 - 5
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
 		}
 	}
 }

+ 0 - 5
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]