mirror of
https://github.com/weechat/weechat.git
synced 2026-07-07 02:03:13 +02:00
core: remove obsolete signals "debug_buffer" and "debug_windows"
This commit is contained in:
@@ -169,26 +169,6 @@ debug_sigsegv ()
|
||||
weechat_shutdown (EXIT_FAILURE, 1);
|
||||
}
|
||||
|
||||
/*
|
||||
* Callback for signal "debug_buffer".
|
||||
*
|
||||
* This function is called when command "/debug buffer" is issued.
|
||||
*/
|
||||
|
||||
int
|
||||
debug_buffer_cb (void *data, const char *signal, const char *type_data,
|
||||
void *signal_data)
|
||||
{
|
||||
/* make C compiler happy */
|
||||
(void) data;
|
||||
(void) signal;
|
||||
(void) type_data;
|
||||
|
||||
gui_buffer_dump_hexa ((struct t_gui_buffer *)signal_data);
|
||||
|
||||
return WEECHAT_RC_OK;
|
||||
}
|
||||
|
||||
/*
|
||||
* Displays tree of windows (this function must not be called directly).
|
||||
*/
|
||||
@@ -253,27 +233,6 @@ debug_windows_tree ()
|
||||
debug_windows_tree_display (gui_windows_tree, 1);
|
||||
}
|
||||
|
||||
/*
|
||||
* Callback for signal "debug_windows".
|
||||
*
|
||||
* This function is called when command "/debug windows" is issued.
|
||||
*/
|
||||
|
||||
int
|
||||
debug_windows_cb (void *data, const char *signal, const char *type_data,
|
||||
void *signal_data)
|
||||
{
|
||||
/* make C compiler happy */
|
||||
(void) data;
|
||||
(void) signal;
|
||||
(void) type_data;
|
||||
(void) signal_data;
|
||||
|
||||
debug_windows_tree ();
|
||||
|
||||
return WEECHAT_RC_OK;
|
||||
}
|
||||
|
||||
/*
|
||||
* Displays information about dynamic memory allocation.
|
||||
*/
|
||||
@@ -561,6 +520,4 @@ void
|
||||
debug_init ()
|
||||
{
|
||||
hook_signal (NULL, "debug_dump", &debug_dump_cb, NULL);
|
||||
hook_signal (NULL, "debug_buffer", &debug_buffer_cb, NULL);
|
||||
hook_signal (NULL, "debug_windows", &debug_windows_cb, NULL);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user