From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2126) id D0446385277B; Wed, 31 Aug 2022 17:14:09 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D0446385277B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1661966049; bh=iVNUdIZ+bho+nCaX4xfptD6zjj4mXaKCssexa3x3KAY=; h=From:To:Subject:Date:From; b=nK6LGyuwsRQjokq3a8fZfC3k2xu7t7Q+HTbzgLQe1LSfgRIU/dqwIe3Q/TVgmMkpN ZI6zBADwEvfcQ9Nd2KYmwRN01lfHFpuND7uQpXlCHwYZMdfZSi4BdT8WBpGkeFcru7 Zi9sG31hJnVTF8ijJYbNj6zee6xt17575dNVGJyY= 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 some dead code X-Act-Checkin: binutils-gdb X-Git-Author: Tom Tromey X-Git-Refname: refs/heads/master X-Git-Oldrev: 51cacdb50fd2ac2240172a63140e56c0adb41742 X-Git-Newrev: 10d6fc874c0201bd28c57525fc9465f2bcd680ec Message-Id: <20220831171409.D0446385277B@sourceware.org> Date: Wed, 31 Aug 2022 17:14:09 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D10d6fc874c02= 01bd28c57525fc9465f2bcd680ec commit 10d6fc874c0201bd28c57525fc9465f2bcd680ec Author: Tom Tromey Date: Wed Aug 10 14:01:16 2022 -0600 Remove some dead code =20 This patch removes some dead code and an old FIXME. These no longer seem useful, even for documentation purposes. Diff: --- gdb/event-top.c | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/gdb/event-top.c b/gdb/event-top.c index 4547d614522..a06221b1b80 100644 --- a/gdb/event-top.c +++ b/gdb/event-top.c @@ -1380,19 +1380,6 @@ gdb_disable_readline (void) { struct ui *ui =3D current_ui; =20 - /* FIXME - It is too heavyweight to delete and remake these every - time you run an interpreter that needs readline. It is probably - better to have the interpreters cache these, which in turn means - that this needs to be moved into interpreter specific code. */ - -#if 0 - ui_file_delete (gdb_stdout); - ui_file_delete (gdb_stderr); - gdb_stdlog =3D NULL; - gdb_stdtarg =3D NULL; - gdb_stdtargerr =3D NULL; -#endif - if (ui->command_editing) gdb_rl_callback_handler_remove (); ui->unregister_file_handler ();