Turn tui_first_data_item_displayed into a method
authorTom Tromey <tom@tromey.com>
Sat, 22 Jun 2019 17:55:33 +0000 (11:55 -0600)
committerTom Tromey <tom@tromey.com>
Tue, 25 Jun 2019 13:48:48 +0000 (07:48 -0600)
commiteaf9738bedf8de68d4bf8eafd0689cf1973648aa
treeceae5d6add3849b6b47c847ddab9bf767719def3
parent31ca47237fed3db1d912127a386cad6ffbb06750
Turn tui_first_data_item_displayed into a method

tui_first_data_item_displayed is only called from tui_data_window
methods, so turn it into a method as well.

gdb/ChangeLog
2019-06-25  Tom Tromey  <tom@tromey.com>

* tui/tui-windata.h (tui_first_data_item_displayed): Don't
declare.
* tui/tui-windata.c (tui_data_window::first_data_item_displayed):
Rename from tui_first_data_item_displayed.  Update.
(tui_data_window::refresh_all)
(tui_data_window::do_scroll_vertical): Update.
* tui/tui-data.h (struct tui_data_window)
<first_data_item_displayed>: Declare new method.
gdb/ChangeLog
gdb/tui/tui-data.h
gdb/tui/tui-windata.c
gdb/tui/tui-windata.h