tui_init_generic_part has a single caller, so simply inline it there.
gdb/ChangeLog
2019-06-25 Tom Tromey <tom@tromey.com>
* tui/tui-data.h (tui_init_generic_part): Don't declare.
* tui/tui-data.c (tui_init_generic_part): Remove, moving
contents...
(tui_initialize_static_data): ...here.
+2019-06-25 Tom Tromey <tom@tromey.com>
+
+ * tui/tui-data.h (tui_init_generic_part): Don't declare.
+ * tui/tui-data.c (tui_init_generic_part): Remove, moving
+ contents...
+ (tui_initialize_static_data): ...here.
+
2019-06-25 Tom Tromey <tom@tromey.com>
* tui/tui-regs.c (tui_show_registers, tui_show_register_group)
void
-tui_initialize_static_data (void)
-{
- tui_init_generic_part (tui_locator_win_info_ptr ());
-}
-
-
-void
-tui_init_generic_part (struct tui_gen_win_info *win)
+tui_initialize_static_data ()
{
+ tui_gen_win_info *win = tui_locator_win_info_ptr ();
win->width =
win->height =
win->origin.x =
/* Data Manipulation Functions. */
extern void tui_initialize_static_data (void);
-extern void tui_init_generic_part (struct tui_gen_win_info *);
extern tui_win_content tui_alloc_content (int, enum tui_win_type);
extern int tui_add_content_elements (struct tui_gen_win_info *,
int);