Skip to content

Commit 74a4adc

Browse files
committed
[stdlib] Remove ignored platform-agnostic '@available' from extensions
It looks like we exposed a bunch of Metal APIs to Swift 3 that we didn't mean to; at this point it would be a source-breaking change to hide them. Oops.
1 parent f21d9f3 commit 74a4adc

File tree

4 files changed

+0
-13
lines changed

4 files changed

+0
-13
lines changed

stdlib/public/SDK/Metal/Metal.swift

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212

1313
@_exported import Metal // Clang module
1414

15-
@available(swift 4)
1615
@available(macOS 10.11, iOS 8.0, tvOS 8.0, *)
1716
extension MTLBlitCommandEncoder {
1817

@@ -21,7 +20,6 @@ extension MTLBlitCommandEncoder {
2120
}
2221
}
2322

24-
@available(swift 4)
2523
@available(macOS 10.11, iOS 8.0, tvOS 8.0, *)
2624
extension MTLBuffer {
2725

@@ -38,7 +36,6 @@ extension MTLBuffer {
3836
}
3937
}
4038

41-
@available(swift 4)
4239
@available(macOS 10.11, iOS 8.0, tvOS 8.0, *)
4340
extension MTLComputeCommandEncoder {
4441

@@ -69,7 +66,6 @@ extension MTLComputeCommandEncoder {
6966
}
7067
}
7168

72-
@available(swift 4)
7369
@available(macOS 10.11, iOS 8.0, tvOS 8.0, *)
7470
extension MTLDevice {
7571

@@ -92,7 +88,6 @@ public func MTLCopyAllDevicesWithObserver(handler: @escaping MTLDeviceNotificati
9288
}
9389
#endif
9490

95-
@available(swift 4)
9691
@available(macOS 10.12, iOS 10.0, tvOS 10.0, *)
9792
extension MTLFunctionConstantValues {
9893

@@ -102,7 +97,6 @@ extension MTLFunctionConstantValues {
10297

10398
}
10499

105-
@available(swift 4)
106100
@available(macOS 10.13, iOS 11.0, tvOS 11.0, *)
107101
extension MTLArgumentEncoder {
108102

@@ -119,7 +113,6 @@ extension MTLArgumentEncoder {
119113
}
120114
}
121115

122-
@available(swift 4)
123116
@available(macOS 10.11, iOS 8.0, tvOS 8.0, *)
124117
extension MTLRenderCommandEncoder {
125118

@@ -201,7 +194,6 @@ extension MTLRenderCommandEncoder {
201194
#endif
202195
}
203196

204-
@available(swift 4)
205197
@available(macOS 10.11, iOS 8.0, tvOS 8.0, *)
206198
extension MTLRenderPassDescriptor {
207199

@@ -220,7 +212,6 @@ extension MTLRenderPassDescriptor {
220212

221213
}
222214

223-
@available(swift 4)
224215
@available(macOS 10.11, iOS 8.0, tvOS 8.0, *)
225216
extension MTLTexture {
226217

stdlib/public/SDK/MetalKit/MetalKit.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212

1313
@_exported import MetalKit // Clang module
1414

15-
@available(swift 4)
1615
@available(macOS 10.11, iOS 9.0, tvOS 9.0, *)
1716
extension MTKMesh {
1817
public class func newMeshes(asset: MDLAsset, device: MTLDevice) throws -> (modelIOMeshes: [MDLMesh], metalKitMeshes: [MTKMesh]) {

stdlib/public/SDK/UIKit/UIKit.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,11 +95,9 @@ extension _UIKitNumericRawRepresentable {
9595
}
9696
}
9797

98-
@available(swift 4)
9998
extension UIFont.Weight : _UIKitNumericRawRepresentable {}
10099

101100
#if !os(watchOS)
102-
@available(swift 4)
103101
extension UILayoutPriority : _UIKitNumericRawRepresentable {}
104102
#endif
105103

stdlib/public/core/Integers.swift.gyb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3841,7 +3841,6 @@ extension SignedNumeric where Self : Comparable {
38413841
}
38423842
}
38433843

3844-
@available(swift, obsoleted: 4)
38453844
extension BinaryInteger {
38463845
@_inlineable // FIXME(sil-serialize-all)
38473846
@available(swift, obsoleted: 4)

0 commit comments

Comments
 (0)