Remove tui_clear_source_content
authorTom Tromey <tom@tromey.com>
Sat, 6 Jul 2019 22:17:46 +0000 (16:17 -0600)
committerTom Tromey <tom@tromey.com>
Thu, 15 Aug 2019 18:29:28 +0000 (12:29 -0600)
commitc398c3d0b56823bb12718ae46a8c273b866ca246
tree5e336430add83449e6b5ef7ca36195295faf2277
parente25d200487dba7dfdf92f638e4ef2aefd7bd7481
Remove tui_clear_source_content

tui_clear_source_content is not needed.  Instead, the callers can call
erase_source_content, which is also changed to clear the content
vector.

gdb/ChangeLog
2019-08-15  Tom Tromey  <tom@tromey.com>

* tui/tui-winsource.h (tui_clear_source_content): Don't declare.
* tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
tui_clear_source_content.
(tui_clear_source_content): Remove.
(tui_source_window_base::do_erase_source_content): Hoist call to
content.clear().
* tui/tui-stack.c (tui_show_frame_info): Don't call
tui_clear_source_content.
gdb/ChangeLog
gdb/tui/tui-stack.c
gdb/tui/tui-winsource.c
gdb/tui/tui-winsource.h