diff --git a/application/src/settings.cpp b/application/src/settings.cpp index e6caf81..7ee6f84 100644 --- a/application/src/settings.cpp +++ b/application/src/settings.cpp @@ -145,8 +145,6 @@ void Settings::setNotificationHighText(const QString newText) { emit notificationHighTextChanged(notificationHighText); } -int Settings::bound(int value, int min, int max) { - return (value <= min ? min : (value >= max ? max : value)); void Settings::loadInteger(const char *key, int &value, const int min, const int max) { int newValue = mySettings->value(key, value).toInt(); value = (newValue <= min ? min : (newValue >= max ? max : newValue)); diff --git a/application/src/settings.h b/application/src/settings.h index 299356c..9c437b5 100644 --- a/application/src/settings.h +++ b/application/src/settings.h @@ -99,7 +99,6 @@ private: const char* sNotificationLowText = "notificationLowText"; const char* sNotificationHighText = "notificationHighText"; - int bound(int value, int min, int max); void loadInteger(const char *key, int &value, const int min, const int max); void saveInteger(const char *key, const int &value); diff --git a/service/src/settings.h b/service/src/settings.h index 7d88d47..d2320dc 100644 --- a/service/src/settings.h +++ b/service/src/settings.h @@ -91,7 +91,6 @@ private: const char* sNotificationHighText = "notificationHighText"; const char* sLogFilename = "logFilename"; - int bound(int value, int min, int max); bool loadInteger(const char *key, int &value, const int min, const int max); private slots: