From 8a1d2d970ca815bd3e95f15de47b0d2776528380 Mon Sep 17 00:00:00 2001 From: Dariusz Rybicki <dariusz@elixxir.io> Date: Mon, 6 Jun 2022 09:50:08 +0200 Subject: [PATCH] Remove unneeded codable methods --- Sources/ElixxirDAppsSDK/MessageSendReport.swift | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/Sources/ElixxirDAppsSDK/MessageSendReport.swift b/Sources/ElixxirDAppsSDK/MessageSendReport.swift index e12f20f5..60af863f 100644 --- a/Sources/ElixxirDAppsSDK/MessageSendReport.swift +++ b/Sources/ElixxirDAppsSDK/MessageSendReport.swift @@ -22,18 +22,4 @@ extension MessageSendReport: Codable { case messageId = "MessageID" case timestamp = "Timestamp" } - - public init(from decoder: Decoder) throws { - let container = try decoder.container(keyedBy: CodingKeys.self) - messageId = try container.decodeIfPresent(Data.self, forKey: .messageId) - timestamp = try container.decodeIfPresent(Int.self, forKey: .timestamp) - roundList = try container.decodeIfPresent([Int].self, forKey: .roundList) - } - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encode(messageId, forKey: .messageId) - try container.encode(timestamp, forKey: .timestamp) - try container.encode(roundList, forKey: .roundList) - } } -- GitLab