Two simplifications in tui-layout.c
authorTom Tromey <tom@tromey.com>
Fri, 5 Jul 2019 18:34:31 +0000 (12:34 -0600)
committerTom Tromey <tom@tromey.com>
Tue, 13 Aug 2019 20:52:09 +0000 (14:52 -0600)
commitcc0c3ffbc975fe764f6c4746611a836e7a4ce379
tree77fdb3d0828b251896652ce65af73b997e12e0fb
parent3f3ffe54e229482bdb0785ae2162f03d60870400
Two simplifications in tui-layout.c

This patch simplifies some code in tui-layout.c.

In show_layout, all the layout settings can be handled by a single
switch statement.  In show_source_disasm_command and
show_source_or_disasm_and_command, there is no need to check the
current layout, as the caller has already done so.

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

* tui/tui-layout.c (show_layout): Unify all layout cases into a
single switch.
(show_source_disasm_command, show_source_or_disasm_and_command):
Don't check current layout.
gdb/ChangeLog
gdb/tui/tui-layout.c
This page took 0.025819 seconds and 4 git commands to generate.