diff --git a/BarrageGrab/AppRuntime.cs b/BarrageGrab/AppRuntime.cs index 7e813f3..2da38fe 100644 --- a/BarrageGrab/AppRuntime.cs +++ b/BarrageGrab/AppRuntime.cs @@ -30,7 +30,6 @@ namespace BarrageGrab /// public static Process CurrentProcess { get; private set; } = System.Diagnostics.Process.GetCurrentProcess(); - static AppRuntime() { @@ -50,16 +49,6 @@ namespace BarrageGrab } } - public static void DisplayConsoleByTitle(bool show) - { - var hWnd = WinApi.FindWindow(null, Console.Title); - //var hWnd = WinApi.GetConsoleWindow(); - if (hWnd != IntPtr.Zero) - { - WinApi.ShowWindow(hWnd, show ? WinApi.CmdShow.SW_SHOW : WinApi.CmdShow.SW_HIDE); - } - } - /// /// 房间缓存管理器 ///