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)