diff options
| author | Sajad Vishkai <sajaclvishkai@gmail.com> | 2022-09-26 11:38:48 +0200 |
|---|---|---|
| committer | Andrej Mihajlov <and@mullvad.net> | 2022-09-26 16:31:20 +0200 |
| commit | 5c1938bceafcec5410f3a4cde07fd14eb65698be (patch) | |
| tree | 691b1f0492aeefbb4cbf627a0ae4f63733a72dce /ios/MullvadVPN | |
| parent | 67181be5aa8ca9524e876bcc9cd390f2338ad598 (diff) | |
| download | mullvadvpn-5c1938bceafcec5410f3a4cde07fd14eb65698be.tar.xz mullvadvpn-5c1938bceafcec5410f3a4cde07fd14eb65698be.zip | |
Update SceneDelegate.swift
Diffstat (limited to 'ios/MullvadVPN')
| -rw-r--r-- | ios/MullvadVPN/SceneDelegate.swift | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/ios/MullvadVPN/SceneDelegate.swift b/ios/MullvadVPN/SceneDelegate.swift index fc6951e0d5..1372fa5260 100644 --- a/ios/MullvadVPN/SceneDelegate.swift +++ b/ios/MullvadVPN/SceneDelegate.swift @@ -30,12 +30,6 @@ class SceneDelegate: UIResponder { private var accountDataThrottling = AccountDataThrottling() private var outOfTimeTimer: Timer? - override init() { - super.init() - - addSceneEvents() - } - deinit { clearOutOfTimeTimer() } @@ -106,33 +100,6 @@ class SceneDelegate: UIResponder { } } - private func addSceneEvents() { - if #available(iOS 13, *) { - // no-op - } else { - let notificationCenter = NotificationCenter.default - - notificationCenter.addObserver( - self, - selector: #selector(sceneDidBecomeActive), - name: UIApplication.didBecomeActiveNotification, - object: nil - ) - notificationCenter.addObserver( - self, - selector: #selector(sceneDidEnterBackground), - name: UIApplication.didEnterBackgroundNotification, - object: nil - ) - notificationCenter.addObserver( - self, - selector: #selector(sceneWillResignActive), - name: UIApplication.willResignActiveNotification, - object: nil - ) - } - } - @objc private func sceneDidBecomeActive() { TunnelManager.shared.refreshTunnelStatus() |
