aboutsummaryrefslogtreecommitdiff
path: root/gdb/tui
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2019-06-22 11:50:19 -0600
committerTom Tromey <tom@tromey.com>2019-06-22 15:28:08 -0600
commitf95675e12d3ab100ce11257a09663c68df7784ee (patch)
tree5a992618269e2a75705542287e7988e79721bcfa /gdb/tui
parent5bff081c10ab4debfd3416739fda93b6c275496b (diff)
downloadgdb-f95675e12d3ab100ce11257a09663c68df7784ee.zip
gdb-f95675e12d3ab100ce11257a09663c68df7784ee.tar.gz
gdb-f95675e12d3ab100ce11257a09663c68df7784ee.tar.bz2
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 <tom@tromey.com> * 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.
Diffstat (limited to 'gdb/tui')
-rw-r--r--gdb/tui/tui-windata.c17
-rw-r--r--gdb/tui/tui-windata.h1
2 files changed, 0 insertions, 18 deletions
diff --git a/gdb/tui/tui-windata.c b/gdb/tui/tui-windata.c
index 8616b6c..646adfb 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 63fca0d..56bf1ed 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);