Skip to content

Commit 0ee4d0b

Browse files
committed
Remove commented-out code
1 parent e8341df commit 0ee4d0b

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

stdlib/public/runtime/SwiftValue.mm

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -430,11 +430,6 @@ - (BOOL)isEqual:(id)other {
430430
}
431431
}
432432

433-
// if (runtime::bincompat::useLegacySwiftObjCHashing()) {
434-
// // Legacy behavior only proxies isEqual: for Hashable, not Equatable
435-
// return NO;
436-
// }
437-
438433
if (auto equatableConformance = selfHeader->getEquatableConformance()) {
439434
if (auto selfEquatableBaseType = selfHeader->getEquatableBaseType()) {
440435
auto otherEquatableBaseType = otherHeader->getEquatableBaseType();
@@ -464,11 +459,6 @@ - (NSUInteger)hash {
464459
selfHeader->type, hashableConformance);
465460
}
466461

467-
// if (runtime::bincompat::useLegacySwiftObjCHashing()) {
468-
// // Legacy behavior doesn't honor Equatable conformance, only Hashable
469-
// return (NSUInteger)self;
470-
// }
471-
472462
// If Swift type is Equatable but not Hashable,
473463
// we have to return something here that is compatible
474464
// with the `isEqual:` above.

0 commit comments

Comments
 (0)