Remove tui_out_new

tui_out_new is just a simple wrapper for 'new' and can be removed,
simplifying gdb a tiny bit.
This commit is contained in:
Tom Tromey 2022-08-11 12:29:32 -06:00
parent c3d4b6a6d9
commit 4311c583a6
3 changed files with 1 additions and 9 deletions

View File

@ -907,7 +907,7 @@ tui_initialize_io (void)
tui_stdout = new pager_file (new tui_file (stdout));
tui_stderr = new tui_file (stderr);
tui_stdlog = new timestamped_file (tui_stderr);
tui_out = tui_out_new (tui_stdout);
tui_out = new tui_ui_out (tui_stdout);
/* Create the default UI. */
tui_old_uiout = new cli_ui_out (gdb_stdout);

View File

@ -109,9 +109,3 @@ tui_ui_out::tui_ui_out (ui_file *stream)
: cli_ui_out (stream, 0)
{
}
tui_ui_out *
tui_out_new (struct ui_file *stream)
{
return new tui_ui_out (stream);
}

View File

@ -61,6 +61,4 @@ class tui_ui_out : public cli_ui_out
int m_start_of_line = 0;
};
extern tui_ui_out *tui_out_new (struct ui_file *stream);
#endif /* TUI_TUI_OUT_H */