2
2
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:
shannon 2024-12-02 14:43:43 -05:00
parent f64b1f960a
commit fc7ebd65f8
2 changed files with 0 additions and 24 deletions

View File

@ -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()
}
}
}

View File

@ -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] = [:]
}