aboutsummaryrefslogtreecommitdiff
path: root/gdb/tui/tui-data.h
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2020-02-22 11:48:26 -0700
committerTom Tromey <tom@tromey.com>2020-02-22 11:48:37 -0700
commit865a5aec04b504d33c83baf5e05f6cdf95ac9dc3 (patch)
treecb6615c32bc06e7163e5e58b717cad91f5a496ed /gdb/tui/tui-data.h
parente098d18cfc12c750616b7c934b9a9057f71f3553 (diff)
downloadgdb-865a5aec04b504d33c83baf5e05f6cdf95ac9dc3.zip
gdb-865a5aec04b504d33c83baf5e05f6cdf95ac9dc3.tar.gz
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-data.h')
-rw-r--r--gdb/tui/tui-data.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/gdb/tui/tui-data.h b/gdb/tui/tui-data.h
index a460137..cd62b57 100644
--- a/gdb/tui/tui-data.h
+++ b/gdb/tui/tui-data.h
@@ -263,11 +263,6 @@ extern void tui_set_win_resized_to (bool);
extern struct tui_win_info *tui_next_win (struct tui_win_info *);
extern struct tui_win_info *tui_prev_win (struct tui_win_info *);
-/* Delete all the invisible windows. Note that it is an error to call
- this when the command window is invisible -- we don't allow the
- command window to be removed from the layout. */
-extern void tui_delete_invisible_windows ();
-
extern unsigned int tui_tab_width;
#endif /* TUI_TUI_DATA_H */