Skip to content

Commit

Permalink
remove redundant orientation detection
Browse files Browse the repository at this point in the history
  • Loading branch information
brindy committed Nov 20, 2023
1 parent 3bddbca commit a191f11
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions DuckDuckGo/MainViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,6 @@ class MainViewController: UIViewController {
registerForApplicationEvents()
registerForCookiesManagedNotification()
registerForSettingsChangeNotifications()
registerForOrientationChangeNotification()

tabManager.cleanupTabsFaviconCache()

Expand All @@ -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)

Expand Down

0 comments on commit a191f11

Please sign in to comment.