Remove some checks of .empty()
authorTom Tromey <tom@tromey.com>
Sun, 14 Jul 2019 15:07:10 +0000 (09:07 -0600)
committerTom Tromey <tom@tromey.com>
Fri, 30 Aug 2019 18:57:03 +0000 (12:57 -0600)
commit0670413d0eb264302e10a1baa163bc9c8c279a21
treec8fb97ae6ca24c887f3c538c8ffd597a88679642
parent18bb55c7225dfd07ec8d75226a83da1872db8b90
Remove some checks of .empty()

A few methods in tui_data_window check whether the contents are empty;
but all the callers already check this, so these calls can be removed.

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

* tui/tui-regs.c (tui_data_window::last_regs_line_no)
(tui_data_window::display_registers_from)
(tui_data_window::display_reg_element_at_line)
(tui_data_window::display_registers_from_line): Remove checks of
"empty".
gdb/ChangeLog
gdb/tui/tui-regs.c