Change tui_set_layout to return void
authorTom Tromey <tom@tromey.com>
Mon, 1 Jul 2019 02:34:57 +0000 (20:34 -0600)
committerTom Tromey <tom@tromey.com>
Wed, 17 Jul 2019 18:19:15 +0000 (12:19 -0600)
commitb7fbad913e8874b9a887eb149b14975343bfb7ab
tree5676fa23001bad75258387dbdd1bc55119dff75a
parent4e1e56b9818109a39bb1b035fd50dd05a00699f2
Change tui_set_layout to return void

tui_set_layout can't meaningfully be called with UNDEFINED_LAYOUT; and
instead of trying to handle this case, simply assert and have the
function return void.  No caller was checking the return value anyway.

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

* tui/tui-layout.h (tui/tui-layout): Return void.
* tui/tui-layout.c (tui_set_layout): Return void.  Add assert.
gdb/ChangeLog
gdb/tui/tui-layout.c
gdb/tui/tui-layout.h