From b2f2ae0d6ff07e935f6ab23132f1fed02640d204 Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Tue, 12 Jan 2021 10:42:43 -0500 Subject: [PATCH] gdb: remove pre_init_ui_hook from top.c 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 | 4 ++++ gdb/top.c | 5 ----- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 27d5b96f141..88d605fa1c6 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2021-01-12 Simon Marchi + + * top.c (pre_init_ui_hook): Remove. + 2021-01-12 Srinath Parvathaneni * aarch64-tdep.c (aarch64_vnh_type): Add "bf" field in h registers. diff --git a/gdb/top.c b/gdb/top.c index fca3c23951d..2c13864e120 100644 --- a/gdb/top.c +++ b/gdb/top.c @@ -447,8 +447,6 @@ read_command_file (FILE *stream) command_handler (command); } } - -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__ -- 2.30.2