]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gdb: remove pre_init_ui_hook from top.c
authorSimon Marchi <simon.marchi@polymtl.ca>
Tue, 12 Jan 2021 15:42:43 +0000 (10:42 -0500)
committerSimon Marchi <simon.marchi@polymtl.ca>
Tue, 12 Jan 2021 15:42:43 +0000 (10:42 -0500)
This hook appears to be unused.  I guess it was used from insight or
something like that at some point.  But I grepped in today's source of
insight [1] and there was no match.  So I think it's safe to remove.

gdb/ChangeLog:

* top.c (pre_init_ui_hook): Remove.

[1] https://sourceware.org/git/?p=insight.git

Change-Id: Ia14499a4b6b9d79bb9a526d635fe44a654ef2a27

gdb/ChangeLog
gdb/top.c

index 27d5b96f141215ae03dfcc127a2efb3a69071a4b..88d605fa1c61e408704a87718614dda1011b1e7f 100644 (file)
@@ -1,3 +1,7 @@
+2021-01-12  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       * top.c (pre_init_ui_hook): Remove.
+
 2021-01-12  Srinath Parvathaneni  <srinath.parvathaneni@arm.com>
 
        * aarch64-tdep.c (aarch64_vnh_type): Add "bf" field in h registers.
index fca3c23951d3eebbd2ac967799dfcbf94f412331..2c13864e120fe204b5c99e391b08ca79dd2769d0 100644 (file)
--- a/gdb/top.c
+++ b/gdb/top.c
@@ -447,8 +447,6 @@ read_command_file (FILE *stream)
       command_handler (command);
     }
 }
-\f
-void (*pre_init_ui_hook) (void);
 
 #ifdef __MSDOS__
 static void
@@ -2325,9 +2323,6 @@ gdb_init (char *argv0)
   saved_command_line = xstrdup ("");
   previous_saved_command_line = xstrdup ("");
 
-  if (pre_init_ui_hook)
-    pre_init_ui_hook ();
-
   /* Run the init function of each source file.  */
 
 #ifdef __MSDOS__