chore: Remove unused getCommand from Windows watchdog
This commit is contained in:
parent
475172597a
commit
74e8a63dcd
2 changed files with 0 additions and 22 deletions
|
|
@ -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 *)
|
void MSWindowsWatchdog::outputLoop(void *)
|
||||||
{
|
{
|
||||||
// +1 char for \0
|
// +1 char for \0
|
||||||
|
|
|
||||||
|
|
@ -35,7 +35,6 @@ public:
|
||||||
~MSWindowsWatchdog() = default;
|
~MSWindowsWatchdog() = default;
|
||||||
|
|
||||||
void startAsync();
|
void startAsync();
|
||||||
std::string getCommand() const;
|
|
||||||
void setProcessConfig(const std::string &command, bool elevate);
|
void setProcessConfig(const std::string &command, bool elevate);
|
||||||
void stop();
|
void stop();
|
||||||
bool isProcessRunning();
|
bool isProcessRunning();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue