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:
parent
7a742a1294
commit
f64b1f960a
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user