diff --git a/Source/Pages/Photo/YPPhotoCaptureHelper.swift b/Source/Pages/Photo/YPPhotoCaptureHelper.swift index a939b87ab..af8f5e909 100644 --- a/Source/Pages/Photo/YPPhotoCaptureHelper.swift +++ b/Source/Pages/Photo/YPPhotoCaptureHelper.swift @@ -120,25 +120,10 @@ extension YPPhotoCaptureHelper { } extension YPPhotoCaptureHelper: AVCapturePhotoCaptureDelegate { - @available(iOS 11.0, *) func photoOutput(_ output: AVCapturePhotoOutput, didFinishProcessingPhoto photo: AVCapturePhoto, error: Error?) { guard let data = photo.fileDataRepresentation() else { return } block?(data) } - - func photoOutput(_ output: AVCapturePhotoOutput, - didFinishProcessingPhoto photoSampleBuffer: CMSampleBuffer?, - previewPhoto previewPhotoSampleBuffer: CMSampleBuffer?, - resolvedSettings: AVCaptureResolvedPhotoSettings, - bracketSettings: AVCaptureBracketedStillImageSettings?, - error: Error?) { - guard let buffer = photoSampleBuffer else { return } - if let data = AVCapturePhotoOutput - .jpegPhotoDataRepresentation(forJPEGSampleBuffer: buffer, - previewPhotoSampleBuffer: previewPhotoSampleBuffer) { - block?(data) - } - } } // MARK: - Private