aboutsummaryrefslogtreecommitdiff
path: root/gdb/tui/tui-wingeneral.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2019-07-05 12:29:18 -0600
committerTom Tromey <tom@tromey.com>2019-08-13 14:52:09 -0600
commit3f3ffe54e229482bdb0785ae2162f03d60870400 (patch)
treef8a5c7ae3054cb1661cb92c91277824ab5c31264 /gdb/tui/tui-wingeneral.c
parent69258091762bce83b0f3dc9e07800b87bdc0649f (diff)
downloadgdb-3f3ffe54e229482bdb0785ae2162f03d60870400.zip
gdb-3f3ffe54e229482bdb0785ae2162f03d60870400.tar.gz
gdb-3f3ffe54e229482bdb0785ae2162f03d60870400.tar.bz2
Simplify tui_make_all_invisible
This simplifies the implementation of tui_make_all_invisible. Also, because show_data is only called by show_layout, this hoists the call to tui_make_all_invisible and removes the call from show_data. gdb/ChangeLog 2019-08-13 Tom Tromey <tom@tromey.com> * tui/tui-wingeneral.c (make_all_visible): Remove. (tui_make_all_invisible): Simplify. * tui/tui-layout.c (tui_make_all_invisible): Move from tui-wingeneral.c; simplify. (show_layout): Hoist call to tui_make_all_invisible. (show_data): Don't call tui_make_all_invisible.
Diffstat (limited to 'gdb/tui/tui-wingeneral.c')
-rw-r--r--gdb/tui/tui-wingeneral.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/gdb/tui/tui-wingeneral.c b/gdb/tui/tui-wingeneral.c
index 92a678c..79f93ce 100644
--- a/gdb/tui/tui-wingeneral.c
+++ b/gdb/tui/tui-wingeneral.c
@@ -165,19 +165,13 @@ tui_gen_win_info::make_visible (bool visible)
}
}
-/* Makes all windows invisible (except the command and locator
- windows). */
-static void
-make_all_visible (bool visible)
-{
- for (tui_win_info *win_info : all_tui_windows ())
- win_info->make_visible (visible);
-}
+/* See tui-wingeneral.h. */
void
tui_make_all_invisible (void)
{
- make_all_visible (false);
+ for (tui_win_info *win_info : all_tui_windows ())
+ win_info->make_visible (false);
}
/* Function to refresh all the windows currently displayed. */