Remove redundant check from make_visible
authorTom Tromey <tom@tromey.com>
Sun, 16 Jun 2019 21:17:52 +0000 (15:17 -0600)
committerTom Tromey <tom@tromey.com>
Tue, 25 Jun 2019 13:48:35 +0000 (07:48 -0600)
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.

gdb/ChangeLog
gdb/tui/tui-wingeneral.c

index 174d12b8fa7ea807e1f165e7ec2f62801caac660..0d663746872e53f94a2eab280b0ec01c107ea2a3 100644 (file)
@@ -1,3 +1,8 @@
+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)
index 4d168af0c0952d026cc848abcc3bc2d67e90789c..73d77ce19f35ec70ee7f7f1991859724d7a6f37b 100644 (file)
@@ -181,9 +181,7 @@ make_visible (struct tui_gen_win_info *win_info, bool visible)
     {
       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;
        }
     }