nayooti 5 лет назад
Родитель
Сommit
d68cc6f50a
1 измененных файлов с 0 добавлено и 9 удалено
  1. 0 9
      deltachat-ios/Controller/QrCodeReaderController.swift

+ 0 - 9
deltachat-ios/Controller/QrCodeReaderController.swift

@@ -90,22 +90,14 @@ class QrCodeReaderController: UIViewController {
         view.bringSubviewToFront(infoLabel)
     }
 
-    private func handleCameraAutorizationState() {
-        if AVCaptureDevice.authorizationStatus(for: AVMediaType.video) == .authorized {
-            captureSession.startRunning()
-        }
-    }
-
     private func updateVideoOrientation() {
 
         guard let connection = videoPreviewLayer.connection else {
             return
         }
-
         guard connection.isVideoOrientationSupported else {
             return
         }
-
         let statusBarOrientation = UIApplication.shared.statusBarOrientation
         let videoOrientation: AVCaptureVideoOrientation =  statusBarOrientation.videoOrientation ?? .portrait
 
@@ -113,7 +105,6 @@ class QrCodeReaderController: UIViewController {
             print("no change to videoOrientation")
             return
         }
-
         videoPreviewLayer.frame = view.bounds
         connection.videoOrientation = videoOrientation
         videoPreviewLayer.removeAllAnimations()