aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2019-06-28 15:01:11 -0600
committerTom Tromey <tom@tromey.com>2019-07-17 12:19:04 -0600
commit4dde7b34f4e40ee6e0ea596357e4def60bd67d20 (patch)
tree7287c847a36c3a94a9d934f329bb48d1517ac00a
parentb73dd8779c0530e91c6e5067eab4cb7ca3f794d5 (diff)
downloadgdb-4dde7b34f4e40ee6e0ea596357e4def60bd67d20.zip
gdb-4dde7b34f4e40ee6e0ea596357e4def60bd67d20.tar.gz
gdb-4dde7b34f4e40ee6e0ea596357e4def60bd67d20.tar.bz2
Remove tui_set_win_height
tui_set_win_height_command is just a simple wrapper for tui_set_win_height, so rename the latter and remove the wrapper. gdb/ChangeLog 2019-07-17 Tom Tromey <tom@tromey.com> * tui/tui-win.c (tui_set_win_height_command): Rename from tui_set_win_height. (tui_set_win_height_command): Remove.
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/tui/tui-win.c12
2 files changed, 7 insertions, 11 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 1235b1a..9844ec1 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,11 @@
2019-07-17 Tom Tromey <tom@tromey.com>
+ * tui/tui-win.c (tui_set_win_height_command): Rename from
+ tui_set_win_height.
+ (tui_set_win_height_command): Remove.
+
+2019-07-17 Tom Tromey <tom@tromey.com>
+
* tui/tui-source.c (tui_source_window): New constructor. Add
observer.
(~tui_source_window): New destructor.
diff --git a/gdb/tui/tui-win.c b/gdb/tui/tui-win.c
index a7f87e1..7abb8d1 100644
--- a/gdb/tui/tui-win.c
+++ b/gdb/tui/tui-win.c
@@ -62,7 +62,6 @@ static enum tui_status tui_adjust_win_heights (struct tui_win_info *,
static int new_height_ok (struct tui_win_info *, int);
static void tui_set_tab_width_command (const char *, int);
static void tui_refresh_all_command (const char *, int);
-static void tui_set_win_height_command (const char *, int);
static void tui_all_windows_info (const char *, int);
static void tui_set_focus_command (const char *, int);
static void tui_scroll_forward_command (const char *, int);
@@ -991,7 +990,7 @@ tui_set_tab_width_command (const char *arg, int from_tty)
/* Set the height of the specified window. */
static void
-tui_set_win_height (const char *arg, int from_tty)
+tui_set_win_height_command (const char *arg, int from_tty)
{
/* Make sure the curses mode is enabled. */
tui_enable ();
@@ -1069,15 +1068,6 @@ The window name specified must be valid and visible.\n"));
printf_filtered (WIN_HEIGHT_USAGE);
}
-/* Set the height of the specified window, with va_list. */
-static void
-tui_set_win_height_command (const char *arg, int from_tty)
-{
- /* Make sure the curses mode is enabled. */
- tui_enable ();
- tui_set_win_height (arg, from_tty);
-}
-
/* Function to adjust all window heights around the primary. */
static enum tui_status
tui_adjust_win_heights (struct tui_win_info *primary_win_info,