diff --git a/src/command/commands.c b/src/command/commands.c index 037ec453..e5dd5ef6 100644 --- a/src/command/commands.c +++ b/src/command/commands.c @@ -4401,7 +4401,8 @@ cmd_xmlconsole(ProfWin *window, const char *const command, gchar **args) if (xmlwin) { ui_open_xmlconsole_win(); } else { - ui_create_xmlconsole_win(); + ProfWin *window = wins_new_xmlconsole(); + ui_switch_win(window); } return TRUE; diff --git a/src/ui/core.c b/src/ui/core.c index 340d54d5..50a8f148 100644 --- a/src/ui/core.c +++ b/src/ui/core.c @@ -222,13 +222,6 @@ ui_load_colours(void) } } -void -ui_create_xmlconsole_win(void) -{ - ProfWin *window = wins_new_xmlconsole(); - ui_switch_win(window); -} - void ui_open_xmlconsole_win(void) { diff --git a/src/ui/ui.h b/src/ui/ui.h index 909e9d5d..a38124c8 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_create_xmlconsole_win(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 08fa9191..5244f8b7 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_create_xmlconsole_win(void) {} - void ui_open_xmlconsole_win(void) {} gboolean ui_win_has_unsaved_form(int num)