about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2015-11-20 00:18:13 +0000
committerJames Booth <boothj5@gmail.com>2015-11-20 00:18:13 +0000
commit548f9394beb86e3636182a175baeb7c4f3333a01 (patch)
tree9921d6471ed00127c7c5567e0723c42fd8084502
parent16fbdedceb66b5568f8d1d62ee845999f6d76457 (diff)
downloadprofani-tty-548f9394beb86e3636182a175baeb7c4f3333a01.tar.gz
Removed unused priority settings
-rw-r--r--src/command/command.c2
-rw-r--r--src/config/preferences.c6
-rw-r--r--src/ui/console.c7
-rw-r--r--src/ui/ui.h1
-rw-r--r--tests/unittests/ui/stub_ui.c1
5 files changed, 1 insertions, 16 deletions
diff --git a/src/command/command.c b/src/command/command.c
index 7a87d828..471fcd29 100644
--- a/src/command/command.c
+++ b/src/command/command.c
@@ -1482,7 +1482,7 @@ static struct cmd_t command_defs[] =
     },
 
     { "/priority",
-        cmd_priority, parse_args, 1, 1, &cons_priority_setting,
+        cmd_priority, parse_args, 1, 1, NULL,
         CMD_TAGS(
             CMD_TAG_PRESENCE)
         CMD_SYN(
diff --git a/src/config/preferences.c b/src/config/preferences.c
index 071b6646..414de9f4 100644
--- a/src/config/preferences.c
+++ b/src/config/preferences.c
@@ -281,12 +281,6 @@ prefs_set_inpblock(gint value)
 }
 
 gint
-prefs_get_priority(void)
-{
-    return g_key_file_get_integer(prefs, PREF_GROUP_PRESENCE, "priority", NULL);
-}
-
-gint
 prefs_get_reconnect(void)
 {
     if (!g_key_file_has_key(prefs, PREF_GROUP_CONNECTION, "reconnect", NULL)) {
diff --git a/src/ui/console.c b/src/ui/console.c
index 1beaa48a..ac63005e 100644
--- a/src/ui/console.c
+++ b/src/ui/console.c
@@ -1605,13 +1605,6 @@ cons_autoping_setting(void)
 }
 
 void
-cons_priority_setting(void)
-{
-    gint priority = prefs_get_priority();
-    cons_show("Priority (/priority) : %d", priority);
-}
-
-void
 cons_show_connection_prefs(void)
 {
     cons_show("Connection preferences:");
diff --git a/src/ui/ui.h b/src/ui/ui.h
index 242772a5..da4b54a8 100644
--- a/src/ui/ui.h
+++ b/src/ui/ui.h
@@ -287,7 +287,6 @@ void cons_grlog_setting(void);
 void cons_autoaway_setting(void);
 void cons_reconnect_setting(void);
 void cons_autoping_setting(void);
-void cons_priority_setting(void);
 void cons_autoconnect_setting(void);
 void cons_inpblock_setting(void);
 void cons_show_contact_online(PContact contact, Resource *resource, GDateTime *last_activity);
diff --git a/tests/unittests/ui/stub_ui.c b/tests/unittests/ui/stub_ui.c
index fe553a8c..05d077b2 100644
--- a/tests/unittests/ui/stub_ui.c
+++ b/tests/unittests/ui/stub_ui.c
@@ -430,7 +430,6 @@ void cons_grlog_setting(void) {}
 void cons_autoaway_setting(void) {}
 void cons_reconnect_setting(void) {}
 void cons_autoping_setting(void) {}
-void cons_priority_setting(void) {}
 void cons_autoconnect_setting(void) {}
 void cons_inpblock_setting(void) {}