chore: remove Cpp file for ArchDaemonNone

This commit is contained in:
sithlord48
2025-10-15 18:05:16 -04:00
committed by Nick Bolton
parent 4be0dd3d9d
commit e108afdb80
3 changed files with 11 additions and 28 deletions

View File

@ -1,25 +0,0 @@
/*
* Deskflow -- mouse and keyboard sharing utility
* SPDX-FileCopyrightText: (C) 2012 - 2016 Symless Ltd.
* SPDX-FileCopyrightText: (C) 2002 Chris Schoeneman
* SPDX-License-Identifier: GPL-2.0-only WITH LicenseRef-OpenSSL-Exception
*/
#include "arch/ArchDaemonNone.h"
#include <QString>
//
// ArchDaemonNone
//
int ArchDaemonNone::daemonize(DaemonFunc const &func)
{
// simply forward the call to func. obviously, this doesn't
// do any daemonizing.
return func();
}
QString ArchDaemonNone::commandLine() const
{
return {};
}

View File

@ -1,5 +1,6 @@
/*
* Deskflow -- mouse and keyboard sharing utility
* SPDX-FileCopyrightText: (C) 2025 Deskflow Developers.
* SPDX-FileCopyrightText: (C) 2012 - 2016 Symless Ltd.
* SPDX-FileCopyrightText: (C) 2002 Chris Schoeneman
* SPDX-License-Identifier: GPL-2.0-only WITH LicenseRef-OpenSSL-Exception
@ -24,6 +25,14 @@ public:
~ArchDaemonNone() override = default;
// IArchDaemon overrides
int daemonize(DaemonFunc const &func) override;
QString commandLine() const override;
int daemonize(DaemonFunc const &func) override
{
// simply forward the call to func. obviously, this doesn't
// do any daemonizing.
return func();
}
QString commandLine() const override
{
return {};
}
};

View File

@ -36,7 +36,6 @@ endif()
add_library(arch STATIC ${PLATFORM_CODE}
Arch.cpp
Arch.h
ArchDaemonNone.cpp
ArchDaemonNone.h
ArchException.h
IArchDaemon.h