Remove unused String.contains(_:) extension

This commit is contained in:
Jonas Auer 2017-03-30 23:16:35 +02:00
parent 3e06a04594
commit 315c28af7c
1 changed files with 0 additions and 8 deletions

View File

@ -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
}