mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-29 04:24:21 +00:00
No more #if swift(>=4.1)
This commit is contained in:
1 parent
e05a64f1cb
commit
5747d1cff0
16 files changed
+3
-165
No files matched your search
@@ -556,7 +556,7 @@ public struct SQLFunctionName : Hashable {
|
||||
/// The SQL function name
|
||||
///
|
||||
/// :nodoc:
|
||||
public let sql: String
|
||||
public var sql: String
|
||||
|
||||
/// [**Experimental**](http://github.com/groue/GRDB.swift#what-are-experimental-features)
|
||||
///
|
||||
@@ -568,22 +568,6 @@ public struct SQLFunctionName : Hashable {
|
||||
public init(_ sql: String) {
|
||||
self.sql = sql
|
||||
}
|
||||
|
||||
#if !swift(>=4.1)
|
||||
/// The hash value
|
||||
///
|
||||
/// :nodoc:
|
||||
public var hashValue: Int {
|
||||
return sql.hashValue
|
||||
}
|
||||
|
||||
/// Equality operator
|
||||
///
|
||||
/// :nodoc:
|
||||
public static func == (lhs: SQLFunctionName, rhs: SQLFunctionName) -> Bool {
|
||||
return lhs.sql == rhs.sql
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
/// [**Experimental**](http://github.com/groue/GRDB.swift#what-are-experimental-features)
|
||||
|
||||
Reference in new issue
Block a user