diff options
author | Tom Tromey <tom@tromey.com> | 2019-07-04 10:09:36 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2019-07-17 12:19:26 -0600 |
commit | d8f68fcb9378b5ab1c945fa676e11da15be56dd6 (patch) | |
tree | bd9e41b9e9ad866c58f123b2d14be2b7673e715c /gdb/tui | |
parent | ca5af91ed271a12200bb40ccfaaede4baef6f5fe (diff) | |
download | gdb-d8f68fcb9378b5ab1c945fa676e11da15be56dd6.zip gdb-d8f68fcb9378b5ab1c945fa676e11da15be56dd6.tar.gz gdb-d8f68fcb9378b5ab1c945fa676e11da15be56dd6.tar.bz2 |
Remove unnecessary "return"s
The TUI has some "return;" statements at the end of void-returning
functions. There's no need for these, so this patch removes them.
gdb/ChangeLog
2019-07-17 Tom Tromey <tom@tromey.com>
* tui/tui-winsource.c (tui_update_source_window)
(tui_update_source_window_as_is)
(tui_update_source_windows_with_line): Remove return.
* tui/tui-disasm.c (tui_show_disassem)
(tui_show_disassem_and_update_source): Remove return.
* tui/tui.c (tui_reset): Remove return.
* tui/tui-wingeneral.c
(tui_check_and_display_highlight_if_needed): Remove return.
Diffstat (limited to 'gdb/tui')
-rw-r--r-- | gdb/tui/tui-disasm.c | 4 | ||||
-rw-r--r-- | gdb/tui/tui-wingeneral.c | 1 | ||||
-rw-r--r-- | gdb/tui/tui-winsource.c | 7 | ||||
-rw-r--r-- | gdb/tui/tui.c | 2 |
4 files changed, 0 insertions, 14 deletions
diff --git a/gdb/tui/tui-disasm.c b/gdb/tui/tui-disasm.c index effe8e7..80f8d47 100644 --- a/gdb/tui/tui-disasm.c +++ b/gdb/tui/tui-disasm.c @@ -265,8 +265,6 @@ tui_show_disassem (struct gdbarch *gdbarch, CORE_ADDR start_addr) if (tui_current_layout () != SRC_DISASSEM_COMMAND && win_with_focus == TUI_SRC_WIN) tui_set_win_focus_to (TUI_DISASM_WIN); - - return; } @@ -297,8 +295,6 @@ tui_show_disassem_and_update_source (struct gdbarch *gdbarch, else tui_update_locator_fullname ("?"); } - - return; } void diff --git a/gdb/tui/tui-wingeneral.c b/gdb/tui/tui-wingeneral.c index a2e4886..dc55631 100644 --- a/gdb/tui/tui-wingeneral.c +++ b/gdb/tui/tui-wingeneral.c @@ -122,7 +122,6 @@ tui_check_and_display_highlight_if_needed (struct tui_win_info *win_info) tui_unhighlight_win (win_info); } - return; } diff --git a/gdb/tui/tui-winsource.c b/gdb/tui/tui-winsource.c index 71147da..3de2692 100644 --- a/gdb/tui/tui-winsource.c +++ b/gdb/tui/tui-winsource.c @@ -77,8 +77,6 @@ tui_update_source_window (struct tui_source_window_base *win_info, { win_info->horizontal_offset = 0; tui_update_source_window_as_is (win_info, gdbarch, s, line_or_addr, noerror); - - return; } @@ -125,9 +123,6 @@ tui_update_source_window_as_is (struct tui_source_window_base *win_info, tui_set_win_focus_to (win_info); } } - - - return; } @@ -200,8 +195,6 @@ tui_update_source_windows_with_line (struct symtab *s, int line) } break; } - - return; } void diff --git a/gdb/tui/tui.c b/gdb/tui/tui.c index b15eb32..e0eb12f 100644 --- a/gdb/tui/tui.c +++ b/gdb/tui/tui.c @@ -630,8 +630,6 @@ tui_reset (void) #endif /* CBREAK */ | VTDELAY | ALLDELAY); mode.sg_flags |= XTABS | ECHO | CRMOD | ANYP; - - return; } #endif |