mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-03-17 23:13:52 +01:00
deleted unnecessary Equatable and Hashable custom implementations
This commit is contained in:
@@ -100,11 +100,12 @@ open /*abstract*/ class CoreStoreObject: DynamicObject, Hashable {
|
||||
|
||||
|
||||
// MARK: Hashable
|
||||
|
||||
public var hashValue: Int {
|
||||
|
||||
return ObjectIdentifier(self).hashValue
|
||||
^ (self.isMeta ? 0 : self.rawObject!.hashValue)
|
||||
|
||||
public func hash(into hasher: inout Hasher) {
|
||||
|
||||
hasher.combine(self.isMeta)
|
||||
hasher.combine(ObjectIdentifier(self))
|
||||
hasher.combine(self.rawObject)
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user