From 338e30c33f9a74cd77fd49019525f72cd19f1f44 Mon Sep 17 00:00:00 2001 From: "Suresh, Kamlesh" Date: Thu, 16 Jul 2020 09:49:32 -0400 Subject: [PATCH] fix --- .../ActionType/UIAlertActionStyle+Codable.swift | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/MVMCore/MVMCore/Models/ActionType/UIAlertActionStyle+Codable.swift b/MVMCore/MVMCore/Models/ActionType/UIAlertActionStyle+Codable.swift index df524ec..bbf13b3 100644 --- a/MVMCore/MVMCore/Models/ActionType/UIAlertActionStyle+Codable.swift +++ b/MVMCore/MVMCore/Models/ActionType/UIAlertActionStyle+Codable.swift @@ -14,20 +14,6 @@ enum AlertActionError: Error { extension UIAlertAction.Style: Codable { - public init(from decoder: Decoder) throws { - let typeContainer = try decoder.singleValueContainer() - let int = try typeContainer.decode(Int.self) - guard let style = UIAlertAction.Style(rawValue: int) else { - throw AlertActionError.notAnAlertAction - } - self = style - } - - public func encode(to encoder: Encoder) throws { - var container = encoder.singleValueContainer() - try container.encode(rawValueString) - } - init(rawValue: String) { switch rawValue { case "default":