chore: rm unused CoreTool::getArch
This commit is contained in:
@ -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());
|
||||
}
|
||||
|
||||
@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user