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 @@ -280,12 +280,6 @@ prefs_set_inpblock(gint value) _save_prefs(); } -gint -prefs_get_priority(void) -{ - return g_key_file_get_integer(prefs, PREF_GROUP_PRESENCE, "priority", NULL); -} - gint prefs_get_reconnect(void) { 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 @@ -1604,13 +1604,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) { 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) {}