diff options
author | Tom Tromey <tom@tromey.com> | 2020-02-22 11:48:26 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2020-02-22 11:48:37 -0700 |
commit | 865a5aec04b504d33c83baf5e05f6cdf95ac9dc3 (patch) | |
tree | cb6615c32bc06e7163e5e58b717cad91f5a496ed /gdb/tui/tui-wingeneral.c | |
parent | e098d18cfc12c750616b7c934b9a9057f71f3553 (diff) | |
download | fsf-binutils-gdb-865a5aec04b504d33c83baf5e05f6cdf95ac9dc3.zip fsf-binutils-gdb-865a5aec04b504d33c83baf5e05f6cdf95ac9dc3.tar.gz fsf-binutils-gdb-865a5aec04b504d33c83baf5e05f6cdf95ac9dc3.tar.bz2 |
Remove tui_delete_invisible_windows and tui_make_all_invisible
tui_delete_invisible_windows is only needed after applying a layout,
and tui_make_all_invisible is only needed before applying a layout.
This patch removes these functions, in favor of doing this management
directly in tui_apply_current_layout. This is needed so that the
lifetimes of non-built-in windows will be properly managed.
gdb/ChangeLog
2020-02-22 Tom Tromey <tom@tromey.com>
* tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
* tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
* tui/tui-win.c (tui_resize_all): Don't call
tui_delete_invisible_windows.
* tui/tui-layout.c (tui_apply_current_layout): Delete windows when
done.
(tui_set_layout): Update.
(tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
* tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
* tui/tui-data.c (tui_delete_invisible_windows): Remove.
Change-Id: Ia3603b021dcb7ec31700a4a32640cd09b00b8f3b
Diffstat (limited to 'gdb/tui/tui-wingeneral.c')
-rw-r--r-- | gdb/tui/tui-wingeneral.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/gdb/tui/tui-wingeneral.c b/gdb/tui/tui-wingeneral.c index e001a4c..35468d4 100644 --- a/gdb/tui/tui-wingeneral.c +++ b/gdb/tui/tui-wingeneral.c @@ -202,15 +202,6 @@ tui_gen_win_info::make_visible (bool visible) handle.reset (nullptr); } -/* See tui-wingeneral.h. */ - -void -tui_make_all_invisible (void) -{ - for (tui_win_info *win_info : all_tui_windows ()) - win_info->make_visible (false); -} - /* Function to refresh all the windows currently displayed. */ void |