diff options
author | Tom Tromey <tom@tromey.com> | 2019-06-28 22:48:33 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2019-07-17 12:19:07 -0600 |
commit | caf0bc4e8bafc387c8136c0f63748e56245f779a (patch) | |
tree | 2173c990eed08b2e7f05895f6c3d9222e64bd176 /gdb/tui/tui-winsource.h | |
parent | 9d391078d1238e1be9dea5a775982a00a2497a57 (diff) | |
download | binutils-caf0bc4e8bafc387c8136c0f63748e56245f779a.zip binutils-caf0bc4e8bafc387c8136c0f63748e56245f779a.tar.gz binutils-caf0bc4e8bafc387c8136c0f63748e56245f779a.tar.bz2 |
Remove unused parameter from two TUI functions
The "display_prompt" parameter of tui_erase_source_content and
tui_clear_source_content was never passed the NO_EMPTY_SOURCE_PROMPT
value, so remove the parameter. Once this is done, the
EMPTY_SOURCE_PROMPT and NO_EMPTY_SOURCE_PROMPT defines are unused, so
remove those as well.
gdb/ChangeLog
2019-07-17 Tom Tromey <tom@tromey.com>
* tui/tui-winsource.h (tui_erase_source_content)
(tui_clear_source_content): Remove "display_prompt" parameter.
* tui/tui-winsource.c (tui_update_source_window_as_is)
(tui_update_source_windows_with_addr): Update.
(tui_clear_source_content): Remove "display_prompt" parameter.
(tui_erase_source_content): Likewise. Simplify.
(tui_show_source_content): Update.
* tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
* tui/tui-stack.c (tui_show_frame_info): Update.
* tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
Remove defines.
Diffstat (limited to 'gdb/tui/tui-winsource.h')
-rw-r--r-- | gdb/tui/tui-winsource.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/tui/tui-winsource.h b/gdb/tui/tui-winsource.h index c1087f4..a4907e6 100644 --- a/gdb/tui/tui-winsource.h +++ b/gdb/tui/tui-winsource.h @@ -57,8 +57,8 @@ extern void tui_update_source_window_as_is (struct tui_source_window_base *, extern void tui_update_source_windows_with_addr (struct gdbarch *, CORE_ADDR); extern void tui_update_source_windows_with_line (struct symtab *, int); -extern void tui_clear_source_content (struct tui_source_window_base *, int); -extern void tui_erase_source_content (struct tui_source_window_base *, int); +extern void tui_clear_source_content (struct tui_source_window_base *); +extern void tui_erase_source_content (struct tui_source_window_base *); extern void tui_show_source_content (struct tui_source_window_base *); extern void tui_set_exec_info_content (struct tui_source_window_base *); extern void tui_show_exec_info_content (struct tui_source_window_base *); |