alroyso 1 year ago
parent
commit
2b0b10c1e2
1 changed files with 0 additions and 17 deletions
  1. 0 17
      windows/runner/main.cpp

+ 0 - 17
windows/runner/main.cpp

@@ -5,23 +5,6 @@
 #include "flutter_window.h"
 #include "flutter_window.h"
 #include "utils.h"
 #include "utils.h"
 #include <protocol_handler/protocol_handler_plugin.h>
 #include <protocol_handler/protocol_handler_plugin.h>
-
-// 展示控制台
-void ShowConsole() {
-  HWND hWnd = ::GetConsoleWindow();
-  if (hWnd != NULL) {
-    ::ShowWindow(hWnd, SW_SHOW);
-  }
-}
-
-// 隐藏控制台
-void HideConsole() {
-  HWND hWnd = ::GetConsoleWindow();
-  if (hWnd != NULL) {
-    ::ShowWindow(hWnd, SW_HIDE);
-  }
-}
-
 int APIENTRY wWinMain(_In_ HINSTANCE instance, _In_opt_ HINSTANCE prev,
 int APIENTRY wWinMain(_In_ HINSTANCE instance, _In_opt_ HINSTANCE prev,
                       _In_ wchar_t *command_line, _In_ int show_command) {
                       _In_ wchar_t *command_line, _In_ int show_command) {