chore: Remove dead code from --debug-service-wait arg

This commit is contained in:
Nick Bolton 2025-02-24 16:39:54 +00:00
parent f46474c9f2
commit b2ca9bc17b
3 changed files with 0 additions and 17 deletions

View file

@ -87,7 +87,6 @@ public:
bool m_preventSleep = false;
#if SYSAPI_WIN32
bool m_debugServiceWait = false;
bool m_stopOnDeskSwitch = false;
#endif

View file

@ -67,7 +67,6 @@ static int mainLoopStatic()
int AppUtilWindows::daemonNTMainLoop(int argc, const char **argv)
{
app().initApp(argc, argv);
debugServiceWait();
return ArchMiscWindows::runDaemon(mainLoopStatic);
}
@ -135,20 +134,6 @@ AppUtilWindows &AppUtilWindows::instance()
return (AppUtilWindows &)AppUtil::instance();
}
void AppUtilWindows::debugServiceWait()
{
if (app().argsBase().m_debugServiceWait) {
while (true) {
// this code is only executed when the process is launched via the
// windows service controller (and --debug-service-wait arg is
// used). to debug, set a breakpoint on this line so that
// execution is delayed until the debugger is attached.
ARCH->sleep(1);
LOG((CLOG_INFO "waiting for debugger to attach"));
}
}
}
void AppUtilWindows::startNode()
{
app().startNode();

View file

@ -36,7 +36,6 @@ public:
int daemonNTStartup(int, char **);
int daemonNTMainLoop(int argc, const char **argv);
void debugServiceWait();
int run(int argc, char **argv) override;
void exitApp(int code) override;
void startNode() override;