This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 9/9] Remove useless assignment from tui_remove_hooks
- From: Tom Tromey <tom at tromey dot com>
- To: gdb-patches at sourceware dot org
- Cc: Tom Tromey <tom at tromey dot com>
- Date: Fri, 16 Aug 2019 10:15:11 -0600
- Subject: [PATCH 9/9] Remove useless assignment from tui_remove_hooks
- References: <20190816161511.16162-1-tom@tromey.com>
tui_remove_hooks clears deprecated_query_hook, but nothing in the TUI
ever sets it; so remove the assignment.
gdb/ChangeLog
2019-08-16 Tom Tromey <tom@tromey.com>
* tui/tui-hooks.c (tui_remove_hooks): Don't set
deprecated_query_hook.
---
gdb/ChangeLog | 5 +++++
gdb/tui/tui-hooks.c | 1 -
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/gdb/tui/tui-hooks.c b/gdb/tui/tui-hooks.c
index a2d06f8a152..5cc90dd3b6c 100644
--- a/gdb/tui/tui-hooks.c
+++ b/gdb/tui/tui-hooks.c
@@ -260,7 +260,6 @@ void
tui_remove_hooks (void)
{
deprecated_print_frame_info_listing_hook = 0;
- deprecated_query_hook = 0;
/* Remove our observers. */
tui_attach_detach_observers (false);
--
2.17.2