Remove unused code

This commit is contained in:
Matti Viljanen 2021-04-28 22:01:19 +03:00
parent 7ff2c0250d
commit f9768aeeb0
No known key found for this signature in database
GPG key ID: CF32A1495158F888
2 changed files with 0 additions and 13 deletions

View file

@ -115,18 +115,6 @@ bool Settings::loadInteger(const char *key, int &currValue, const int min, const
return true; return true;
} }
bool Settings::loadString(const char *key, QString & currValue) {
QString newValue = mySettings->value(key, currValue).toString();
if(currValue == newValue) {
logD(QString("Load: %1 %2 (unchanged)").arg(key).arg(currValue));
return false;
}
currValue = newValue;
logV(QString("Load: %1 %2").arg(key).arg(currValue));
return true;
}
void Settings::updateConfig(const QString path) { void Settings::updateConfig(const QString path) {
// Use the same file location as GUI for data exchange // Use the same file location as GUI for data exchange

View file

@ -95,7 +95,6 @@ private:
const char* sLogLevel = "logLevel"; const char* sLogLevel = "logLevel";
bool loadInteger(const char *key, int &currValue, const int min, const int max); bool loadInteger(const char *key, int &currValue, const int min, const int max);
bool loadString(const char *key, QString & currValue);
private slots: private slots:
void updateConfig(const QString path); void updateConfig(const QString path);