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

View file

@ -95,7 +95,6 @@ add_library(${lib_name} STATIC ${PLATFORM_CODE}
IClipboard.h IClipboard.h
IKeyState.cpp IKeyState.cpp
IKeyState.h IKeyState.h
INode.h
IPlatformScreen.cpp IPlatformScreen.cpp
IPlatformScreen.h IPlatformScreen.h
IPrimaryScreen.cpp 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 "base/Stopwatch.h"
#include "deskflow/Clipboard.h" #include "deskflow/Clipboard.h"
#include "deskflow/ClipboardTypes.h" #include "deskflow/ClipboardTypes.h"
#include "deskflow/INode.h"
#include "deskflow/KeyTypes.h" #include "deskflow/KeyTypes.h"
#include "deskflow/MouseTypes.h" #include "deskflow/MouseTypes.h"
#include "deskflow/OptionTypes.h" #include "deskflow/OptionTypes.h"
@ -41,7 +40,7 @@ class ClientListener;
/*! /*!
This class implements the top-level server algorithms for deskflow. This class implements the top-level server algorithms for deskflow.
*/ */
class Server : public INode class Server
{ {
using ServerConfig = deskflow::server::Config; using ServerConfig = deskflow::server::Config;
@ -127,7 +126,7 @@ public:
); );
Server(Server const &) = delete; Server(Server const &) = delete;
Server(Server &&) = delete; Server(Server &&) = delete;
~Server() override; ~Server();
Server &operator=(Server const &) = delete; Server &operator=(Server const &) = delete;
Server &operator=(Server &&) = delete; Server &operator=(Server &&) = delete;