refactor: coretool remove getProfileDir

This commit is contained in:
sithlord48
2025-03-13 23:05:58 -04:00
committed by Nick Bolton
parent b502a6b848
commit 37b4e4b57f
3 changed files with 0 additions and 21 deletions

View File

@ -15,16 +15,6 @@
#include <QDir> #include <QDir>
QString CoreTool::getProfileDir() const
{
#if defined Q_OS_UNIX
ArchFileUnix sysInfo;
#elif defined Q_OS_WIN
ArchFileWindows sysInfo;
#endif
return QDir::cleanPath(QString::fromUtf8(sysInfo.getProfileDirectory()));
}
QString CoreTool::getInstalledDir() const QString CoreTool::getInstalledDir() const
{ {
#if defined Q_OS_UNIX #if defined Q_OS_UNIX

View File

@ -11,6 +11,5 @@
class CoreTool class CoreTool
{ {
public: public:
QString getProfileDir() const;
QString getInstalledDir() const; QString getInstalledDir() const;
}; };

View File

@ -9,16 +9,6 @@
#include <gtest/gtest.h> #include <gtest/gtest.h>
TEST(CoreToolTests, getProfileDir_noMock_returnsNonEmpty)
{
TestQtCoreApp app;
CoreTool coreTool;
QString profileDir = coreTool.getProfileDir();
EXPECT_FALSE(profileDir.isEmpty());
}
TEST(CoreToolTests, getInstalledDir_noMock_returnsNonEmpty) TEST(CoreToolTests, getInstalledDir_noMock_returnsNonEmpty)
{ {
TestQtCoreApp app; TestQtCoreApp app;