refactor: remove INode class as base for Server and Client objects

This commit is contained in:
sithlord48
2025-08-17 14:46:34 -04:00
committed by Nick Bolton
parent 4eec183598
commit a9e87d5ef5
4 changed files with 3 additions and 23 deletions

View File

@ -14,7 +14,6 @@
#include "base/EventTypes.h"
#include "deskflow/ClientArgs.h"
#include "deskflow/Clipboard.h"
#include "deskflow/INode.h"
#include "mt/CondVar.h"
#include "net/NetworkAddress.h"
@ -39,7 +38,7 @@ class TCPSocket;
/*!
This class implements the top-level client algorithms for deskflow.
*/
class Client : public IClient, public INode
class Client : public IClient
{
public:
class FailInfo

View File

@ -95,7 +95,6 @@ add_library(${lib_name} STATIC ${PLATFORM_CODE}
IClipboard.h
IKeyState.cpp
IKeyState.h
INode.h
IPlatformScreen.cpp
IPlatformScreen.h
IPrimaryScreen.cpp

View File

@ -1,17 +0,0 @@
/*
* 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
*/
#pragma once
#include "common/Common.h"
class INode
{
public:
virtual ~INode() = default;
};

View File

@ -13,7 +13,6 @@
#include "base/Stopwatch.h"
#include "deskflow/Clipboard.h"
#include "deskflow/ClipboardTypes.h"
#include "deskflow/INode.h"
#include "deskflow/KeyTypes.h"
#include "deskflow/MouseTypes.h"
#include "deskflow/OptionTypes.h"
@ -41,7 +40,7 @@ class ClientListener;
/*!
This class implements the top-level server algorithms for deskflow.
*/
class Server : public INode
class Server
{
using ServerConfig = deskflow::server::Config;
@ -127,7 +126,7 @@ public:
);
Server(Server const &) = delete;
Server(Server &&) = delete;
~Server() override;
~Server();
Server &operator=(Server const &) = delete;
Server &operator=(Server &&) = delete;