From 44c6af68eb1e6f5eb1fa92453e6e2bdf0651a399 Mon Sep 17 00:00:00 2001 From: Alexander Lisovik Date: Fri, 29 Sep 2023 14:13:08 +0400 Subject: [PATCH] Update --- .../SessionRequest/SessionRequestPresenter.swift | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/Example/WalletApp/PresentationLayer/Wallet/SessionRequest/SessionRequestPresenter.swift b/Example/WalletApp/PresentationLayer/Wallet/SessionRequest/SessionRequestPresenter.swift index 31f5e2c20..2cd2fc2d8 100644 --- a/Example/WalletApp/PresentationLayer/Wallet/SessionRequest/SessionRequestPresenter.swift +++ b/Example/WalletApp/PresentationLayer/Wallet/SessionRequest/SessionRequestPresenter.swift @@ -60,17 +60,6 @@ final class SessionRequestPresenter: ObservableObject { // MARK: - Private functions private extension SessionRequestPresenter { func setupInitialState() {} - - func hexToString(hexString: String) -> String { - let regex = try! NSRegularExpression(pattern: "(0x)?([0-9A-Fa-f]{2})", options: .caseInsensitive) - let textNS = hexString as NSString - let matchesArray = regex.matches(in: textNS as String, options: [], range: NSMakeRange(0, textNS.length)) - let characters = matchesArray.map { - Character(UnicodeScalar(UInt32(textNS.substring(with: $0.range(at: 2)), radix: 16)!)!) - } - - return String(characters) - } } // MARK: - SceneViewModel