chore: rm unused CoreTool::getArch
This commit is contained in:
parent
b73aceee7d
commit
8b1e8dfd9f
2 changed files with 0 additions and 22 deletions
|
|
@ -9,10 +9,8 @@
|
||||||
|
|
||||||
#if defined(Q_OS_UNIX)
|
#if defined(Q_OS_UNIX)
|
||||||
#include "arch/unix/ArchFileUnix.h"
|
#include "arch/unix/ArchFileUnix.h"
|
||||||
#include "arch/unix/ArchSystemUnix.h"
|
|
||||||
#elif defined(Q_OS_WIN)
|
#elif defined(Q_OS_WIN)
|
||||||
#include "arch/win32/ArchFileWindows.h"
|
#include "arch/win32/ArchFileWindows.h"
|
||||||
#include "arch/win32/ArchSystemWindows.h"
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <QDir>
|
#include <QDir>
|
||||||
|
|
@ -36,13 +34,3 @@ QString CoreTool::getInstalledDir() const
|
||||||
#endif
|
#endif
|
||||||
return QDir::cleanPath(QString::fromUtf8(sysInfo.getInstalledDirectory()));
|
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());
|
EXPECT_FALSE(installedDir.isEmpty());
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST(CoreToolTests, getArch_noMock_returnsNonEmpty)
|
|
||||||
{
|
|
||||||
TestQtCoreApp app;
|
|
||||||
CoreTool coreTool;
|
|
||||||
|
|
||||||
QString arch = coreTool.getArch();
|
|
||||||
|
|
||||||
EXPECT_FALSE(arch.isEmpty());
|
|
||||||
}
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue