Remove unused code

This commit is contained in:
Christian Treffs 2020-07-15 21:17:44 +02:00
parent b113f146dc
commit 8da21ec110
No known key found for this signature in database
GPG Key ID: 49A4B4B460BE3ED4
1 changed files with 0 additions and 10 deletions

View File

@ -25,16 +25,6 @@ extension ComponentIdentifier {
internal static func makeRuntimeHash<C>(_ componentType: C.Type) -> Hash where C: Component { internal static func makeRuntimeHash<C>(_ componentType: C.Type) -> Hash where C: Component {
ObjectIdentifier(componentType).hashValue ObjectIdentifier(componentType).hashValue
} }
internal static func makeStableTypeHash(component: Component) -> StableId {
let componentTypeString = String(describing: type(of: component))
return StringHashing.singer_djb2(componentTypeString)
}
internal static func makeStableInstanceHash(component: Component, entityId: EntityIdentifier) -> StableId {
let componentTypeString = String(describing: type(of: component)) + String(entityId.id)
return StringHashing.singer_djb2(componentTypeString)
}
} }
extension ComponentIdentifier: Equatable { } extension ComponentIdentifier: Equatable { }