aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Interpreter/CommandInterpreter.cpp
diff options
context:
space:
mode:
authorJim Ingham <jingham@apple.com>2021-10-19 09:56:34 -0700
committerJim Ingham <jingham@apple.com>2021-10-19 09:57:07 -0700
commita66798cd67fedc35efbb8986deef417631bbc88a (patch)
tree960dcd2d289642de55cb71e19da9bc4650e49587 /lldb/source/Interpreter/CommandInterpreter.cpp
parent1529738b6619cdf817feb31771b57a893accf63b (diff)
downloadllvm-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.cpp8
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 {};
}