Simplify tui_add_win_to_layout
authorTom Tromey <tom@tromey.com>
Sat, 22 Feb 2020 18:48:26 +0000 (11:48 -0700)
committerTom Tromey <tom@tromey.com>
Sat, 22 Feb 2020 18:48:27 +0000 (11:48 -0700)
commit59b8b5d2477440a21b580dbf59281a9e2795e1dc
tree1d10d25c10cbbe886117b3c7421ed48ad1db145e
parent2a3d458be380d4940fc528dca63ded4c2bab6c12
Simplify tui_add_win_to_layout

tui_add_win_to_layout is only ever called for the source or assembly
windows.  This simplifies the function by removing the DATA_WIN case.

gdb/ChangeLog
2020-02-22  Tom Tromey  <tom@tromey.com>

* tui/tui-layout.h (tui_add_win_to_layout): Add comment.
* tui/tui-layout.c (tui_add_win_to_layout): Add assert.  Remove
DATA_WIN case.

Change-Id: Idfca902c6c90153acc5d19af4c33aa74bc3caf31
gdb/ChangeLog
gdb/tui/tui-layout.c
gdb/tui/tui-layout.h