diff options
Diffstat (limited to 'lldb/source/Utility/StringList.cpp')
-rw-r--r-- | lldb/source/Utility/StringList.cpp | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/lldb/source/Utility/StringList.cpp b/lldb/source/Utility/StringList.cpp index f570c3272f2..5e06b6b69fc 100644 --- a/lldb/source/Utility/StringList.cpp +++ b/lldb/source/Utility/StringList.cpp @@ -223,29 +223,6 @@ StringList &StringList::operator=(const std::vector<std::string> &rhs) { return *this; } -size_t StringList::AutoComplete(llvm::StringRef s, StringList &matches, - size_t &exact_idx) const { - matches.Clear(); - exact_idx = SIZE_MAX; - if (s.empty()) { - // No string, so it matches everything - matches = *this; - return matches.GetSize(); - } - - const size_t s_len = s.size(); - const size_t num_strings = m_strings.size(); - - for (size_t i = 0; i < num_strings; ++i) { - if (m_strings[i].find(s) == 0) { - if (exact_idx == SIZE_MAX && m_strings[i].size() == s_len) - exact_idx = matches.GetSize(); - matches.AppendString(m_strings[i]); - } - } - return matches.GetSize(); -} - void StringList::LogDump(Log *log, const char *name) { if (!log) return; |