Explorar o código

Remove erroneous code.

BDisp hai 1 ano
pai
achega
58d25fccf8
Modificáronse 1 ficheiros con 0 adicións e 7 borrados
  1. 0 7
      Terminal.Gui/Application.cs

+ 0 - 7
Terminal.Gui/Application.cs

@@ -435,13 +435,6 @@ public static partial class Application
             {
                 Top.OnLeave (Toplevel);
             }
-            else if (OverlappedTop is null && Top is { } && Toplevel != Top && _topLevels.Contains (Top))
-            {
-#if DEBUG_IDISPOSABLE
-                // Probably this will never hit
-                Debug.Assert (Top.WasDisposed);
-#endif
-            }
 
             // BUGBUG: We should not depend on `Id` internally. 
             // BUGBUG: It is super unclear what this code does anyway.