diff options
author | Tom Tromey <tromey@adacore.com> | 2022-08-11 12:29:32 -0600 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2022-08-31 11:03:40 -0600 |
commit | 4311c583a6ac84e880207bf0418872f407557e60 (patch) | |
tree | 4b8d9d8094a49cd1f7ed8a51ec897369860fc35e /gdb | |
parent | c3d4b6a6d9f382d7b88c2d25a1520acc1c3d51bd (diff) | |
download | gdb-4311c583a6ac84e880207bf0418872f407557e60.zip gdb-4311c583a6ac84e880207bf0418872f407557e60.tar.gz gdb-4311c583a6ac84e880207bf0418872f407557e60.tar.bz2 |
Remove tui_out_new
tui_out_new is just a simple wrapper for 'new' and can be removed,
simplifying gdb a tiny bit.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/tui/tui-io.c | 2 | ||||
-rw-r--r-- | gdb/tui/tui-out.c | 6 | ||||
-rw-r--r-- | gdb/tui/tui-out.h | 2 |
3 files changed, 1 insertions, 9 deletions
diff --git a/gdb/tui/tui-io.c b/gdb/tui/tui-io.c index 51f0816..9f27f8b 100644 --- a/gdb/tui/tui-io.c +++ b/gdb/tui/tui-io.c @@ -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); diff --git a/gdb/tui/tui-out.c b/gdb/tui/tui-out.c index ae50b65..fdbd9c9 100644 --- a/gdb/tui/tui-out.c +++ b/gdb/tui/tui-out.c @@ -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); -} diff --git a/gdb/tui/tui-out.h b/gdb/tui/tui-out.h index b71d308..967900f 100644 --- a/gdb/tui/tui-out.h +++ b/gdb/tui/tui-out.h @@ -61,6 +61,4 @@ private: int m_start_of_line = 0; }; -extern tui_ui_out *tui_out_new (struct ui_file *stream); - #endif /* TUI_TUI_OUT_H */ |