瀏覽代碼

removed DEBUG stuff

Charlie Kindel 5 年之前
父節點
當前提交
6df27f5fd0
共有 2 個文件被更改,包括 0 次插入10 次删除
  1. 0 5
      Terminal.Gui/Core/Responder.cs
  2. 0 5
      UnitTests/ScenarioTests.cs

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