Remove tui_initialize_static_data
authorTom Tromey <tom@tromey.com>
Sat, 6 Jul 2019 23:30:02 +0000 (17:30 -0600)
committerTom Tromey <tom@tromey.com>
Thu, 15 Aug 2019 18:29:28 +0000 (12:29 -0600)
tui_initialize_static_data is not needed, because locator moving and
resizing is already handled in the layout code.

gdb/ChangeLog
2019-08-15  Tom Tromey  <tom@tromey.com>

* tui/tui-stack.c (tui_initialize_static_data): Remove.
* tui/tui-interp.c (tui_interp::init): Don't call
tui_initialize_static_data.
* tui/tui-data.h (tui_initialize_static_data): Don't declare.

gdb/ChangeLog
gdb/tui/tui-data.h
gdb/tui/tui-interp.c
gdb/tui/tui-stack.c

index 7e7c8a8320d6f24fd9ca8c65d183e98082715f15..f7ed59efcf3b4c7feb814f5d5df7853fa2e5098d 100644 (file)
@@ -1,3 +1,10 @@
+2019-08-15  Tom Tromey  <tom@tromey.com>
+
+       * tui/tui-stack.c (tui_initialize_static_data): Remove.
+       * tui/tui-interp.c (tui_interp::init): Don't call
+       tui_initialize_static_data.
+       * tui/tui-data.h (tui_initialize_static_data): Don't declare.
+
 2019-08-15  Tom Tromey  <tom@tromey.com>
 
        * tui/tui-layout.c (tui_default_win_viewport_height): Don't
index b5eeecdee9737a248bbb787a95c3efcbe3ef1e9a..eaf3e061dcfa3c3b6b74f9cb0578cadbd7543efe 100644 (file)
@@ -317,7 +317,6 @@ struct all_tui_windows
 
 
 /* Data Manipulation Functions.  */
-extern void tui_initialize_static_data (void);
 extern struct tui_win_info *tui_partial_win_by_name (const char *);
 extern enum tui_layout_type tui_current_layout (void);
 extern int tui_term_height (void);
index d1146fed0e6985e70359247ba6a2ed2a6107a628..ea562acb6ce68c5a78fe96b638d294d1536f8ceb 100644 (file)
@@ -242,8 +242,6 @@ tui_interp::init (bool top_level)
   /* Install exit handler to leave the screen in a good shape.  */
   atexit (tui_exit);
 
-  tui_initialize_static_data ();
-
   tui_initialize_io ();
   tui_initialize_win ();
   if (ui_file_isatty (gdb_stdout))
index f61aa5260041560bbf1997fa33eb2447a5c1be1a..f4d6d3865e12a3d38b2d42302d02aefbfdf61950 100644 (file)
@@ -66,21 +66,6 @@ tui_locator_win_info_ptr (void)
   return &_locator;
 }
 
-void
-tui_initialize_static_data ()
-{
-  tui_gen_win_info *win = tui_locator_win_info_ptr ();
-  win->width =
-    win->height =
-    win->origin.x =
-    win->origin.y =
-    win->viewport_height = 0;
-  win->handle = NULL;
-  win->is_visible = false;
-  win->title = 0;
-}
-
-
 /* Create the status line to display as much information as we can on
    this single line: target name, process number, current function,
    current line, current PC, SingleKey mode.  */
This page took 0.031238 seconds and 4 git commands to generate.