chore: Remove unused getCommand from Windows watchdog

This commit is contained in:
Nick Bolton
2025-03-03 11:17:35 +00:00
parent 475172597a
commit 74e8a63dcd
2 changed files with 0 additions and 22 deletions

View File

@ -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

View File

@ -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();