Remove unused String.contains(_:) extension
This commit is contained in:
parent
3e06a04594
commit
315c28af7c
|
@ -32,14 +32,6 @@ public extension String {
|
|||
return self.replacingOccurrences(of: from, with: replacement, options: NSString.CompareOptions.literal, range: nil)
|
||||
}
|
||||
|
||||
@available(iOS, obsoleted: 10.0)
|
||||
@available(macOS, obsoleted: 10.12)
|
||||
@available(tvOS, obsoleted: 10.0)
|
||||
@available(watchOS, obsoleted: 3.0)
|
||||
func contains(_ find: String) -> Bool {
|
||||
return self.range(of: find) != nil
|
||||
}
|
||||
|
||||
func containsIgnoreCase(_ find: String) -> Bool {
|
||||
return self.lowercased().range(of: find.lowercased()) != nil
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue