Changed to if swift package generate-xcodeproj(>=4.1)

This commit is contained in:
andy
2018-10-01 15:11:03 +01:00
parent fd79045053
commit 4154cd31ff

View File

@@ -1,7 +1,6 @@
import Foundation
#if swift(>=4.1)
#else
#if !swift(>=4.1)
public extension Sequence {
func compactMap<ElementOfResult>(_ transform: (Element) throws -> ElementOfResult?) rethrows -> [ElementOfResult] {
return try flatMap(transform)
@@ -9,8 +8,7 @@ import Foundation
}
#endif
#if swift(>=4.1)
#else
#if !swift(>=4.1)
public extension Collection {
func index(_ i: Self.Index, offsetBy n: Int) -> Self.Index {
let indexDistance = Self.IndexDistance(n)
@@ -19,8 +17,7 @@ import Foundation
}
#endif
#if swift(>=4.1)
#else
#if !swift(>=4.1)
public extension TemplateSyntaxError {
public static func ==(lhs: TemplateSyntaxError, rhs: TemplateSyntaxError) -> Bool {
return lhs.reason == rhs.reason &&
@@ -32,8 +29,7 @@ public extension TemplateSyntaxError {
}
#endif
#if swift(>=4.1)
#else
#if !swift(>=4.1)
public extension Variable {
public static func ==(lhs: Variable, rhs: Variable) -> Bool {
return lhs.variable == rhs.variable