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

Davide Italiano via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Wed Apr 19 11:31:16 PDT 2017


This revision was automatically updated to reflect the committed changes.
Closed by commit rL300729: [Utility/StringLexer] Remove dead code. (authored by davide).

Changed prior to commit:
  https://reviews.llvm.org/D32148?vs=95519&id=95788#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D32148

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


Index: lldb/trunk/source/Utility/StringLexer.cpp
===================================================================
--- lldb/trunk/source/Utility/StringLexer.cpp
+++ lldb/trunk/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: lldb/trunk/include/lldb/Utility/StringLexer.h
===================================================================
--- lldb/trunk/include/lldb/Utility/StringLexer.h
+++ lldb/trunk/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.95788.patch
Type: text/x-patch
Size: 859 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20170419/ab43a41f/attachment.bin>


More information about the lldb-commits mailing list