Skip to content

Commit ae5c8e7

Browse files
committed
[Foundation] NSRange: Modernize hashing
1 parent 8b18ad7 commit ae5c8e7

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

Darwin/Foundation-swiftoverlay/NSRange.swift

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,6 @@
1313
@_exported import Foundation // Clang module
1414

1515
extension NSRange : Hashable {
16-
public var hashValue: Int { // FIXME(hashValue): Remove
17-
#if arch(i386) || arch(arm)
18-
return Int(bitPattern: (UInt(bitPattern: location) | (UInt(bitPattern: length) << 16)))
19-
#elseif arch(x86_64) || arch(arm64)
20-
return Int(bitPattern: (UInt(bitPattern: location) | (UInt(bitPattern: length) << 32)))
21-
#endif
22-
}
23-
2416
public func hash(into hasher: inout Hasher) {
2517
hasher.combine(location)
2618
hasher.combine(length)

0 commit comments

Comments
 (0)