From 315c28af7c4186b085e58fcc71aee86720445490 Mon Sep 17 00:00:00 2001 From: Jonas Auer Date: Thu, 30 Mar 2017 23:16:35 +0200 Subject: [PATCH] Remove unused String.contains(_:) extension --- .../Sources/Antlr4/misc/extension/StirngExtension.swift | 8 -------- 1 file changed, 8 deletions(-) diff --git a/runtime/Swift/Sources/Antlr4/misc/extension/StirngExtension.swift b/runtime/Swift/Sources/Antlr4/misc/extension/StirngExtension.swift index ea78d6e91..47f78a6fa 100644 --- a/runtime/Swift/Sources/Antlr4/misc/extension/StirngExtension.swift +++ b/runtime/Swift/Sources/Antlr4/misc/extension/StirngExtension.swift @@ -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 }