diff options
author | Tom Tromey <tom@tromey.com> | 2019-06-16 10:04:49 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2019-06-22 15:22:49 -0600 |
commit | 5bff081c10ab4debfd3416739fda93b6c275496b (patch) | |
tree | 8b0fc9e0dbb66bd9ddc0494888c7b23a6da38fea /gdb/tui/tui-data.c | |
parent | 47e3f47487396414ac936e2fd37b870fe08a55d0 (diff) | |
download | gdb-5bff081c10ab4debfd3416739fda93b6c275496b.zip gdb-5bff081c10ab4debfd3416739fda93b6c275496b.tar.gz gdb-5bff081c10ab4debfd3416739fda93b6c275496b.tar.bz2 |
Remove two unused functions from the TUI
This removes two unused functions from the TUI. According to
"git grep -G", they have never been used.
gdb/ChangeLog
2019-06-22 Tom Tromey <tom@tromey.com>
* tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
declare.
* tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
Diffstat (limited to 'gdb/tui/tui-data.c')
-rw-r--r-- | gdb/tui/tui-data.c | 77 |
1 files changed, 0 insertions, 77 deletions
diff --git a/gdb/tui/tui-data.c b/gdb/tui/tui-data.c index 2df9cbc..b67cb48 100644 --- a/gdb/tui/tui-data.c +++ b/gdb/tui/tui-data.c @@ -604,59 +604,6 @@ tui_add_content_elements (struct tui_gen_win_info *win_info, return index_start; } - -/* Delete all curses windows associated with win_info, leaving - everything else intact. */ -void -tui_del_window (struct tui_win_info *win_info) -{ - struct tui_gen_win_info *generic_win; - - switch (win_info->generic.type) - { - case SRC_WIN: - case DISASSEM_WIN: - generic_win = tui_locator_win_info_ptr (); - if (generic_win != NULL) - { - tui_delete_win (generic_win->handle); - generic_win->handle = NULL; - generic_win->is_visible = FALSE; - } - if (win_info->detail.source_info.fullname) - { - xfree (win_info->detail.source_info.fullname); - win_info->detail.source_info.fullname = NULL; - } - generic_win = win_info->detail.source_info.execution_info; - if (generic_win != NULL) - { - tui_delete_win (generic_win->handle); - generic_win->handle = NULL; - generic_win->is_visible = FALSE; - } - break; - case DATA_WIN: - if (win_info->generic.content != NULL) - { - tui_del_data_windows (win_info->detail.data_display_info.regs_content, - win_info->detail.data_display_info.regs_content_count); - tui_del_data_windows (win_info->detail.data_display_info.data_content, - win_info->detail.data_display_info.data_content_count); - } - break; - default: - break; - } - if (win_info->generic.handle != NULL) - { - tui_delete_win (win_info->generic.handle); - win_info->generic.handle = NULL; - win_info->generic.is_visible = FALSE; - } -} - - void tui_free_window (struct tui_win_info *win_info) { @@ -744,30 +691,6 @@ tui_free_win_content (struct tui_gen_win_info *win_info) void -tui_del_data_windows (tui_win_content content, - int content_size) -{ - int i; - - /* Remember that data window content elements are of type struct - tui_gen_win_info *, each of which whose single element is a data - element. */ - for (i = 0; i < content_size; i++) - { - struct tui_gen_win_info *generic_win - = &content[i]->which_element.data_window; - - if (generic_win != NULL) - { - tui_delete_win (generic_win->handle); - generic_win->handle = NULL; - generic_win->is_visible = FALSE; - } - } -} - - -void tui_free_data_content (tui_win_content content, int content_size) { |