refactor: use ArchDaemonWindows::daemonFailed directly

remove now unused ArchMiscWindows::daemonFailed
update copyright year
This commit is contained in:
sithlord48 2026-01-03 09:24:41 -05:00 committed by Chris Rizzitello
parent 3ff06b7d9a
commit 0e04364d17
4 changed files with 4 additions and 13 deletions

View file

@ -50,7 +50,7 @@ public:
is called when the daemon must exit the main loop and it must cause
\c runFunc to return. \c func should return what \c runDaemon()
returns. \c func or \c runFunc can call
\c ArchMiscWindows::daemonFailed() to indicate startup failure.
\c ArchDaemonWindows::daemonFailed() to indicate startup failure.
</ul>
*/
virtual int daemonize(DaemonFunc const &func) = 0;

View file

@ -70,11 +70,6 @@ int ArchMiscWindows::runDaemon(RunFunc runFunc)
return ArchDaemonWindows::runDaemon(runFunc);
}
void ArchMiscWindows::daemonFailed(int result)
{
ArchDaemonWindows::daemonFailed(result);
}
HKEY ArchMiscWindows::openKey(HKEY key, const TCHAR *keyName)
{
return openKey(key, keyName, false);

View file

@ -47,12 +47,6 @@ public:
*/
static int runDaemon(RunFunc runFunc);
//! Indicate failure of running daemon
/*!
Delegates to ArchDaemonWindows.
*/
static void daemonFailed(int result);
//! Open and return a registry key, closing the parent key
static HKEY openKey(HKEY parent, const TCHAR *child);

View file

@ -1,5 +1,6 @@
/*
* Deskflow -- mouse and keyboard sharing utility
* SPDX-FileCopyrightText: (C) 2026 Deskflow Developers
* SPDX-FileCopyrightText: (C) 2012 - 2025 Symless Ltd.
* SPDX-FileCopyrightText: (C) 2002 Chris Schoeneman
* SPDX-License-Identifier: GPL-2.0-only WITH LicenseRef-OpenSSL-Exception
@ -8,6 +9,7 @@
#include "deskflow/win32/AppUtilWindows.h"
#include "arch/Arch.h"
#include "arch/win32/ArchDaemonWindows.h"
#include "arch/win32/ArchMiscWindows.h"
#include "arch/win32/XArchWindows.h"
#include "base/Event.h"
@ -71,7 +73,7 @@ void AppUtilWindows::exitApp(int code)
switch (m_exitMode) {
case kExitModeDaemon:
ArchMiscWindows::daemonFailed(code);
ArchDaemonWindows::daemonFailed(code);
break;
default: