Move make_visible method to tui_gen_win_info
authorTom Tromey <tom@tromey.com>
Mon, 17 Jun 2019 19:19:15 +0000 (13:19 -0600)
committerTom Tromey <tom@tromey.com>
Tue, 25 Jun 2019 13:48:41 +0000 (07:48 -0600)
commit48a3bd16c2189174f601600dc6cceedd68e908b6
treeb75e64905292ef3215df8ca8d59b11b0efedb453
parentc3bd716ffc20cada32e8a18a209638b578d47f5e
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  <tom@tromey.com>

* 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) <make_visible>: New
method.  Moved from...
(struct tui_win_info) <make_visible>: ...here.
gdb/ChangeLog
gdb/tui/tui-data.h
gdb/tui/tui-wingeneral.c