Remove has_locator method
authorTom Tromey <tom@tromey.com>
Mon, 1 Jul 2019 20:44:29 +0000 (14:44 -0600)
committerTom Tromey <tom@tromey.com>
Wed, 17 Jul 2019 18:19:20 +0000 (12:19 -0600)
commit0fcd37117e94e5b9bf5f4aaa4dccc8038b38398e
treebda121aa52386616b4e3b3724e5dff45f18411f8
parent4a38112da00f45527de4aec0b645443c6ee0e01e
Remove has_locator method

Earlier changes made it obvious that the has_locator method can only
be called for source/disassembly windows.  Because the only reference
to this now occurs in methods on this object, we can remove the
has_locator method entirely, in favor of using the member directly.

gdb/ChangeLog
2019-07-17  Tom Tromey  <tom@tromey.com>

* tui/tui-win.c (tui_source_window_base::set_new_height)
(tui_source_window_base::do_make_visible_with_new_height): Use
m_has_locator field directly.
* tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
method.
(struct tui_source_window_base) <has_locator>: Likewise.
gdb/ChangeLog
gdb/tui/tui-data.h
gdb/tui/tui-win.c