[Lldb-commits] [PATCH] D32148: [Utility/StringLexer] Remove dead code.

Davide Italiano via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Mon Apr 17 18:26:32 PDT 2017


davide created this revision.

https://reviews.llvm.org/D32148

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


Index: source/Utility/StringLexer.cpp
===================================================================
--- source/Utility/StringLexer.cpp
+++ source/Utility/StringLexer.cpp
@@ -73,10 +73,6 @@
   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);
 }
Index: include/lldb/Utility/StringLexer.h
===================================================================
--- include/lldb/Utility/StringLexer.h
+++ include/lldb/Utility/StringLexer.h
@@ -41,8 +41,6 @@
 
   bool HasAtLeast(Size s);
 
-  bool HasAny(Character c);
-
   std::string GetUnlexed();
 
   // This will assert if there are less than s characters preceding the cursor.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D32148.95519.patch
Type: text/x-patch
Size: 793 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20170418/1c9626c3/attachment.bin>


More information about the lldb-commits mailing list