chore: Remove dead code, function isServerCommandLine from daemon
This commit is contained in:
parent
bdf5a0f352
commit
74812fbf75
1 changed files with 0 additions and 15 deletions
|
|
@ -35,21 +35,6 @@ using namespace deskflow::core;
|
||||||
|
|
||||||
const char *const kLogFilename = "deskflow-daemon.log";
|
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
|
void showHelp(int argc, char **argv) // NOSONAR - CLI args
|
||||||
{
|
{
|
||||||
const auto binName = argc > 0 ? std::filesystem::path(argv[0]).filename().string() : "deskflow-core";
|
const auto binName = argc > 0 ? std::filesystem::path(argv[0]).filename().string() : "deskflow-core";
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue