2
2
mirror of https://github.com/mastodon/mastodon-ios synced 2025-04-11 22:58:02 +02:00

Refactor: Remove unused associated object

This commit is contained in:
shannon 2024-12-02 14:07:10 -05:00
parent 7a742a1294
commit f64b1f960a
2 changed files with 1 additions and 16 deletions

View File

@ -16,17 +16,4 @@ protocol NeedsDependency: AnyObject {
typealias ViewControllerWithDependencies = NeedsDependency & UIViewController
extension UISceneSession {
private struct AssociatedKeys {
static var sceneCoordinator = "SceneCoordinator"
}
weak var sceneCoordinator: SceneCoordinator? {
get {
return objc_getAssociatedObject(self, &AssociatedKeys.sceneCoordinator) as? SceneCoordinator
}
set {
objc_setAssociatedObject(self, &AssociatedKeys.sceneCoordinator, newValue, .OBJC_ASSOCIATION_ASSIGN)
}
}
}

View File

@ -46,8 +46,6 @@ final public class SceneCoordinator {
self.scene = scene
self.sceneDelegate = sceneDelegate
self.appContext = appContext
scene.session.sceneCoordinator = self
NotificationService.shared.requestRevealNotificationPublisher
.receive(on: DispatchQueue.main)