diff options
author | Jim Ingham <jingham@apple.com> | 2021-10-19 09:56:34 -0700 |
---|---|---|
committer | Jim Ingham <jingham@apple.com> | 2021-10-19 09:57:07 -0700 |
commit | a66798cd67fedc35efbb8986deef417631bbc88a (patch) | |
tree | 960dcd2d289642de55cb71e19da9bc4650e49587 /lldb/source/Interpreter/CommandInterpreter.cpp | |
parent | 1529738b6619cdf817feb31771b57a893accf63b (diff) | |
download | llvm-a66798cd67fedc35efbb8986deef417631bbc88a.zip llvm-a66798cd67fedc35efbb8986deef417631bbc88a.tar.gz llvm-a66798cd67fedc35efbb8986deef417631bbc88a.tar.bz2 |
Remove unneeded variable num_found.
Diffstat (limited to 'lldb/source/Interpreter/CommandInterpreter.cpp')
-rw-r--r-- | lldb/source/Interpreter/CommandInterpreter.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/lldb/source/Interpreter/CommandInterpreter.cpp b/lldb/source/Interpreter/CommandInterpreter.cpp index 1c43ea1..d5426ba 100644 --- a/lldb/source/Interpreter/CommandInterpreter.cpp +++ b/lldb/source/Interpreter/CommandInterpreter.cpp @@ -1255,13 +1255,11 @@ CommandObject *CommandInterpreter::GetUserCommandObject( return exact_cmd; // We didn't have an exact command, so now look for partial matches. - size_t num_found; StringList tmp_list; StringList *matches_ptr = matches ? matches : &tmp_list; - num_found = - AddNamesMatchingPartialString(GetUserCommands(), cmd_str, *matches_ptr); - num_found += AddNamesMatchingPartialString(GetUserMultiwordCommands(), - cmd_str, *matches_ptr); + AddNamesMatchingPartialString(GetUserCommands(), cmd_str, *matches_ptr); + AddNamesMatchingPartialString(GetUserMultiwordCommands(), + cmd_str, *matches_ptr); return {}; } |