Skip to content

Commit 97f6ffb

Browse files
authored
Dead code (#168)
* Remove unused local dependency variable * FileStorageKey: Remove unused private function
1 parent a8e1570 commit 97f6ffb

File tree

3 files changed

+0
-18
lines changed

3 files changed

+0
-18
lines changed

Sources/Sharing/SharedKey.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ extension Shared {
4848
wrappedValue: @autoclosure () -> Value,
4949
_ key: some SharedKey<Value>
5050
) {
51-
@Dependency(PersistentReferences.self) var persistentReferences
5251
self.init(rethrowing: wrappedValue(), key, skipInitialLoad: false)
5352
}
5453

Sources/Sharing/SharedKeys/FileStorageKey.swift

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -253,22 +253,6 @@
253253
continuation.resume(throwing: error)
254254
}
255255
}
256-
257-
private func performImmediately() {
258-
state.withValue { state in
259-
guard let workItem = state.workItem
260-
else { return }
261-
storage.async(workItem)
262-
storage.async(
263-
DispatchWorkItem { [weak self] in
264-
guard let self else { return }
265-
self.state.withValue { state in
266-
state.cancelWorkItem()
267-
}
268-
}
269-
)
270-
}
271-
}
272256
}
273257

274258
extension FileStorageKey: CustomStringConvertible {

Sources/Sharing/SharedReaderKey.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ extension SharedReader {
8484
wrappedValue: @autoclosure () -> Value,
8585
_ key: some SharedReaderKey<Value>
8686
) {
87-
@Dependency(PersistentReferences.self) var persistentReferences
8887
self.init(rethrowing: wrappedValue(), key, skipInitialLoad: false)
8988
}
9089

0 commit comments

Comments
 (0)