[PATCH 55/66] Remove tui_init_generic_part

Tom Tromey
2019-06-24T18:48:56Z

tui_init_generic_part has a single caller, so simply inline it there.

2019-06-23 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.
---
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/tui/tui-data.c b/gdb/tui/tui-data.c
index 7b58f9ed52d..e9d0308b86b 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 e5fd7e610ea..2306abe1292 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.17.2