mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-23 18:14:13 +08:00
Remove tui_refresh_all
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>
This commit is contained in:
parent
a2f972b330
commit
04e63f26ba
@ -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
|
||||
|
@ -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 ();
|
||||
}
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user