             object: nil)
     }
     
-    private func addRotateObserver() {
-        NSNotificationCenter.defaultCenter().addObserver(
-            self,
-            selector: #selector(rotate),
-            name: UIDeviceOrientationDidChangeNotification,
-            object: nil)
-    }
-    
     internal func notifyCameraReady() {
         cameraButton.enabled = true
     }

        view.autoRemoveConstraint(cameraButtonEdgeConstraint)
        
        let attribute : NSLayoutAttribute
        switch statusBarOrientation {
            case .Portrait:
                attribute = .Bottom

    public override func viewDidLoad() {
        super.viewDidLoad()
        addCameraObserver()
        setupVolumeControl()
        setupActions()
        checkPermissions()
