chore: remove unused member App::configSection
This commit is contained in:
@ -55,7 +55,6 @@ public:
|
||||
virtual void loadConfig() = 0;
|
||||
virtual bool loadConfig(const std::string &pathname) = 0;
|
||||
virtual const char *daemonInfo() const = 0;
|
||||
virtual std::string configSection() const = 0;
|
||||
|
||||
void setByeFunc(void (*bye)(int)) override
|
||||
{
|
||||
|
||||
@ -48,15 +48,6 @@ public:
|
||||
int mainLoop() override;
|
||||
void startNode() override;
|
||||
|
||||
//
|
||||
// App overrides
|
||||
//
|
||||
|
||||
std::string configSection() const override
|
||||
{
|
||||
return "client";
|
||||
}
|
||||
|
||||
//
|
||||
// Regular functions
|
||||
//
|
||||
|
||||
@ -66,15 +66,6 @@ public:
|
||||
int start() override;
|
||||
void startNode() override;
|
||||
|
||||
//
|
||||
// App overrides
|
||||
//
|
||||
|
||||
std::string configSection() const override
|
||||
{
|
||||
return "server";
|
||||
}
|
||||
|
||||
//
|
||||
// Regular functions
|
||||
//
|
||||
|
||||
@ -56,14 +56,6 @@ create_test(
|
||||
|
||||
if(UNIX AND NOT APPLE)
|
||||
#this test does not work properly on windows / mac os
|
||||
create_test(
|
||||
NAME ServerAppTests
|
||||
DEPENDS app
|
||||
LIBS arch base
|
||||
SOURCE ServerAppTests.cpp
|
||||
WORKING_DIRECTORY "${CMAKE_BINARY_DIR}/src/lib/deskflow"
|
||||
)
|
||||
|
||||
create_test(
|
||||
NAME X11LayoutParserTests
|
||||
DEPENDS app
|
||||
|
||||
@ -1,18 +0,0 @@
|
||||
/*
|
||||
* Deskflow -- mouse and keyboard sharing utility
|
||||
* SPDX-FileCopyrightText: (C) 2025 Chris Rizzitello <sithlord48@gmail.com>
|
||||
* SPDX-FileCopyrightText: (C) 2014 - 2016 Symless Ltd.
|
||||
* SPDX-License-Identifier: GPL-2.0-only WITH LicenseRef-OpenSSL-Exception
|
||||
*/
|
||||
|
||||
#include "ServerAppTests.h"
|
||||
|
||||
#include "deskflow/ServerApp.h"
|
||||
|
||||
void ServerAppTests::section()
|
||||
{
|
||||
ServerApp app(nullptr);
|
||||
QCOMPARE(app.configSection(), "server");
|
||||
}
|
||||
|
||||
QTEST_MAIN(ServerAppTests)
|
||||
Reference in New Issue
Block a user