This commit is contained in:
Christian Treffs 2020-08-03 11:03:48 +02:00
parent bb1b2782c9
commit 0be112f900
No known key found for this signature in database
GPG Key ID: 49A4B4B460BE3ED4
1 changed files with 1 additions and 8 deletions

View File

@ -56,10 +56,6 @@ public struct UnorderedSparseSet<Element, Key: Hashable & Codable> {
dense.first?.element
}
@inlinable var last: Element? {
dense.last?.element
}
@inlinable
func findIndex(at key: Key) -> Int? {
guard let denseIndex = sparse[key], denseIndex < count else {
@ -135,6 +131,7 @@ public struct UnorderedSparseSet<Element, Key: Hashable & Codable> {
self.init(storage: Storage())
}
@usableFromInline
init(storage: Storage) {
self.storage = storage
}
@ -192,10 +189,6 @@ public struct UnorderedSparseSet<Element, Key: Hashable & Codable> {
@inlinable public var first: Element? {
storage.first
}
@inlinable public var last: Element? {
storage.last
}
}
extension UnorderedSparseSet where Key == Int {