diff options
author | Tom Tromey <tom@tromey.com> | 2019-07-06 08:18:27 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2019-08-13 14:52:10 -0600 |
commit | 6405cd73c0d160d9b6f82744bb5510b3e101ad59 (patch) | |
tree | 9d49616a3d26e2803e6ae127e85fa105ddcec4a0 | |
parent | 5216580d7a1134a9349ec045b475f5b40f499e5e (diff) | |
download | gdb-6405cd73c0d160d9b6f82744bb5510b3e101ad59.zip gdb-6405cd73c0d160d9b6f82744bb5510b3e101ad59.tar.gz gdb-6405cd73c0d160d9b6f82744bb5510b3e101ad59.tar.bz2 |
Remove tui_gen_win_info::last_visible_line
The last_visible_line field of tui_gen_win_info is not used, so remove
it.
gdb/ChangeLog
2019-08-13 Tom Tromey <tom@tromey.com>
* tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
Remove.
* tui/tui-data.c (tui_initialize_static_data): Update.
-rw-r--r-- | gdb/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/tui/tui-data.c | 3 | ||||
-rw-r--r-- | gdb/tui/tui-data.h | 2 |
3 files changed, 7 insertions, 4 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 74f7595..1b7dabb 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,11 @@ 2019-08-13 Tom Tromey <tom@tromey.com> + * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>: + Remove. + * tui/tui-data.c (tui_initialize_static_data): Update. + +2019-08-13 Tom Tromey <tom@tromey.com> + * tui/tui-winsource.h (struct tui_exec_info_window) <~tui_exec_info_window, maybe_allocate_content, get_content, m_content>: Remove. diff --git a/gdb/tui/tui-data.c b/gdb/tui/tui-data.c index bb725c1..add1f33 100644 --- a/gdb/tui/tui-data.c +++ b/gdb/tui/tui-data.c @@ -262,8 +262,7 @@ tui_initialize_static_data () win->height = win->origin.x = win->origin.y = - win->viewport_height = - win->last_visible_line = 0; + win->viewport_height = 0; win->handle = NULL; win->is_visible = false; win->title = 0; diff --git a/gdb/tui/tui-data.h b/gdb/tui/tui-data.h index 08178e4..3493b5e 100644 --- a/gdb/tui/tui-data.h +++ b/gdb/tui/tui-data.h @@ -79,8 +79,6 @@ public: struct tui_point origin = {0, 0}; /* Viewport height. */ int viewport_height = 0; - /* Index of last visible line. */ - int last_visible_line = 0; /* Whether the window is visible or not. */ bool is_visible = false; /* Window title to display. */ |