From 1cee520e2b71d92103a30a99600727734546d7d5 Mon Sep 17 00:00:00 2001 From: sithlord48 Date: Sun, 30 Mar 2025 07:53:46 -0400 Subject: [PATCH] chore: lib/common/settings remove unused private isPortableSettings --- src/lib/common/Settings.cpp | 5 ----- src/lib/common/Settings.h | 1 - 2 files changed, 6 deletions(-) diff --git a/src/lib/common/Settings.cpp b/src/lib/common/Settings.cpp index 5c28f0c58..6dd9d27b3 100644 --- a/src/lib/common/Settings.cpp +++ b/src/lib/common/Settings.cpp @@ -56,11 +56,6 @@ Settings::Settings(QObject *parent) : QObject(parent) qInfo().noquote() << "settings file:" << m_settings->fileName(); } -bool Settings::isPortableSettings() -{ - return (QFile(instance()->m_portableSettingsFile).exists()); -} - void Settings::cleanSettings() { const QStringList keys = m_settings->allKeys(); diff --git a/src/lib/common/Settings.h b/src/lib/common/Settings.h index 50a4bb1dd..461de620f 100644 --- a/src/lib/common/Settings.h +++ b/src/lib/common/Settings.h @@ -161,7 +161,6 @@ private: Settings *operator=(Settings &other) = delete; Settings(const Settings &other) = delete; ~Settings() = default; - static bool isPortableSettings(); void cleanSettings(); QSettings *m_settings = nullptr;