refactor: Remove unused CoreTool
This commit is contained in:
@ -50,8 +50,6 @@ add_library(${target} STATIC
|
||||
core/CommandProcess.h
|
||||
core/CoreProcess.cpp
|
||||
core/CoreProcess.h
|
||||
core/CoreTool.cpp
|
||||
core/CoreTool.h
|
||||
core/ServerConnection.cpp
|
||||
core/ServerConnection.h
|
||||
core/ServerMessage.cpp
|
||||
|
||||
@ -1,26 +0,0 @@
|
||||
/*
|
||||
* Deskflow -- mouse and keyboard sharing utility
|
||||
* SPDX-FileCopyrightText: (C) 2024 Chris Rizzitello <sithlord48@gmail.com>
|
||||
* SPDX-FileCopyrightText: (C) 2015 Symless Ltd.
|
||||
* SPDX-License-Identifier: GPL-2.0-only WITH LicenseRef-OpenSSL-Exception
|
||||
*/
|
||||
|
||||
#include "gui/core/CoreTool.h"
|
||||
|
||||
#if defined(Q_OS_UNIX)
|
||||
#include "arch/unix/ArchFileUnix.h"
|
||||
#elif defined(Q_OS_WIN)
|
||||
#include "arch/win32/ArchFileWindows.h"
|
||||
#endif
|
||||
|
||||
#include <QDir>
|
||||
|
||||
QString CoreTool::getInstalledDir() const
|
||||
{
|
||||
#if defined Q_OS_UNIX
|
||||
ArchFileUnix sysInfo;
|
||||
#elif defined Q_OS_WIN
|
||||
ArchFileWindows sysInfo;
|
||||
#endif
|
||||
return QDir::cleanPath(QString::fromUtf8(sysInfo.getInstalledDirectory()));
|
||||
}
|
||||
@ -1,15 +0,0 @@
|
||||
/*
|
||||
* Deskflow -- mouse and keyboard sharing utility
|
||||
* SPDX-FileCopyrightText: (C) 2015 Symless Ltd.
|
||||
* SPDX-License-Identifier: GPL-2.0-only WITH LicenseRef-OpenSSL-Exception
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <QString>
|
||||
|
||||
class CoreTool
|
||||
{
|
||||
public:
|
||||
QString getInstalledDir() const;
|
||||
};
|
||||
@ -1,20 +0,0 @@
|
||||
/*
|
||||
* Deskflow -- mouse and keyboard sharing utility
|
||||
* SPDX-FileCopyrightText: (C) 2024 Symless Ltd.
|
||||
* SPDX-License-Identifier: GPL-2.0-only WITH LicenseRef-OpenSSL-Exception
|
||||
*/
|
||||
|
||||
#include "gui/core/CoreTool.h"
|
||||
#include "shared/gui/TestQtCoreApp.h"
|
||||
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
TEST(CoreToolTests, getInstalledDir_noMock_returnsNonEmpty)
|
||||
{
|
||||
TestQtCoreApp app;
|
||||
CoreTool coreTool;
|
||||
|
||||
QString installedDir = coreTool.getInstalledDir();
|
||||
|
||||
EXPECT_FALSE(installedDir.isEmpty());
|
||||
}
|
||||
Reference in New Issue
Block a user