This removes a check of the window type from make_visible. This
function already checks that the window type is not CMD_WIN near the
top, so this condition can never be false.
gdb/ChangeLog
2019-06-25 Tom Tromey <tom@tromey.com>
* tui/tui-wingeneral.c (make_visible): Remove check of window
type.
2019-06-25 Tom Tromey <tom@tromey.com>
+ * tui/tui-wingeneral.c (make_visible): Remove check of window
+ type.
+
+2019-06-25 Tom Tromey <tom@tromey.com>
+
* tui/tui-win.c (tui_win_info::max_height)
(tui_cmd_window::max_height): New methods.
(new_height_ok): Call max_height.
{
if (!win_info->is_visible)
{
- tui_make_window (win_info,
- (win_info->type != CMD_WIN
- && !tui_win_is_auxillary (win_info->type)));
+ tui_make_window (win_info, !tui_win_is_auxillary (win_info->type));
win_info->is_visible = true;
}
}