Author: Alex Langford
Date: 2023-09-19T17:39:22-07:00
New Revision: b927490d73eebe0a7e8071047d79a330145b0488

URL: 
https://github.com/llvm/llvm-project/commit/b927490d73eebe0a7e8071047d79a330145b0488
DIFF: 
https://github.com/llvm/llvm-project/commit/b927490d73eebe0a7e8071047d79a330145b0488.diff

LOG: [lldb][NFCI] Remove unused struct ConstString::StringIsEqual

This doesn't seem to be used at all, no need to keep it around.

Added: 
    

Modified: 
    lldb/include/lldb/Utility/ConstString.h

Removed: 
    


################################################################################
diff  --git a/lldb/include/lldb/Utility/ConstString.h 
b/lldb/include/lldb/Utility/ConstString.h
index c23c6fd3546e55f..cbea4cbf916a430 100644
--- a/lldb/include/lldb/Utility/ConstString.h
+++ b/lldb/include/lldb/Utility/ConstString.h
@@ -78,22 +78,6 @@ class ConstString {
   ///     from \a cstr.
   explicit ConstString(const char *cstr, size_t max_cstr_len);
 
-  /// C string equality binary predicate function object for ConstString
-  /// objects.
-  struct StringIsEqual {
-    /// C equality test.
-    ///
-    /// Two C strings are equal when they are contained in ConstString objects
-    /// when their pointer values are equal to each other.
-    ///
-    /// \return
-    ///     Returns \b true if the C string in \a lhs is equal to
-    ///     the C string value in \a rhs, \b false otherwise.
-    bool operator()(const char *lhs, const char *rhs) const {
-      return lhs == rhs;
-    }
-  };
-
   /// Convert to bool operator.
   ///
   /// This allows code to check a ConstString object to see if it contains a


        
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to