mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-18 00:32:30 +08:00
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>
This commit is contained in:
@ -2140,17 +2140,17 @@ parse_backtrace_qualifiers (const char *arg,
|
||||
if (this_arg.empty ())
|
||||
return arg;
|
||||
|
||||
if (subset_compare (this_arg.c_str (), "no-filters"))
|
||||
if (startswith ("no-filters", this_arg))
|
||||
{
|
||||
if (bt_cmd_opts != nullptr)
|
||||
bt_cmd_opts->no_filters = true;
|
||||
}
|
||||
else if (subset_compare (this_arg.c_str (), "full"))
|
||||
else if (startswith ("full", this_arg))
|
||||
{
|
||||
if (bt_cmd_opts != nullptr)
|
||||
bt_cmd_opts->full = true;
|
||||
}
|
||||
else if (subset_compare (this_arg.c_str (), "hide"))
|
||||
else if (startswith ("hide", this_arg))
|
||||
{
|
||||
if (bt_cmd_opts != nullptr)
|
||||
bt_cmd_opts->hide = true;
|
||||
|
Reference in New Issue
Block a user