aboutsummaryrefslogtreecommitdiff
path: root/gdb/tui/tui-win.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2020-02-22 11:48:26 -0700
committerTom Tromey <tom@tromey.com>2020-02-22 11:48:38 -0700
commit935c78c0468215e2f034f39b8285fa8bb17729b8 (patch)
treed40264042515b73c2bb8ebc02f98b937c00c23d0 /gdb/tui/tui-win.c
parent0240c8f11b06a33a043bacbe2b9e723ae6ad573c (diff)
downloadgdb-935c78c0468215e2f034f39b8285fa8bb17729b8.zip
gdb-935c78c0468215e2f034f39b8285fa8bb17729b8.tar.gz
gdb-935c78c0468215e2f034f39b8285fa8bb17729b8.tar.bz2
Remove tui_set_win_with_focus
I noticed that the TUI had two functions with similar names: tui_set_win_focus_to and tui_set_win_with_focus. However, one was just an implementation detail of the latter. So, this patch removes tui_set_win_with_focus entirely, to avoid any temptation to call it. gdb/ChangeLog 2020-02-22 Tom Tromey <tom@tromey.com> * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c. * tui/tui-data.h (tui_set_win_with_focus): Don't declare. * tui/tui-data.c (tui_set_win_with_focus): Remove. (tui_set_win_focus_to): Move from tui-win.c. Change-Id: Idffddab773436bdf80d55480906d76b292981ef2
Diffstat (limited to 'gdb/tui/tui-win.c')
-rw-r--r--gdb/tui/tui-win.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/gdb/tui/tui-win.c b/gdb/tui/tui-win.c
index ac314d7..51d0365 100644
--- a/gdb/tui/tui-win.c
+++ b/gdb/tui/tui-win.c
@@ -452,21 +452,6 @@ tui_update_gdb_sizes (void)
}
-/* Set the logical focus to win_info. */
-void
-tui_set_win_focus_to (struct tui_win_info *win_info)
-{
- if (win_info != NULL)
- {
- struct tui_win_info *win_with_focus = tui_win_with_focus ();
-
- tui_unhighlight_win (win_with_focus);
- tui_set_win_with_focus (win_info);
- tui_highlight_win (win_info);
- }
-}
-
-
void
tui_win_info::forward_scroll (int num_to_scroll)
{