From 014baa4622907c66c3f00774c2fd5d8e66cbea41 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sat, 20 Jun 2015 09:49:26 -0700 Subject: [PATCH] CLI2: Removed unused ::isPattern method --- src/CLI2.cpp | 13 +------------ src/CLI2.h | 1 - 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/src/CLI2.cpp b/src/CLI2.cpp index 991592661..cc8d884a8 100644 --- a/src/CLI2.cpp +++ b/src/CLI2.cpp @@ -2029,17 +2029,6 @@ bool CLI2::isUUIDList (const std::string& raw) const return false; } -//////////////////////////////////////////////////////////////////////////////// -bool CLI2::isPattern (const std::string& raw) const -{ - if (raw.length () > 2 && - raw[0] == '/' && - raw[raw.length () - 1] == '/') - return true; - - return false; -} - //////////////////////////////////////////////////////////////////////////////// // The non-g case is caught by ::isPattern, but not categorized, so it doesn't // matter. @@ -2170,7 +2159,7 @@ bool CLI2::disqualifyOnlyParenOps ( isUUID (lexeme.first) || // obsolete isIDSequence (lexeme.first) || // obsolete isID (lexeme.first) || // obsolete - isPattern (lexeme.first) || + isPattern (lexeme.first) || // obsolete isAttribute (lexeme.first)) ++opSugarCount; } diff --git a/src/CLI2.h b/src/CLI2.h index 9f566ed9e..07c44e111 100644 --- a/src/CLI2.h +++ b/src/CLI2.h @@ -130,7 +130,6 @@ private: void decomposeModSubstitutions (); bool isUUIDList (const std::string&) const; - bool isPattern (const std::string&) const; bool isSubstitution (const std::string&) const; bool isAttribute (const std::string&) const; bool isOperator (const std::string&) const;