diff options
author | Tom Tromey <tom@tromey.com> | 2019-06-22 11:45:58 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2019-06-25 07:48:47 -0600 |
commit | 31ca47237fed3db1d912127a386cad6ffbb06750 (patch) | |
tree | 3c4276d0d269fd7bd5aec597067a7f2299f3ba4c /gdb | |
parent | 41bcff7feefea958e7be1656e087cae4d54a2af9 (diff) | |
download | gdb-31ca47237fed3db1d912127a386cad6ffbb06750.zip gdb-31ca47237fed3db1d912127a386cad6ffbb06750.tar.gz gdb-31ca47237fed3db1d912127a386cad6ffbb06750.tar.bz2 |
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 <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.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 7 | ||||
-rw-r--r-- | gdb/tui/tui-data.c | 10 | ||||
-rw-r--r-- | 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 <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) (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); |