From: Tom Tromey Date: Sat, 22 Jun 2019 17:45:58 +0000 (-0600) Subject: Remove tui_init_generic_part X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=31ca47237fed3db1d912127a386cad6ffbb06750;p=binutils-gdb.git Remove tui_init_generic_part tui_init_generic_part has a single caller, so simply inline it there. gdb/ChangeLog 2019-06-25 Tom Tromey * 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. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 0e8551eda10..da9c19b8648 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,10 @@ +2019-06-25 Tom Tromey + + * 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 * tui/tui-regs.c (tui_show_registers, tui_show_register_group) diff --git a/gdb/tui/tui-data.c b/gdb/tui/tui-data.c index 9f11dfe108f..000b3c956db 100644 --- a/gdb/tui/tui-data.c +++ b/gdb/tui/tui-data.c @@ -334,15 +334,9 @@ tui_partial_win_by_name (const char *name) 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 = diff --git a/gdb/tui/tui-data.h b/gdb/tui/tui-data.h index 6567874b7ed..b8fdb4d095e 100644 --- a/gdb/tui/tui-data.h +++ b/gdb/tui/tui-data.h @@ -562,7 +562,6 @@ extern struct tui_win_info *tui_win_list[MAX_MAJOR_WINDOWS]; /* 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);