diff --git a/src/lib/platform/MSWindowsWatchdog.cpp b/src/lib/platform/MSWindowsWatchdog.cpp index 645d0a198..633b7e9c3 100644 --- a/src/lib/platform/MSWindowsWatchdog.cpp +++ b/src/lib/platform/MSWindowsWatchdog.cpp @@ -368,27 +368,6 @@ void MSWindowsWatchdog::setProcessConfig(const std::string &command, bool elevat } } -std::string MSWindowsWatchdog::getCommand() const -{ - // seems like a fairly convoluted way to get the process name - const char *launchName = App::instance().argsBase().m_pname; - std::string args = ARCH->commandLine(); - - // build up a full command line - std::stringstream cmdTemp; - cmdTemp << launchName << args; - - std::string cmd = cmdTemp.str(); - - size_t i; - std::string find = "--relaunch"; - while ((i = cmd.find(find)) != std::string::npos) { - cmd.replace(i, find.length(), ""); - } - - return cmd; -} - void MSWindowsWatchdog::outputLoop(void *) { // +1 char for \0 diff --git a/src/lib/platform/MSWindowsWatchdog.h b/src/lib/platform/MSWindowsWatchdog.h index 6e72ee219..b2cd8a477 100644 --- a/src/lib/platform/MSWindowsWatchdog.h +++ b/src/lib/platform/MSWindowsWatchdog.h @@ -35,7 +35,6 @@ public: ~MSWindowsWatchdog() = default; void startAsync(); - std::string getCommand() const; void setProcessConfig(const std::string &command, bool elevate); void stop(); bool isProcessRunning();