From 48a3bd16c2189174f601600dc6cceedd68e908b6 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Mon, 17 Jun 2019 13:19:15 -0600 Subject: Move make_visible method to tui_gen_win_info This moves the make_visible method from tui_win_info to its base class, tui_gen_win_info. This allows the removal of another window type check. gdb/ChangeLog 2019-06-25 Tom Tromey * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename from make_visible. (tui_make_visible, tui_make_invisible): Rewrite. (tui_win_info::make_visible): Remove. (tui_source_window_base::make_visible): Update. * tui/tui-data.h (struct tui_gen_win_info) : New method. Moved from... (struct tui_win_info) : ...here. --- gdb/tui/tui-data.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gdb/tui/tui-data.h') diff --git a/gdb/tui/tui-data.h b/gdb/tui/tui-data.h index 59d1900..74efdde 100644 --- a/gdb/tui/tui-data.h +++ b/gdb/tui/tui-data.h @@ -51,6 +51,9 @@ struct tui_gen_win_info /* Call to refresh this window. */ virtual void refresh_window (); + /* Make this window visible or invisible. */ + virtual void make_visible (bool visible); + /* Return the name of this type of window. */ virtual const char *name () const { @@ -273,9 +276,6 @@ public: return false; } - /* Make this window visible or invisible. */ - virtual void make_visible (bool visible); - /* Refresh this window and any associated windows. */ virtual void refresh (); -- cgit v1.1