refactor: remove paths::coreProfileDir and its single use for Settings::settingsPath()

This commit is contained in:
sithlord48 2025-03-13 23:21:07 -04:00 committed by Nick Bolton
parent 37b4e4b57f
commit f2c16c4432
2 changed files with 1 additions and 13 deletions

View file

@ -39,11 +39,7 @@ void clearSettings(ConfigScopes &scopes, bool enableRestart)
// the app config and server configs from being applied.
scopes.save(false);
auto configDir = paths::configDir();
qDebug("removing config dir: %s", qPrintable(configDir.absolutePath()));
configDir.removeRecursively();
auto profileDir = paths::coreProfileDir();
auto profileDir = QDir(Settings::settingsPath());
qDebug("removing profile dir: %s", qPrintable(profileDir.absolutePath()));
profileDir.removeRecursively();

View file

@ -34,12 +34,4 @@ inline QDir configDir(const bool persist = false)
return orgDir.absolutePath();
}
/**
* @brief Uses the Core tool to get the profile dir.
*/
inline QDir coreProfileDir()
{
return QDir(Settings::settingsPath());
}
} // namespace deskflow::gui::paths