Skip to content

Commit

Permalink
Refactor: Remove unused DocumentStore
Browse files Browse the repository at this point in the history
  • Loading branch information
whattherestimefor committed Dec 2, 2024
1 parent f64b1f9 commit fc7ebd6
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 24 deletions.
9 changes: 0 additions & 9 deletions MastodonSDK/Sources/MastodonCore/AppContext.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@ public class AppContext: ObservableObject {

public let placeholderImageCacheService = PlaceholderImageCacheService()
public let blurhashImageCacheService = BlurhashImageCacheService.shared

public let documentStore: DocumentStore
private var documentStoreSubscription: AnyCancellable!

let overrideTraitCollection = CurrentValueSubject<UITraitCollection?, Never>(nil)
let timestampUpdatePublisher = Timer.publish(every: 1.0, on: .main, in: .common)
Expand All @@ -29,12 +26,6 @@ public class AppContext: ObservableObject {
.eraseToAnyPublisher()

private init() {
documentStore = DocumentStore()
documentStoreSubscription = documentStore.objectWillChange
.receive(on: DispatchQueue.main)
.sink { [unowned self] in
self.objectWillChange.send()
}
}
}

Expand Down
15 changes: 0 additions & 15 deletions MastodonSDK/Sources/MastodonCore/DocumentStore.swift

This file was deleted.

0 comments on commit fc7ebd6

Please sign in to comment.