Patchwork [3/6] Remove tui_win_is_auxiliary

login
register
mail settings
Submitter Tom Tromey
Date Oct. 2, 2019, 11:11 p.m.
Message ID <20191002231202.10940-4-tom@tromey.com>
Download mbox | patch
Permalink /patch/34807/
State New
Headers show

Comments

Tom Tromey - Oct. 2, 2019, 11:11 p.m.
tui_win_is_auxiliary is not used, so remove it.

gdb/ChangeLog
2019-10-02  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      | 5 +++++
 gdb/tui/tui-data.c | 6 ------
 gdb/tui/tui-data.h | 2 --
 3 files changed, 5 insertions(+), 8 deletions(-)

Patch

diff --git a/gdb/tui/tui-data.c b/gdb/tui/tui-data.c
index 748d8978218..f1f3947e028 100644
--- a/gdb/tui/tui-data.c
+++ b/gdb/tui/tui-data.c
@@ -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 ()
diff --git a/gdb/tui/tui-data.h b/gdb/tui/tui-data.h
index 264652361ef..6d4fb78334f 100644
--- a/gdb/tui/tui-data.h
+++ b/gdb/tui/tui-data.h
@@ -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];