summaryrefslogtreecommitdiff
path: root/gdb/tui/tui-command.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2019-12-21 10:35:59 -0700
committerTom Tromey <tom@tromey.com>2019-12-27 09:33:36 -0700
commit1630140dc64fcc6ce2366650eedce690235a8178 (patch)
tree2433003f4b796ce573c381c2d6330dc2c80d1f67 /gdb/tui/tui-command.c
parentf2810fe00a6b5f227c6d64168127f184f9862a19 (diff)
downloadbinutils-gdb-1630140dc64fcc6ce2366650eedce690235a8178.tar.gz
Remove tui_gen_win_info::viewport_height
tui_gen_win_info::viewport_height is only used in a couple of spots, and is redundant with "height". This patch removes viewport_height. gdb/ChangeLog 2019-12-27 Tom Tromey <tom@tromey.com> * tui/tui-source.c (tui_source_window::maybe_update): Update. * tui/tui-regs.c (tui_data_window::display_registers_from): Update. * tui/tui-layout.c (tui_gen_win_info::resize): Update. * tui/tui-data.h (struct tui_gen_win_info) <viewport_height>: Remove. * tui/tui-command.c (tui_cmd_window::resize): Update. Change-Id: I020e026fbe289adda8e2fdfebca91bdbdbc312e8
Diffstat (limited to 'gdb/tui/tui-command.c')
-rw-r--r--gdb/tui/tui-command.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/gdb/tui/tui-command.c b/gdb/tui/tui-command.c
index e4c3a1b7491..5f676b2e659 100644
--- a/gdb/tui/tui-command.c
+++ b/gdb/tui/tui-command.c
@@ -42,14 +42,6 @@ tui_cmd_window::resize (int height_, int width_, int origin_x, int origin_y)
{
width = width_;
height = height_;
- if (height > 1)
- {
- /* Note this differs from the base class implementation, because
- this window can't be boxed. */
- viewport_height = height - 1;
- }
- else
- viewport_height = 1;
x = origin_x;
y = origin_y;