diff --git a/src/command/commands.c b/src/command/commands.c index e5dd5ef6..d8408937 100644 --- a/src/command/commands.c +++ b/src/command/commands.c @@ -4399,7 +4399,7 @@ cmd_xmlconsole(ProfWin *window, const char *const command, gchar **args) { ProfXMLWin *xmlwin = wins_get_xmlconsole(); if (xmlwin) { - ui_open_xmlconsole_win(); + ui_switch_win((ProfWin*)xmlwin); } else { ProfWin *window = wins_new_xmlconsole(); ui_switch_win(window); diff --git a/src/ui/core.c b/src/ui/core.c index 50a8f148..f8c8b7c6 100644 --- a/src/ui/core.c +++ b/src/ui/core.c @@ -222,15 +222,6 @@ ui_load_colours(void) } } -void -ui_open_xmlconsole_win(void) -{ - ProfXMLWin *xmlwin = wins_get_xmlconsole(); - if (xmlwin) { - ui_switch_win((ProfWin*)xmlwin); - } -} - void ui_handle_stanza(const char *const msg) { diff --git a/src/ui/ui.h b/src/ui/ui.h index a38124c8..9f7cf46a 100644 --- a/src/ui/ui.h +++ b/src/ui/ui.h @@ -188,7 +188,6 @@ void ui_update_presence(const resource_presence_t resource_presence, const char void ui_statusbar_new(const int win); void ui_write(char *line, int offset); void ui_invalid_command_usage(const char *const cmd, void (*setting_func)(void)); -void ui_open_xmlconsole_win(void); gboolean ui_win_has_unsaved_form(int num); void ui_inp_history_append(char *inp); diff --git a/tests/unittests/ui/stub_ui.c b/tests/unittests/ui/stub_ui.c index 5244f8b7..b397db86 100644 --- a/tests/unittests/ui/stub_ui.c +++ b/tests/unittests/ui/stub_ui.c @@ -320,8 +320,6 @@ void ui_inp_history_append(char *inp) {} void ui_invalid_command_usage(const char * const usage, void (*setting_func)(void)) {} -void ui_open_xmlconsole_win(void) {} - gboolean ui_win_has_unsaved_form(int num) { return FALSE;