Skip to content

Commit

Permalink
removes unneeded CFString: Hashable extension (#70)
Browse files Browse the repository at this point in the history
not needed since swift 4 (swiftlang/swift#4568)
  • Loading branch information
stmitt authored Feb 19, 2021
1 parent ea8374b commit 842c82f
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions Sources/CryptorRSA/CryptorRSAUtilities.swift
Original file line number Diff line number Diff line change
Expand Up @@ -366,28 +366,3 @@ extension String {
return result
}
}


// MARK: -

#if !os(Linux)

// MARK: -- CFString Extension for Hashing

///
/// Extension to CFString to make it hashable.
///
extension CFString: Hashable {

/// Return the hash value of a CFString
public var hashValue: Int {
return (self as String).hashValue
}

/// Comparison of CFStrings
static public func == (lhs: CFString, rhs: CFString) -> Bool {
return lhs as String == rhs as String
}
}

#endif

0 comments on commit 842c82f

Please sign in to comment.