chore: remove Cpp file for ArchDaemonNone
This commit is contained in:
@ -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 {};
|
||||
}
|
||||
@ -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 {};
|
||||
}
|
||||
};
|
||||
|
||||
@ -36,7 +36,6 @@ endif()
|
||||
add_library(arch STATIC ${PLATFORM_CODE}
|
||||
Arch.cpp
|
||||
Arch.h
|
||||
ArchDaemonNone.cpp
|
||||
ArchDaemonNone.h
|
||||
ArchException.h
|
||||
IArchDaemon.h
|
||||
|
||||
Reference in New Issue
Block a user