From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2126) id B6E4F3857C4C; Wed, 31 Aug 2022 17:14:50 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B6E4F3857C4C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1661966090; bh=F2L8o//DI90lpxJUQ/NtfsDrLDZN8MSclaa0bO8uK6U=; h=From:To:Subject:Date:From; b=uMLaEaD1M615h8aR7QXRFIlr6F+/dRnAwITx/mU8P2AI5GwUYfBJOXXS+Z3XcA2u0 Jj1tYKjVT6lHTiBgi+3EeZE9pGHx3r1WfcY7wAiGcE6q6aLfwymfa9MQeWqdtqJNC3 p99D/Zkzajh7kmmuIj6cQUrQm6DqTr8JhjMYxXws= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Tom Tromey To: gdb-cvs@sourceware.org Subject: [binutils-gdb] Remove tui_out_new X-Act-Checkin: binutils-gdb X-Git-Author: Tom Tromey X-Git-Refname: refs/heads/master X-Git-Oldrev: c3d4b6a6d9f382d7b88c2d25a1520acc1c3d51bd X-Git-Newrev: 4311c583a6ac84e880207bf0418872f407557e60 Message-Id: <20220831171450.B6E4F3857C4C@sourceware.org> Date: Wed, 31 Aug 2022 17:14:50 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D4311c583a6ac= 84e880207bf0418872f407557e60 commit 4311c583a6ac84e880207bf0418872f407557e60 Author: Tom Tromey Date: Thu Aug 11 12:29:32 2022 -0600 Remove tui_out_new =20 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 =3D new pager_file (new tui_file (stdout)); tui_stderr =3D new tui_file (stderr); tui_stdlog =3D new timestamped_file (tui_stderr); - tui_out =3D tui_out_new (tui_stdout); + tui_out =3D new tui_ui_out (tui_stdout); =20 /* Create the default UI. */ tui_old_uiout =3D 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 =3D 0; }; =20 -extern tui_ui_out *tui_out_new (struct ui_file *stream); - #endif /* TUI_TUI_OUT_H */