Remove unnecessary TUI declarations
authorTom Tromey <tom@tromey.com>
Tue, 16 Jun 2020 23:45:36 +0000 (17:45 -0600)
committerTom Tromey <tom@tromey.com>
Thu, 18 Jun 2020 02:07:04 +0000 (20:07 -0600)
I found some unnecessary declarations (and one unused macro) in the
TUI.  This patch removes them.

gdb/ChangeLog
2020-06-17  Tom Tromey  <tom@tromey.com>

* tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
(tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
declare.
* tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.

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

index faf7b10b2f7512b18f9cb747b70ab8aac31dccbe..da4be157cdaeaab257c40f9185b92d8e768884d6 100644 (file)
@@ -1,3 +1,10 @@
+2020-06-17  Tom Tromey  <tom@tromey.com>
+
+       * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
+       (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
+       declare.
+       * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
+
 2020-06-15  Simon Marchi  <simon.marchi@efficios.com>
 
        * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
index abe77272291ad0c60cdbdb03fe0d45ce1317bfc8..1accf3683d420f93175d1203a3a1aa2bf62509f5 100644 (file)
@@ -132,7 +132,6 @@ public:
 #define DISASSEM_NAME           "asm"
 #define STATUS_NAME            "status"
 #define MIN_WIN_HEIGHT          3
-#define MIN_CMD_WIN_HEIGHT      3
 
 /* Strings to display in the TUI status line.  */
 #define SINGLE_KEY              "(SingleKey)"
index e3791846307104cdbd7ca94a15eef4486aaeca1a..65ad8bf348373b8be5e1f87f1590b1e8a6535dd8 100644 (file)
 
 #include "tui/tui-data.h"
 
-struct tui_win_info;
-
-extern void tui_scroll_forward (struct tui_win_info *, int);
-extern void tui_scroll_backward (struct tui_win_info *, int);
-extern void tui_scroll_left (struct tui_win_info *, int);
-extern void tui_scroll_right (struct tui_win_info *, int);
 extern void tui_set_win_focus_to (struct tui_win_info *);
 extern void tui_resize_all (void);
 extern void tui_refresh_all_win (void);