Skip to content

Commit 8b240d2

Browse files
committed
Remove more workarounds
Remove conditional compilation statements put in place to work around a mismatch in the compiler version used by the Windows CI.
1 parent c8778cf commit 8b240d2

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

Sources/FoundationEssentials/Data/Data.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2203,7 +2203,6 @@ public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollect
22032203
return try _representation.withUnsafeBytes(body)
22042204
}
22052205

2206-
#if compiler(>=6.2) && $LifetimeDependence
22072206
@available(FoundationSpan 6.2, *)
22082207
public var bytes: RawSpan {
22092208
@lifetime(borrow self)
@@ -2299,7 +2298,6 @@ public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollect
22992298
#endif
23002299
}
23012300
}
2302-
#endif // compiler(>=6.2) && $LifetimeDependence
23032301

23042302
@_alwaysEmitIntoClient
23052303
public func withContiguousStorageIfAvailable<ResultType>(_ body: (_ buffer: UnsafeBufferPointer<UInt8>) throws -> ResultType) rethrows -> ResultType? {
@@ -2974,7 +2972,6 @@ extension Data : Codable {
29742972
}
29752973

29762974
// TODO: remove once _overrideLifetime is public in the standard library
2977-
#if compiler(>=6.2) && $LifetimeDependence
29782975
/// Unsafely discard any lifetime dependency on the `dependent` argument. Return
29792976
/// a value identical to `dependent` with a lifetime dependency on the caller's
29802977
/// borrow scope of the `source` argument.
@@ -3023,4 +3020,3 @@ internal func _overrideLifetime<
30233020
) -> T {
30243021
dependent
30253022
}
3026-
#endif // compiler(>=6.2) && $LifetimeDependence

0 commit comments

Comments
 (0)