Remove tui_alloc_win_info
authorTom Tromey <tom@tromey.com>
Thu, 20 Jun 2019 21:31:00 +0000 (15:31 -0600)
committerTom Tromey <tom@tromey.com>
Tue, 25 Jun 2019 13:48:44 +0000 (07:48 -0600)
commitc3fabb7d69b3735bc6042a2992729944c8ced62c
treec40e230d3d7a747b707f6b52a44aee7f09aee4b7
parentbbc228ee056cd006e971d5f1cb70ae0f69c1eb36
Remove tui_alloc_win_info

There is only a single caller of tui_alloc_win_info, and we're going
to add more "new" cases to that caller, so remove tui_alloc_win_info
and inline it into init_and_make_win.

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

* tui/tui-data.h (tui_alloc_win_info): Don't declare.
* tui/tui-layout.c (init_and_make_win): Use "new" directly.
* tui/tui-data.c (tui_alloc_win_info): Remove.
gdb/ChangeLog
gdb/tui/tui-data.c
gdb/tui/tui-data.h
gdb/tui/tui-layout.c