Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-lsvk committed Sep 29, 2023
1 parent e93802b commit 44c6af6
Showing 1 changed file with 0 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 44c6af6

Please sign in to comment.