diff options
author | James Booth <boothj5@gmail.com> | 2014-04-26 00:36:36 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2014-04-26 00:36:36 +0100 |
commit | d6e92f62dc907d5da66f477884a4c0c728b84127 (patch) | |
tree | e77d8ad400874baa5edd7dde9ce66b1847fd89e9 /src/config | |
parent | ab4ea80a70803d8d6335d8f5a8a4248e6d5423a4 (diff) | |
download | profani-tty-d6e92f62dc907d5da66f477884a4c0c728b84127.tar.gz |
Fixed cppcheck warnings
Diffstat (limited to 'src/config')
-rw-r--r-- | src/config/account.c | 1 | ||||
-rw-r--r-- | src/config/preferences.c | 9 | ||||
-rw-r--r-- | src/config/preferences.h | 1 |
3 files changed, 1 insertions, 10 deletions
diff --git a/src/config/account.c b/src/config/account.c index a7437ad3..4f52d280 100644 --- a/src/config/account.c +++ b/src/config/account.c @@ -138,7 +138,6 @@ account_free(ProfAccount *account) free(account->muc_service); free(account->muc_nick); free(account); - account = NULL; } } diff --git a/src/config/preferences.c b/src/config/preferences.c index 2d6aee79..5bbb36a2 100644 --- a/src/config/preferences.c +++ b/src/config/preferences.c @@ -209,13 +209,6 @@ prefs_get_priority(void) return g_key_file_get_integer(prefs, PREF_GROUP_PRESENCE, "priority", NULL); } -void -prefs_set_priority(gint value) -{ - g_key_file_set_integer(prefs, PREF_GROUP_PRESENCE, "priority", value); - _save_prefs(); -} - gint prefs_get_reconnect(void) { @@ -514,4 +507,4 @@ _get_default_string(preference_t pref) default: return NULL; } -} \ No newline at end of file +} diff --git a/src/config/preferences.h b/src/config/preferences.h index 48748883..3d2f6023 100644 --- a/src/config/preferences.h +++ b/src/config/preferences.h @@ -88,7 +88,6 @@ void prefs_set_notify_remind(gint period); gint prefs_get_notify_remind(void); void prefs_set_max_log_size(gint value); gint prefs_get_max_log_size(void); -void prefs_set_priority(gint value); gint prefs_get_priority(void); void prefs_set_reconnect(gint value); gint prefs_get_reconnect(void); |