[28/66] Remove redundant check from make_visible

Message ID 20190623224329.16060-29-tom@tromey.com
State New, archived
Headers

Commit Message

Tom Tromey June 23, 2019, 10:42 p.m. UTC
  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-23  Tom Tromey  <tom@tromey.com>

	* tui/tui-wingeneral.c (make_visible): Remove check of window
	type.
---
 gdb/ChangeLog            | 5 +++++
 gdb/tui/tui-wingeneral.c | 4 +---
 2 files changed, 6 insertions(+), 3 deletions(-)
  

Patch

diff --git a/gdb/tui/tui-wingeneral.c b/gdb/tui/tui-wingeneral.c
index 4d168af0c09..73d77ce19f3 100644
--- a/gdb/tui/tui-wingeneral.c
+++ b/gdb/tui/tui-wingeneral.c
@@ -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;
 	}
     }