From d577cbaa53d636e75a668e88a83733f68a8f5181 Mon Sep 17 00:00:00 2001 From: AKosylo Date: Fri, 13 Oct 2023 15:53:09 +0200 Subject: [PATCH] remove not necessary func --- DXFeedFramework/Native/Feed/EventCode+Native.swift | 5 ----- DXFeedFrameworkTests/EventsTest.swift | 3 ++- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/DXFeedFramework/Native/Feed/EventCode+Native.swift b/DXFeedFramework/Native/Feed/EventCode+Native.swift index db5045b83..7d4f53cdc 100644 --- a/DXFeedFramework/Native/Feed/EventCode+Native.swift +++ b/DXFeedFramework/Native/Feed/EventCode+Native.swift @@ -95,9 +95,4 @@ extension EventCode { return DXFG_EVENT_OPTION_SALE } } - - static func differentCodesAfterConversation() -> [EventCode] { - let convertedSet = Set(EventCode.allCases.map { $0.nativeCode() }.compactMap { EventCode.convert($0) }) - return Array(Set(EventCode.allCases).symmetricDifference(convertedSet)) - } } diff --git a/DXFeedFrameworkTests/EventsTest.swift b/DXFeedFrameworkTests/EventsTest.swift index 74f0a7edd..70b36bf09 100644 --- a/DXFeedFrameworkTests/EventsTest.swift +++ b/DXFeedFrameworkTests/EventsTest.swift @@ -10,7 +10,8 @@ import XCTest final class EventsTest: XCTestCase { func testConversion() throws { - let difValues = EventCode.differentCodesAfterConversation() + let convertedSet = Set(EventCode.allCases.map { $0.nativeCode() }.compactMap { EventCode.convert($0) }) + let difValues = Array(Set(EventCode.allCases).symmetricDifference(convertedSet)) XCTAssert(difValues.count == 0, "Not equal enums. Please, take a look on \(difValues)") } }