aboutsummaryrefslogtreecommitdiff
path: root/gdb/tui/tui-data.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2019-06-16 14:22:21 -0600
committerTom Tromey <tom@tromey.com>2019-06-25 07:48:32 -0600
commitcda37efbffb63e2634ea0600fdad2de6a8f9f3ad (patch)
tree8edadf6bec084e722503d27cc686e3cfd591e53d /gdb/tui/tui-data.c
parent6a0ee02c22b78b6d49fda99b6f2f9154d0cb0a47 (diff)
downloadgdb-cda37efbffb63e2634ea0600fdad2de6a8f9f3ad.zip
gdb-cda37efbffb63e2634ea0600fdad2de6a8f9f3ad.tar.gz
gdb-cda37efbffb63e2634ea0600fdad2de6a8f9f3ad.tar.bz2
Introduce make_visible method
This introduceds the make_visible to tui_win_info and overrides it in subclasses as appropriate. This allows the removal of the tui_win_is_source_type, as it is no longer used. gdb/ChangeLog 2019-06-25 Tom Tromey <tom@tromey.com> * tui/tui-wingeneral.c (tui_win_info::make_visible) (tui_source_window_base::make_visible): New methods. (make_all_visible): Make method call. * tui/tui-data.h (struct tui_win_info) <make_visible>: New method. (struct tui_source_window_base, struct tui_cmd_window): Override make_visible. (tui_win_is_source_type): Don't declare. * tui/tui-data.c (tui_win_is_source_type): Remove.
Diffstat (limited to 'gdb/tui/tui-data.c')
-rw-r--r--gdb/tui/tui-data.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/gdb/tui/tui-data.c b/gdb/tui/tui-data.c
index 4ec3df4..6e1df01 100644
--- a/gdb/tui/tui-data.c
+++ b/gdb/tui/tui-data.c
@@ -64,12 +64,6 @@ static void free_content_elements (tui_win_content,
**********************************/
int
-tui_win_is_source_type (enum tui_win_type win_type)
-{
- return (win_type == SRC_WIN || win_type == DISASSEM_WIN);
-}
-
-int
tui_win_is_auxillary (enum tui_win_type win_type)
{
return (win_type > MAX_MAJOR_WINDOWS);