diff options
author | Tom Tromey <tromey@adacore.com> | 2022-12-14 12:22:58 -0700 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2022-12-15 12:13:29 -0700 |
commit | c573941878c15ecd8f0985cbe3fb8370abe4c807 (patch) | |
tree | d91a9c794cf4ccfde7a4590a8d352f98c9665222 /gdb/tui | |
parent | 38665d717a3e65c70e6432243d5eed9728a4888a (diff) | |
download | gdb-c573941878c15ecd8f0985cbe3fb8370abe4c807.zip gdb-c573941878c15ecd8f0985cbe3fb8370abe4c807.tar.gz gdb-c573941878c15ecd8f0985cbe3fb8370abe4c807.tar.bz2 |
Remove subset_compare
I stumbled across subset_compare today, and after looking at the
callers I realized it could be removed and replaced with calls to
startswith.
Approved-By: Simon Marchi <simon.marchi@efficios.com>
Diffstat (limited to 'gdb/tui')
-rw-r--r-- | gdb/tui/tui-win.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/tui/tui-win.c b/gdb/tui/tui-win.c index e24763c..bad8ffe 100644 --- a/gdb/tui/tui-win.c +++ b/gdb/tui/tui-win.c @@ -711,9 +711,9 @@ tui_set_focus_command (const char *arg, int from_tty) struct tui_win_info *win_info = NULL; - if (subset_compare (arg, "next")) + if (startswith ("next", arg)) win_info = tui_next_win (tui_win_with_focus ()); - else if (subset_compare (arg, "prev")) + else if (startswith ("prev", arg)) win_info = tui_prev_win (tui_win_with_focus ()); else win_info = tui_partial_win_by_name (arg); |