+2019-07-17 Tom Tromey <tom@tromey.com>
+
+ * tui/tui-windata.h (tui_display_data_from): Don't declare.
+ * tui/tui-windata.c (tui_display_data_from): Remove.
+ (tui_data_window::refresh_all): Update.
+
2019-07-17 Tom Tromey <tom@tromey.com>
* tui/tui-windata.h (tui_display_data_from_line): Don't declare.
}
-/* Display data starting at element element_no. */
-void
-tui_display_data_from (int element_no, int reuse_windows)
-{
- int first_line = (-1);
-
- if (element_no < TUI_DATA_WIN->regs_content.size ())
- first_line = TUI_DATA_WIN->line_from_reg_element_no (element_no);
- else
- { /* Calculate the first_line from the element number. */
- }
-
- if (first_line >= 0)
- {
- tui_erase_data_content (NULL);
- if (!reuse_windows)
- tui_delete_data_content_windows ();
- tui_display_registers_from_line (first_line);
- }
-}
-
-
/* Function to redisplay the contents of the data window. */
void
tui_data_window::refresh_all ()
int first_element = first_data_item_displayed ();
if (first_element >= 0) /* Re-use existing windows. */
- tui_display_data_from (first_element, TRUE);
+ {
+ int first_line = (-1);
+
+ if (first_element < regs_content.size ())
+ first_line = line_from_reg_element_no (first_element);
+
+ if (first_line >= 0)
+ {
+ tui_erase_data_content (NULL);
+ tui_display_registers_from_line (first_line);
+ }
+ }
}
}
extern void tui_display_all_data (void);
extern void tui_delete_data_content_windows (void);
extern void tui_refresh_data_win (void);
-extern void tui_display_data_from (int, int);
#endif /* TUI_TUI_WINDATA_H */