Remove tui_clear_win_detail
authorTom Tromey <tom@tromey.com>
Sun, 16 Jun 2019 17:29:45 +0000 (11:29 -0600)
committerTom Tromey <tom@tromey.com>
Tue, 25 Jun 2019 13:48:29 +0000 (07:48 -0600)
An earlier patch changed the context of the sole call to
tui_clear_win_detail to make it clear that this can never be called
with a NULL window pointer.  So, remove tui_clear_win_detail in favor
of calling the method directly.

gdb/ChangeLog
2019-06-25  Tom Tromey  <tom@tromey.com>

* tui/tui-data.h (tui_clear_win_detail): Don't declare.
* tui/tui-data.c (tui_clear_source_windows_detail): Call the
clear_detail method directly.
(tui_clear_win_detail): Remove.

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

index 56b49cd4a95032887f4058fc5d2ed4bcbfe01651..18bffd1e3a91a39f8b9c517b9dd19cb68a088111 100644 (file)
@@ -1,3 +1,10 @@
+2019-06-25  Tom Tromey  <tom@tromey.com>
+
+       * tui/tui-data.h (tui_clear_win_detail): Don't declare.
+       * tui/tui-data.c (tui_clear_source_windows_detail): Call the
+       clear_detail method directly.
+       (tui_clear_win_detail): Remove.
+
 2019-06-25  Tom Tromey  <tom@tromey.com>
 
        * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
index 1edf40b71b3613dc08dc9ebf60447745bfcbdf41..1e1bc0362a95645858bc7f0b944c39c5d3a09b66 100644 (file)
@@ -159,7 +159,7 @@ void
 tui_clear_source_windows_detail ()
 {
   for (tui_win_info *win : tui_source_windows ())
-    tui_clear_win_detail (win);
+    win->clear_detail ();
 }
 
 
@@ -205,15 +205,6 @@ tui_data_window::clear_detail ()
   detail.data_display_info.display_regs = FALSE;
 }
 
-/* Clear the pertinant detail in the windows.  */
-void
-tui_clear_win_detail (struct tui_win_info *win_info)
-{
-  if (win_info != NULL)
-    win_info->clear_detail ();
-}
-
-
 /* Accessor for the source execution info ptr.  */
 struct tui_gen_win_info *
 tui_source_exec_info_win_ptr (void)
index 4170f246a1147bbadb1d4476e876f908a9427b4a..c4ef455f2aaddcdc44dbe88418d55f909af4d9ea 100644 (file)
@@ -439,7 +439,6 @@ extern struct tui_gen_win_info *tui_disassem_exec_info_win_ptr (void);
 extern std::vector<tui_win_info *> &tui_source_windows ();
 extern void tui_clear_source_windows (void);
 extern void tui_clear_source_windows_detail (void);
-extern void tui_clear_win_detail (struct tui_win_info *);
 extern void tui_add_to_source_windows (struct tui_win_info *);
 extern struct tui_win_info *tui_win_with_focus (void);
 extern void tui_set_win_with_focus (struct tui_win_info *);
This page took 0.034883 seconds and 4 git commands to generate.