Skip to content

Commit a37e475

Browse files
committed
[lldb] Rely on operator== for std::vector (NFC)
Rely on operator== for std::vector instead of comparing the elements in the vector element by element,
1 parent 4e175b8 commit a37e475

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

lldb/include/lldb/Core/FormatEntity.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -190,12 +190,6 @@ struct Entry {
190190
return false;
191191
if (printf_format != rhs.printf_format)
192192
return false;
193-
const size_t n = children.size();
194-
const size_t m = rhs.children.size();
195-
for (size_t i = 0; i < std::min<size_t>(n, m); ++i) {
196-
if (!(children[i] == rhs.children[i]))
197-
return false;
198-
}
199193
if (children != rhs.children)
200194
return false;
201195
if (type != rhs.type)

0 commit comments

Comments
 (0)