Remove tui_gen_win_info::last_visible_line
authorTom Tromey <tom@tromey.com>
Sat, 6 Jul 2019 14:18:27 +0000 (08:18 -0600)
committerTom Tromey <tom@tromey.com>
Tue, 13 Aug 2019 20:52:10 +0000 (14:52 -0600)
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.

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

index 74f75956ed8f3ad01aa168cc485f42d6babf2f49..1b7dabb6aadcdc67ffb8f58ca192cb280fe5d658 100644 (file)
@@ -1,3 +1,9 @@
+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)
index bb725c199ccfe79e9ca8388590c514eed76ecbfd..add1f33926f20cd27da3aaddffaea025dba70151 100644 (file)
@@ -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;
index 08178e49ea8e0382b58e41ab832f6c6059087feb..3493b5ed68b593b4f4d27a278ea64832f572c05f 100644 (file)
@@ -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.  */