Remove unused function

This commit is contained in:
Matti Viljanen 2021-04-17 22:14:36 +03:00
parent f4bf1d0763
commit e31b791bdb
No known key found for this signature in database
GPG key ID: CF32A1495158F888
3 changed files with 0 additions and 4 deletions

View file

@ -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));

View file

@ -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);

View file

@ -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: