Skip to content

Commit b927490

Browse files
committed
[lldb][NFCI] Remove unused struct ConstString::StringIsEqual
This doesn't seem to be used at all, no need to keep it around.
1 parent dd477eb commit b927490

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

lldb/include/lldb/Utility/ConstString.h

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -78,22 +78,6 @@ class ConstString {
7878
/// from \a cstr.
7979
explicit ConstString(const char *cstr, size_t max_cstr_len);
8080

81-
/// C string equality binary predicate function object for ConstString
82-
/// objects.
83-
struct StringIsEqual {
84-
/// C equality test.
85-
///
86-
/// Two C strings are equal when they are contained in ConstString objects
87-
/// when their pointer values are equal to each other.
88-
///
89-
/// \return
90-
/// Returns \b true if the C string in \a lhs is equal to
91-
/// the C string value in \a rhs, \b false otherwise.
92-
bool operator()(const char *lhs, const char *rhs) const {
93-
return lhs == rhs;
94-
}
95-
};
96-
9781
/// Convert to bool operator.
9882
///
9983
/// This allows code to check a ConstString object to see if it contains a

0 commit comments

Comments
 (0)