Skip to content

Commit

Permalink
Remove uneeded method
Browse files Browse the repository at this point in the history
  • Loading branch information
funkyboy committed Jun 5, 2018
1 parent 81fdbf1 commit 54c84de
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions Spec/TestUtilities.swift
Original file line number Diff line number Diff line change
Expand Up @@ -495,14 +495,6 @@ func getTestTokenDetails(key: String? = nil, clientId: String? = nil, capability
return tokenDetails
}

func encodeString(_ input: String) -> String? {
let allowedQueryParamAndKey = CharacterSet(charactersIn: "{}[]*: ")
if let encodedString_ = input.addingPercentEncoding(withAllowedCharacters: allowedQueryParamAndKey) {
return encodedString_
}
return nil
}

func getJWTToken(invalid: Bool = false, expiresIn: Int = 3600, clientId: String = "testClientIDiOS", capability: String = "{\"*\":[\"*\"]}", jwtType: String = "", encrypted: Int = 0) -> String? {
let options = AblyTests.commonAppSetup()
guard let components = options.key?.components(separatedBy: ":"), let keyName = components.first, var keySecret = components.last else {
Expand Down

0 comments on commit 54c84de

Please sign in to comment.