Remove command from tui_which_element
authorTom Tromey <tom@tromey.com>
Fri, 21 Jun 2019 12:16:06 +0000 (06:16 -0600)
committerTom Tromey <tom@tromey.com>
Tue, 25 Jun 2019 13:48:46 +0000 (07:48 -0600)
commitdd835f8b70a2dfb4d8b84a4744606a9c922aeb25
treed7c0fc5b399208cdc5c3536a42849c5cf5c1bf6f
parentbd7db367c4bc72bef9c7848b99aaaa1431cf1672
Remove command from tui_which_element

union tui_which_element has a "command" member, but it is never used.
This removes it.

gdb/ChangeLog
2019-06-25  Tom Tromey  <tom@tromey.com>

* tui/tui-data.h (struct tui_command_element): Remove.
(union tui_which_element) <command>: Remove.
* tui/tui-data.c (init_content_element): Remove CMD_WIN case.  Add
assert.
(free_content_elements): Remove CMD_WIN case.
gdb/ChangeLog
gdb/tui/tui-data.c
gdb/tui/tui-data.h