[4/4] Remove tui_refresh_cmd_win
Checks
Context |
Check |
Description |
linaro-tcwg-bot/tcwg_gdb_build--master-aarch64 |
success
|
Build passed
|
linaro-tcwg-bot/tcwg_gdb_build--master-arm |
success
|
Build passed
|
linaro-tcwg-bot/tcwg_gdb_check--master-arm |
fail
|
Test failed
|
linaro-tcwg-bot/tcwg_gdb_check--master-aarch64 |
fail
|
Test failed
|
Commit Message
tui_refresh_cmd_win is no longer needed and can be replaced with a
call to the refresh_window method.
---
gdb/tui/tui-command.c | 8 --------
gdb/tui/tui-command.h | 3 ---
gdb/tui/tui-file.c | 6 +++---
3 files changed, 3 insertions(+), 14 deletions(-)
@@ -51,11 +51,3 @@ tui_cmd_window::resize (int height_, int width_, int origin_x, int origin_y)
wmove (handle.get (), 0, 0);
}
}
-
-/* See tui-command.h. */
-
-void
-tui_refresh_cmd_win (void)
-{
- tui_cmd_win ()->refresh_window ();
-}
@@ -62,7 +62,4 @@ tui_cmd_win ()
return dynamic_cast<tui_cmd_window *> (tui_win_list[CMD_WIN]);
}
-/* Refresh the command window. */
-extern void tui_refresh_cmd_win (void);
-
#endif /* TUI_TUI_COMMAND_H */
@@ -25,7 +25,7 @@ tui_file::puts (const char *linebuffer)
{
tui_puts (linebuffer);
if (!m_buffered)
- tui_refresh_cmd_win ();
+ tui_cmd_win ()->refresh_window ();
}
void
@@ -33,13 +33,13 @@ tui_file::write (const char *buf, long length_buf)
{
tui_write (buf, length_buf);
if (!m_buffered)
- tui_refresh_cmd_win ();
+ tui_cmd_win ()->refresh_window ();
}
void
tui_file::flush ()
{
if (m_buffered)
- tui_refresh_cmd_win ();
+ tui_cmd_win ()->refresh_window ();
stdio_file::flush ();
}