public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] Remove tui_out_new
@ 2022-08-31 17:14 Tom Tromey
0 siblings, 0 replies; only message in thread
From: Tom Tromey @ 2022-08-31 17:14 UTC (permalink / raw)
To: gdb-cvs
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=4311c583a6ac84e880207bf0418872f407557e60
commit 4311c583a6ac84e880207bf0418872f407557e60
Author: Tom Tromey <tromey@adacore.com>
Date: Thu Aug 11 12:29:32 2022 -0600
Remove tui_out_new
tui_out_new is just a simple wrapper for 'new' and can be removed,
simplifying gdb a tiny bit.
Diff:
---
gdb/tui/tui-io.c | 2 +-
gdb/tui/tui-out.c | 6 ------
gdb/tui/tui-out.h | 2 --
3 files changed, 1 insertion(+), 9 deletions(-)
diff --git a/gdb/tui/tui-io.c b/gdb/tui/tui-io.c
index 51f08168a90..9f27f8bcc01 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 ae50b65a3c6..fdbd9c9fcc3 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 b71d308cf14..967900f0307 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 */
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-08-31 17:14 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-31 17:14 [binutils-gdb] Remove tui_out_new Tom Tromey
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).