chore: rm unused CoreTool::getArch

This commit is contained in:
sithlord48
2025-03-12 22:47:03 -04:00
committed by Nick Bolton
parent b73aceee7d
commit 8b1e8dfd9f
2 changed files with 0 additions and 22 deletions

View File

@ -9,10 +9,8 @@
#if defined(Q_OS_UNIX)
#include "arch/unix/ArchFileUnix.h"
#include "arch/unix/ArchSystemUnix.h"
#elif defined(Q_OS_WIN)
#include "arch/win32/ArchFileWindows.h"
#include "arch/win32/ArchSystemWindows.h"
#endif
#include <QDir>
@ -36,13 +34,3 @@ QString CoreTool::getInstalledDir() const
#endif
return QDir::cleanPath(QString::fromUtf8(sysInfo.getInstalledDirectory()));
}
QString CoreTool::getArch() const
{
#if defined Q_OS_UNIX
ArchSystemUnix sysInfo;
#elif defined Q_OS_WIN
ArchSystemWindows sysInfo;
#endif
return QString::fromUtf8(sysInfo.getPlatformName());
}

View File

@ -28,13 +28,3 @@ TEST(CoreToolTests, getInstalledDir_noMock_returnsNonEmpty)
EXPECT_FALSE(installedDir.isEmpty());
}
TEST(CoreToolTests, getArch_noMock_returnsNonEmpty)
{
TestQtCoreApp app;
CoreTool coreTool;
QString arch = coreTool.getArch();
EXPECT_FALSE(arch.isEmpty());
}