From: Tom Tromey Date: Sat, 22 Jun 2019 17:50:19 +0000 (-0600) Subject: Remove tui_first_data_element_no_in_line X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f95675e12d3ab100ce11257a09663c68df7784ee;p=binutils-gdb.git Remove tui_first_data_element_no_in_line tui_first_data_element_no_in_line is never used. This patch removes it. Tested by rebuilding, and by grep. gdb/ChangeLog 2019-06-22 Tom Tromey * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't declare. * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 78ea6cfb3ea..29c568f5d3c 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2019-06-22 Tom Tromey + + * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't + declare. + * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove. + 2019-06-22 Tom Tromey * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't diff --git a/gdb/tui/tui-windata.c b/gdb/tui/tui-windata.c index 8616b6c47b9..646adfbb74d 100644 --- a/gdb/tui/tui-windata.c +++ b/gdb/tui/tui-windata.c @@ -64,23 +64,6 @@ tui_first_data_item_displayed (void) } -/* Answer the index of the first element in line_no. If line_no is - past the data area (-1) is returned. */ -int -tui_first_data_element_no_in_line (int line_no) -{ - int first_element_no = (-1); - - /* First see if there is a register on line_no, and if so, set the - first element number. */ - if ((first_element_no = tui_first_reg_element_no_inline (line_no)) == -1) - { /* Looking at the general data, the 1st element on line_no. */ - } - - return first_element_no; -} - - /* Function to delete all the item windows in the data window. This is usually done when the data window is scrolled. */ void diff --git a/gdb/tui/tui-windata.h b/gdb/tui/tui-windata.h index 63fca0dd287..56bf1ede9b4 100644 --- a/gdb/tui/tui-windata.h +++ b/gdb/tui/tui-windata.h @@ -29,7 +29,6 @@ extern void tui_display_all_data (void); extern void tui_check_data_values (struct frame_info *); extern void tui_display_data_from_line (int); extern int tui_first_data_item_displayed (void); -extern int tui_first_data_element_no_in_line (int); extern void tui_delete_data_content_windows (void); extern void tui_refresh_data_win (void); extern void tui_display_data_from (int, int);