Преглед изворни кода

Remove bad code that hangs unit tests on Windows.

BDisp пре 1 година
родитељ
комит
4af0fd1c7e
1 измењених фајлова са 0 додато и 15 уклоњено
  1. 0 15
      Terminal.Gui/ConsoleDrivers/WindowsDriver.cs

+ 0 - 15
Terminal.Gui/ConsoleDrivers/WindowsDriver.cs

@@ -2134,21 +2134,6 @@ internal class WindowsMainLoop : IMainLoopDriver
         _inputHandlerTokenSource?.Dispose ();
         _inputHandlerTokenSource?.Dispose ();
         _waitForProbe?.Dispose ();
         _waitForProbe?.Dispose ();
 
 
-        // Eat any outstanding events. See #
-        // I don't recommend this because if there is no input
-        // this could being hang until some event occur
-        //var records = 
-        //_winConsole.ReadConsoleInput ();
-
-        //if (records != null)
-        //{
-        //    foreach (var rec in records)
-        //    {
-        //        Debug.WriteLine ($"Teardown: {rec.ToString ()}");
-        //        //Debug.Assert (rec is not { EventType: WindowsConsole.EventType.Mouse, MouseEvent.ButtonState: WindowsConsole.ButtonState.Button1Pressed });
-        //    }
-        //}
-
         _resultQueue?.Clear ();
         _resultQueue?.Clear ();
 
 
         _eventReadyTokenSource?.Cancel ();
         _eventReadyTokenSource?.Cancel ();