From a191f11dd6808dbcf945087adc4a1e124d48e62f Mon Sep 17 00:00:00 2001 From: Chris Brind Date: Mon, 20 Nov 2023 21:59:08 +0000 Subject: [PATCH] remove redundant orientation detection --- DuckDuckGo/MainViewController.swift | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/DuckDuckGo/MainViewController.swift b/DuckDuckGo/MainViewController.swift index bbc4f9f9d3..66785d4359 100644 --- a/DuckDuckGo/MainViewController.swift +++ b/DuckDuckGo/MainViewController.swift @@ -250,7 +250,6 @@ class MainViewController: UIViewController { registerForApplicationEvents() registerForCookiesManagedNotification() registerForSettingsChangeNotifications() - registerForOrientationChangeNotification() tabManager.cleanupTabsFaviconCache() @@ -276,17 +275,6 @@ class MainViewController: UIViewController { super.performSegue(withIdentifier: identifier, sender: sender) } - func registerForOrientationChangeNotification() { - NotificationCenter.default.addObserver(self, - selector: #selector(orientationDidChange), - name: UIDevice.orientationDidChangeNotification, - object: nil) - } - - @objc func orientationDidChange() { - onAddressBarPositionChanged() - } - func loadSuggestionTray() { let storyboard = UIStoryboard(name: "SuggestionTray", bundle: nil)