[09/11] Remove unused deprecated_call_command_hook
Commit Message
Nobody actually uses this hook anymore. So simply remove it.
gdb/ChangeLog
* defs.h (deprecated_call_command_hook): Remove.
* top.c (deprecated_call_command_hook): Remove.
(execute_command): Adjust.
* interps.c (clear_interpreter_hooks): Adjust.
---
gdb/defs.h | 2 --
gdb/interps.c | 1 -
gdb/top.c | 8 --------
3 files changed, 11 deletions(-)
@@ -672,8 +672,6 @@ extern void (*deprecated_print_frame_info_listing_hook) (struct symtab * s,
int noerror);
extern int (*deprecated_query_hook) (const char *, va_list)
ATTRIBUTE_FPTR_PRINTF(1,0);
-extern void (*deprecated_call_command_hook) (struct cmd_list_element * c,
- char *cmd, int from_tty);
extern int (*deprecated_ui_load_progress_hook) (const char *section,
unsigned long num);
@@ -391,7 +391,6 @@ clear_interpreter_hooks (void)
deprecated_print_frame_info_listing_hook = 0;
/*print_frame_more_info_hook = 0; */
deprecated_query_hook = 0;
- deprecated_call_command_hook = 0;
deprecated_error_begin_hook = 0;
}
@@ -194,12 +194,6 @@ void (*deprecated_print_frame_info_listing_hook) (struct symtab * s,
int (*deprecated_query_hook) (const char *, va_list);
-/* Used by UI as a wrapper around command execution. May do various
- things like enabling/disabling buttons, etc... */
-
-void (*deprecated_call_command_hook) (struct cmd_list_element * c,
- char *cmd, int from_tty);
-
/* The highest UI number ever assigned. */
static int highest_ui_num;
@@ -618,8 +612,6 @@ execute_command (char *p, int from_tty)
do_show_command (arg, from_tty, c);
else if (!cmd_func_p (c))
error (_("That is not a command, just a help topic."));
- else if (deprecated_call_command_hook)
- deprecated_call_command_hook (c, arg, from_tty);
else
cmd_func (c, arg, from_tty);