]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Remove some dead code
authorTom Tromey <tromey@adacore.com>
Wed, 10 Aug 2022 20:01:16 +0000 (14:01 -0600)
committerTom Tromey <tromey@adacore.com>
Wed, 31 Aug 2022 17:03:39 +0000 (11:03 -0600)
This patch removes some dead code and an old FIXME.  These no longer
seem useful, even for documentation purposes.

gdb/event-top.c

index 4547d61452266a17c25a12c06d113a8faf5db633..a06221b1b8045bda448cc446ce01586e9da88b4a 100644 (file)
@@ -1380,19 +1380,6 @@ gdb_disable_readline (void)
 {
   struct ui *ui = current_ui;
 
-  /* 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 = NULL;
-  gdb_stdtarg = NULL;
-  gdb_stdtargerr = NULL;
-#endif
-
   if (ui->command_editing)
     gdb_rl_callback_handler_remove ();
   ui->unregister_file_handler ();