summaryrefslogtreecommitdiffstats
path: root/lldb/source/Utility/RegularExpression.cpp
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2019-08-08 01:44:03 +0000
committerJonas Devlieghere <jonas@devlieghere.com>2019-08-08 01:44:03 +0000
commitb78c8a0a35bc2797ba0d25a2140bc8fb8b3b9764 (patch)
treeaa8b477e3609183d95127e3bd191cd58d8ae0a68 /lldb/source/Utility/RegularExpression.cpp
parent11538f0afabfa23fecf5cb2f0d345ed15b49e1f3 (diff)
downloadbcm5719-llvm-b78c8a0a35bc2797ba0d25a2140bc8fb8b3b9764.tar.gz
bcm5719-llvm-b78c8a0a35bc2797ba0d25a2140bc8fb8b3b9764.zip
[Utility] Remove unused function 'GetMatchSpanningIndices'
llvm-svn: 368243
Diffstat (limited to 'lldb/source/Utility/RegularExpression.cpp')
-rw-r--r--lldb/source/Utility/RegularExpression.cpp17
1 files changed, 0 insertions, 17 deletions
diff --git a/lldb/source/Utility/RegularExpression.cpp b/lldb/source/Utility/RegularExpression.cpp
index 0192e8b8a01..3a774dbee82 100644
--- a/lldb/source/Utility/RegularExpression.cpp
+++ b/lldb/source/Utility/RegularExpression.cpp
@@ -126,23 +126,6 @@ bool RegularExpression::Match::GetMatchAtIndex(
return false;
}
-bool RegularExpression::Match::GetMatchSpanningIndices(
- llvm::StringRef s, uint32_t idx1, uint32_t idx2,
- llvm::StringRef &match_str) const {
- if (idx1 < m_matches.size() && idx2 < m_matches.size()) {
- if (m_matches[idx1].rm_so == m_matches[idx2].rm_eo) {
- // Matched the empty string...
- match_str = llvm::StringRef();
- return true;
- } else if (m_matches[idx1].rm_so < m_matches[idx2].rm_eo) {
- match_str = s.substr(m_matches[idx1].rm_so,
- m_matches[idx2].rm_eo - m_matches[idx1].rm_so);
- return true;
- }
- }
- return false;
-}
-
// Returns true if the regular expression compiled and is ready for execution.
bool RegularExpression::IsValid() const { return m_comp_err == 0; }
OpenPOWER on IntegriCloud