From e108afdb8021ad9e901cced824fe8909bdedf5d5 Mon Sep 17 00:00:00 2001 From: sithlord48 Date: Wed, 15 Oct 2025 18:05:16 -0400 Subject: [PATCH] chore: remove Cpp file for ArchDaemonNone --- src/lib/arch/ArchDaemonNone.cpp | 25 ------------------------- src/lib/arch/ArchDaemonNone.h | 13 +++++++++++-- src/lib/arch/CMakeLists.txt | 1 - 3 files changed, 11 insertions(+), 28 deletions(-) delete mode 100644 src/lib/arch/ArchDaemonNone.cpp diff --git a/src/lib/arch/ArchDaemonNone.cpp b/src/lib/arch/ArchDaemonNone.cpp deleted file mode 100644 index 9831a3e4c..000000000 --- a/src/lib/arch/ArchDaemonNone.cpp +++ /dev/null @@ -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 - -// -// 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 {}; -} diff --git a/src/lib/arch/ArchDaemonNone.h b/src/lib/arch/ArchDaemonNone.h index 3060335b6..c8a7fd6b0 100644 --- a/src/lib/arch/ArchDaemonNone.h +++ b/src/lib/arch/ArchDaemonNone.h @@ -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 {}; + } }; diff --git a/src/lib/arch/CMakeLists.txt b/src/lib/arch/CMakeLists.txt index 8c07b20ac..c83127530 100644 --- a/src/lib/arch/CMakeLists.txt +++ b/src/lib/arch/CMakeLists.txt @@ -36,7 +36,6 @@ endif() add_library(arch STATIC ${PLATFORM_CODE} Arch.cpp Arch.h - ArchDaemonNone.cpp ArchDaemonNone.h ArchException.h IArchDaemon.h