From 1eb0103744c8458c23c8a4cbf251092e5a661ef8 Mon Sep 17 00:00:00 2001 From: "Hedden, Kyle Matthew" Date: Thu, 26 Oct 2023 16:39:30 -0400 Subject: [PATCH] fix stack overflow error on RawRepresentable encoding --- MVMCoreUI/Utility/RawRepresentableCodable.swift | 5 ----- 1 file changed, 5 deletions(-) diff --git a/MVMCoreUI/Utility/RawRepresentableCodable.swift b/MVMCoreUI/Utility/RawRepresentableCodable.swift index 09441add..128c21c2 100644 --- a/MVMCoreUI/Utility/RawRepresentableCodable.swift +++ b/MVMCoreUI/Utility/RawRepresentableCodable.swift @@ -32,9 +32,4 @@ extension RawRepresentableCodable { throw RawRepresentableCodableError.invalid(value: "\(rawValue)") } } - - public func encode(to encoder: Encoder) throws { - var container = encoder.singleValueContainer() - try container.encode(self) - } }