remove deprecated_set_hook
authorTom Tromey <tromey@redhat.com>
Sat, 28 Dec 2013 21:56:18 +0000 (14:56 -0700)
committerTom Tromey <tromey@redhat.com>
Mon, 13 Jan 2014 19:33:43 +0000 (12:33 -0700)
This removes deprecated_set_hook.  Insight was the last user of this
hook, but I recently checked in a patch to have it use the
command_param_changed observer instead.

2014-01-13  Tom Tromey  <tromey@redhat.com>

* cli/cli-setshow.c (do_set_command): Update.
* defs.h (deprecated_set_hook): Remove.
* top.c (deprecated_set_hook): Remove.

gdb/ChangeLog
gdb/cli/cli-setshow.c
gdb/defs.h
gdb/top.c

index 88ff989ba63a8fbea05640e54453c03292dcb9b4..6cdafccb19beba19808198a5d859c6ec7f8a15fb 100644 (file)
@@ -1,3 +1,9 @@
+2014-01-13  Tom Tromey  <tromey@redhat.com>
+
+       * cli/cli-setshow.c (do_set_command): Update.
+       * defs.h (deprecated_set_hook): Remove.
+       * top.c (deprecated_set_hook): Remove.
+
 2014-01-13  Pedro Alves  <palves@redhat.com>
 
        * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
index 8baf37b09fa4f8eba11be603dc9bc6f38da47a24..75f15262c1ae490bd89d98e1037eac3a0db8053c 100644 (file)
@@ -452,8 +452,6 @@ do_set_command (char *arg, int from_tty, struct cmd_list_element *c)
       error (_("gdb internal error: bad var_type in do_setshow_command"));
     }
   c->func (c, NULL, from_tty);
-  if (deprecated_set_hook)
-    deprecated_set_hook (c);
 
   if (notify_command_param_changed_p (option_changed, c))
     {
index a7ce88a78310697003f5f4c82411992d4bc348d5..4aee7bb52913f7becfc8c845c0644e71bc0f2c17 100644 (file)
@@ -727,8 +727,6 @@ extern void (*deprecated_detach_hook) (void);
 extern void (*deprecated_call_command_hook) (struct cmd_list_element * c,
                                             char *cmd, int from_tty);
 
-extern void (*deprecated_set_hook) (struct cmd_list_element * c);
-
 extern int (*deprecated_ui_load_progress_hook) (const char *section,
                                                unsigned long num);
 
index d068450aa3644c5031f2b033bff470cc4c867fea..d5ef034e6347bdace40b53aaf859ecd2e09a7cd4 100644 (file)
--- a/gdb/top.c
+++ b/gdb/top.c
@@ -253,11 +253,6 @@ ptid_t (*deprecated_target_wait_hook) (ptid_t ptid,
 void (*deprecated_call_command_hook) (struct cmd_list_element * c, 
                                      char *cmd, int from_tty);
 
-/* Called after a `set' command has finished.  Is only run if the
-   `set' command succeeded.  */
-
-void (*deprecated_set_hook) (struct cmd_list_element * c);
-
 /* Called when the current thread changes.  Argument is thread id.  */
 
 void (*deprecated_context_hook) (int id);
This page took 0.033041 seconds and 4 git commands to generate.