about summary refs log tree commit diff stats
path: root/src/config
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2014-04-26 00:36:36 +0100
committerJames Booth <boothj5@gmail.com>2014-04-26 00:36:36 +0100
commitd6e92f62dc907d5da66f477884a4c0c728b84127 (patch)
treee77d8ad400874baa5edd7dde9ce66b1847fd89e9 /src/config
parentab4ea80a70803d8d6335d8f5a8a4248e6d5423a4 (diff)
downloadprofani-tty-d6e92f62dc907d5da66f477884a4c0c728b84127.tar.gz
Fixed cppcheck warnings
Diffstat (limited to 'src/config')
-rw-r--r--src/config/account.c1
-rw-r--r--src/config/preferences.c9
-rw-r--r--src/config/preferences.h1
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);