Simplify tui_source_window_base::show_source_content
authorTom Tromey <tom@tromey.com>
Tue, 23 Jul 2019 23:16:56 +0000 (17:16 -0600)
committerTom Tromey <tom@tromey.com>
Fri, 20 Sep 2019 19:49:06 +0000 (13:49 -0600)
commit2ad52f6fb3daecd928605384fcaa45ad43178b4e
tree3127b779a3fa1c77b78feaa739523da5bcb65bd4
parentb3b1bde658c97fbccc1e49b79cc45e434591533e
Simplify tui_source_window_base::show_source_content

tui_source_window_base::show_source_content is not used outside the
class any more, so this makes it private.  Examining the callers shows
that it can't be called without source contents, so it can be
simplified as well.

gdb/ChangeLog
2019-09-20  Tom Tromey  <tom@tromey.com>

* tui/tui-winsource.h (struct tui_source_window_base)
<show_source_content>: Now private.
* tui/tui-winsource.c
(tui_source_window_base::show_source_content): Don't handle empty
content case.
gdb/ChangeLog
gdb/tui/tui-winsource.c
gdb/tui/tui-winsource.h
This page took 0.035761 seconds and 4 git commands to generate.