chore: Remove dead code, function isServerCommandLine from daemon

This commit is contained in:
Nick Bolton
2025-02-25 11:35:41 +00:00
parent bdf5a0f352
commit 74812fbf75

View File

@ -35,21 +35,6 @@ using namespace deskflow::core;
const char *const kLogFilename = "deskflow-daemon.log";
namespace {
bool isServerCommandLine(const std::vector<std::string> &cmd)
{
auto isServer = false;
if (cmd.size() > 1) {
isServer = (cmd[0].find("deskflow-server") != std::string::npos) ||
(cmd[0].find("deskflow-core") != std::string::npos && cmd[1] == "server");
}
return isServer;
}
} // namespace
void showHelp(int argc, char **argv) // NOSONAR - CLI args
{
const auto binName = argc > 0 ? std::filesystem::path(argv[0]).filename().string() : "deskflow-core";