Skip to content

Commit

Permalink
remove redundant orientation detection (#2178)
Browse files Browse the repository at this point in the history
Task/Issue URL: https://app.asana.com/0/414709148257752/1205887735214021/f
Tech Design URL:
CC:

Description:

Fix text selection bug.
  • Loading branch information
brindy authored Nov 21, 2023
1 parent a70e29e commit 2329ac8
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 2329ac8

Please sign in to comment.