aboutsummaryrefslogtreecommitdiff
path: root/gdb/tui/tui-winsource.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2019-07-19 12:59:35 -0600
committerTom Tromey <tom@tromey.com>2019-09-20 13:49:04 -0600
commit78d5933a43f8a4dd5fd54f5344a7dd9c2d4b8769 (patch)
treee8c5f2c2b38eeca3c4c1b36ee54dd70ec956508b /gdb/tui/tui-winsource.c
parentd42076962798cd2329090cea213e797f4c69c03c (diff)
downloadgdb-78d5933a43f8a4dd5fd54f5344a7dd9c2d4b8769.zip
gdb-78d5933a43f8a4dd5fd54f5344a7dd9c2d4b8769.tar.gz
gdb-78d5933a43f8a4dd5fd54f5344a7dd9c2d4b8769.tar.bz2
Remove tui_clear_source_windows_detail
The calls to tui_clear_source_windows_detail in tui_add_win_to_layout aren't needed, because (after the resize unification) resizing will update the window contents. Removing these calls lets us remove several other things as well. gdb/ChangeLog 2019-09-20 Tom Tromey <tom@tromey.com> * tui/tui-data.h (tui_clear_source_windows_detail): Don't declare. * tui/tui-layout.c (tui_add_win_to_layout): Don't call tui_clear_source_windows_detail. * tui/tui-winsource.h (struct tui_source_window_base) <clear_detail>: Don't declare. * tui/tui-winsource.c (tui_source_window_base::clear_detail): Remove. * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
Diffstat (limited to 'gdb/tui/tui-winsource.c')
-rw-r--r--gdb/tui/tui-winsource.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/gdb/tui/tui-winsource.c b/gdb/tui/tui-winsource.c
index 7a4821d..4520a1a 100644
--- a/gdb/tui/tui-winsource.c
+++ b/gdb/tui/tui-winsource.c
@@ -253,17 +253,6 @@ tui_source_window_base::show_source_content ()
refresh_window ();
}
-/* See tui-data.h. */
-
-void
-tui_source_window_base::clear_detail ()
-{
- gdbarch = NULL;
- start_line_or_addr.loa = LOA_ADDRESS;
- start_line_or_addr.u.addr = 0;
- horizontal_offset = 0;
-}
-
tui_source_window_base::tui_source_window_base (enum tui_win_type type)
: tui_win_info (type)
{