From 31ca47237fed3db1d912127a386cad6ffbb06750 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Sat, 22 Jun 2019 11:45:58 -0600 Subject: [PATCH] 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. --- gdb/ChangeLog | 7 +++++++ gdb/tui/tui-data.c | 10 ++-------- gdb/tui/tui-data.h | 1 - 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 0e8551e..da9c19b 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,12 @@ 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) (tui_display_registers_from, tui_check_register_values): Update. (tui_display_register): Remove win_info parameter; update. diff --git a/gdb/tui/tui-data.c b/gdb/tui/tui-data.c index 9f11dfe..000b3c9 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 6567874..b8fdb4d 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); -- 2.7.4