[Utility/StringLexer] Remove dead code.
authorDavide Italiano <davide@freebsd.org>
Wed, 19 Apr 2017 18:18:25 +0000 (18:18 +0000)
committerDavide Italiano <davide@freebsd.org>
Wed, 19 Apr 2017 18:18:25 +0000 (18:18 +0000)
Differential Revision:  https://reviews.llvm.org/D32148

llvm-svn: 300729

lldb/include/lldb/Utility/StringLexer.h
lldb/source/Utility/StringLexer.cpp

index e2c31db329cc42f956bf5860994f20f176975057..e4fc81a85e0d271d379891b066e4f8846f3c4360 100644 (file)
@@ -41,8 +41,6 @@ public:
 
   bool HasAtLeast(Size s);
 
-  bool HasAny(Character c);
-
   std::string GetUnlexed();
 
   // This will assert if there are less than s characters preceding the cursor.
index 77484d6e43fb58a3528cb805788952a951569239..d5c7fc628988437d57db4ac295fde96f6b026f1d 100644 (file)
@@ -73,10 +73,6 @@ void StringLexer::PutBack(Size s) {
   m_position -= s;
 }
 
-bool StringLexer::HasAny(Character c) {
-  return m_data.find(c, m_position) != std::string::npos;
-}
-
 std::string StringLexer::GetUnlexed() {
   return std::string(m_data, m_position);
 }