Remove tui_win_is_auxiliary
authorTom Tromey <tom@tromey.com>
Tue, 1 Oct 2019 23:14:14 +0000 (17:14 -0600)
committerTom Tromey <tom@tromey.com>
Wed, 9 Oct 2019 22:50:34 +0000 (16:50 -0600)
tui_win_is_auxiliary is not used, so remove it.

gdb/ChangeLog
2019-10-09  Tom Tromey  <tom@tromey.com>

* tui/tui-data.c (tui_win_is_auxiliary): Remove.
* tui/tui-data.h (tui_win_is_auxiliary): Don't declare.

gdb/ChangeLog
gdb/tui/tui-data.c
gdb/tui/tui-data.h

index 7fb3394c0c6baac6270db7d9d436ec5e6f383727..d8a51080807308aaf4c792c10003d30c5ac02df1 100644 (file)
@@ -1,3 +1,8 @@
+2019-10-09  Tom Tromey  <tom@tromey.com>
+
+       * tui/tui-data.c (tui_win_is_auxiliary): Remove.
+       * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
+
 2019-10-09  Tom Tromey  <tom@tromey.com>
 
        * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
index 748d897821806271aa0955a7a62ebd67f7dcafed..f1f3947e028fb38ef5759eec239b6c3a300f4563 100644 (file)
@@ -34,12 +34,6 @@ static struct tui_win_info *win_with_focus = NULL;
 
 static bool win_resized = false;
 
-int
-tui_win_is_auxiliary (enum tui_win_type win_type)
-{
-  return (win_type > MAX_MAJOR_WINDOWS);
-}
-
 /* Answer a whether the terminal window has been resized or not.  */
 bool
 tui_win_resized ()
index 264652361ef5ca536406f59f87168e505954fc68..6d4fb78334f0e0fa3181c4ef779ab00c174dad59 100644 (file)
@@ -207,8 +207,6 @@ public:
   bool is_highlighted = false;
 };
 
-extern int tui_win_is_auxiliary (enum tui_win_type win_type);
-
 
 /* Global Data.  */
 extern struct tui_win_info *tui_win_list[MAX_MAJOR_WINDOWS];