]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Remove tui_refresh_all
authorTom Tromey <tom@tromey.com>
Wed, 24 Apr 2024 22:05:25 +0000 (16:05 -0600)
committerTom Tromey <tom@tromey.com>
Fri, 10 May 2024 18:41:13 +0000 (12:41 -0600)
This removes tui_refresh_all.  There is only a single caller,
tui_refresh_all_win, so inlining the code there simplifies gdb at no
cost.

Reviewed-By: Alexandra Petlanova Hajkova <ahajkova@redhat.com>
Approved-By: Andrew Burgess <aburgess@redhat.com>
gdb/tui/tui-win.c
gdb/tui/tui-wingeneral.c
gdb/tui/tui-wingeneral.h

index 8f4c7ecc5959f00c23626db47f72d5a5c0d0e10c..85b62321ca9f4e2a6c162a49ff225ab5cb5c2db0 100644 (file)
@@ -479,7 +479,11 @@ void
 tui_refresh_all_win (void)
 {
   clearok (curscr, TRUE);
-  tui_refresh_all ();
+  for (tui_win_info *win_info : all_tui_windows ())
+    {
+      if (win_info->is_visible ())
+       win_info->refresh_window ();
+    }
 }
 
 void
index e4d7a688ee3d15f6cf1d28037657afd23321ce8b..6260d08cd3d774f3310ba313c22fad68f94ff2d8 100644 (file)
@@ -189,15 +189,3 @@ tui_win_info::make_visible (bool visible)
   else
     handle.reset (nullptr);
 }
-
-/* Function to refresh all the windows currently displayed.  */
-
-void
-tui_refresh_all ()
-{
-  for (tui_win_info *win_info : all_tui_windows ())
-    {
-      if (win_info->is_visible ())
-       win_info->refresh_window ();
-    }
-}
index 6bee433689e99f88719d53ce00b85458c99ec225..652cef957337f1efc71686798f71f47efeb09b1e 100644 (file)
@@ -28,7 +28,6 @@ struct tui_win_info;
 
 extern void tui_unhighlight_win (struct tui_win_info *);
 extern void tui_highlight_win (struct tui_win_info *);
-extern void tui_refresh_all ();
 
 /* An RAII class that suppresses output on construction (calling
    wnoutrefresh on the existing windows), and then flushes the output