refactor: Remove unused CoreTool

This commit is contained in:
sithlord48
2025-03-14 08:20:41 -04:00
committed by Nick Bolton
parent f2c16c4432
commit c1642b8d9d
4 changed files with 0 additions and 63 deletions

View File

@ -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

View File

@ -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()));
}

View File

@ -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;
};

View File

@ -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());
}