mirror of
https://github.com/mastodon/mastodon-ios
synced 2025-04-11 22:58:02 +02:00
Refactor: Remove unused DocumentStore
This commit is contained in:
parent
f64b1f960a
commit
fc7ebd65f8
@ -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)
|
||||
@ -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()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1,15 +0,0 @@
|
||||
//
|
||||
// DocumentStore.swift
|
||||
// Mastodon
|
||||
//
|
||||
// Created by Cirno MainasuK on 2021-1-27.
|
||||
//
|
||||
|
||||
import UIKit
|
||||
import Combine
|
||||
import MastodonSDK
|
||||
|
||||
public class DocumentStore: ObservableObject {
|
||||
public let appStartUpTimestamp = Date()
|
||||
public var defaultRevealStatusDict: [Mastodon.Entity.Status.ID: Bool] = [:]
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user