aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2022-08-11 12:29:32 -0600
committerTom Tromey <tromey@adacore.com>2022-08-31 11:03:40 -0600
commit4311c583a6ac84e880207bf0418872f407557e60 (patch)
tree4b8d9d8094a49cd1f7ed8a51ec897369860fc35e
parentc3d4b6a6d9f382d7b88c2d25a1520acc1c3d51bd (diff)
downloadgdb-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.
-rw-r--r--gdb/tui/tui-io.c2
-rw-r--r--gdb/tui/tui-out.c6
-rw-r--r--gdb/tui/tui-out.h2
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 */