refactor: Remove watchdog command

This command adds some complexity as it allows to disable a worker from
the outside. This is currently not required.
This commit is contained in:
Lars Toenning
2025-06-09 20:16:38 +02:00
parent 43d66b0cd7
commit 56d00d7d77
4 changed files with 7 additions and 30 deletions

View File

@@ -386,8 +386,8 @@ namespace swift::core::context
if (commandLine.isEmpty()) { return false; }
static const QStringList cmds({ ".msg", ".m", ".chat", ".altos", ".altoffset", ".addtimeos", ".addtimeoffset",
".wallop", ".watchdog", ".reinit", ".reinitialize", ".enable", ".disable",
".ignore", ".unignore", ".fsd" });
".wallop", ".reinit", ".reinitialize", ".enable", ".disable", ".ignore",
".unignore", ".fsd" });
CSimpleCommandParser parser(cmds);
parser.parse(commandLine);
if (!parser.isKnownCommand()) { return false; }
@@ -526,15 +526,6 @@ namespace swift::core::context
}
else { CLogMessage(this).info(u"Reset add. time offset"); }
}
else if (parser.matchesCommand(".watchdog"))
{
if (!m_airspace) { return false; }
if (parser.countParts() < 2) { return false; }
const bool watchdog = parser.toBool(1, true);
m_airspace->enableAnalyzer(watchdog);
CLogMessage(this).info(u"Enabled watchdog: %1") << boolToYesNo(watchdog);
}
else if (parser.matchesCommand(".reinit", ".reinitialize"))
{
if (!m_airspace) { return false; }