fix: Remove unused Error codes (#1887)

* fix: Remove unused Errors

* Errors.kt -> CameraError.kt

* fix: remove .system
This commit is contained in:
Marc Rousavy
2023-09-29 21:54:35 +02:00
committed by GitHub
parent cf1952d8f7
commit 85564d6d02
5 changed files with 2 additions and 66 deletions

View File

@@ -22,7 +22,8 @@ extension AVCaptureVideoStabilizationMode {
self = .cinematicExtended
return
} else {
throw EnumParserError.unsupportedOS(supportedOnOS: "iOS 13.0")
self = .cinematic
return
}
case "off":
self = .off

View File

@@ -12,10 +12,6 @@ import Foundation
An error raised when the given descriptor (TypeScript string union type) cannot be parsed and converted to a Swift enum.
*/
enum EnumParserError: Error {
/**
Raised when the descriptor is not supported on the current OS.
*/
case unsupportedOS(supportedOnOS: String)
/**
Raised when the descriptor does not match any of the possible values.
*/