@@ -23,21 +23,6 @@ internal class _DispatchSpecificValue<T> {
23
23
internal init ( value: T ) { self . value = value }
24
24
}
25
25
26
- // Temporary for swift-corelibs-foundation
27
- @available ( * , deprecated, renamed: " DispatchQueue.Attributes " )
28
- public struct DispatchQueueAttributes : OptionSet {
29
- public let rawValue : UInt64
30
- public init ( rawValue: UInt64 ) { self . rawValue = rawValue }
31
-
32
- public static let serial = DispatchQueueAttributes ( rawValue: 1 <<0 )
33
- public static let concurrent = DispatchQueueAttributes ( rawValue: 1 <<1 )
34
-
35
- fileprivate var _translatedValue : DispatchQueue . Attributes {
36
- if self . contains ( . concurrent) { return . concurrent }
37
- return [ ]
38
- }
39
- }
40
-
41
26
public extension DispatchQueue {
42
27
public struct Attributes : OptionSet {
43
28
public let rawValue : UInt64
@@ -90,18 +75,6 @@ public extension DispatchQueue {
90
75
}
91
76
}
92
77
93
- // Temporary for swift-corelibs-foundation
94
- @available ( * , deprecated, renamed: " DispatchQoS " )
95
- public enum GlobalQueueDeprecatedPriority {
96
- case qosBackground
97
-
98
- fileprivate var _translatedValue : DispatchQoS . QoSClass {
99
- switch self {
100
- case . qosBackground: return . background
101
- }
102
- }
103
- }
104
-
105
78
public enum AutoreleaseFrequency {
106
79
case inherit
107
80
@@ -144,12 +117,6 @@ public extension DispatchQueue {
144
117
return DispatchQueue ( queue: CDispatch . dispatch_get_global_queue ( priority. _translatedValue, 0 ) )
145
118
}
146
119
147
- // Temporary for swift-corelibs-foundation
148
- @available ( * , deprecated, renamed: " DispatchQueue.global(qos:) " )
149
- public class func global( attributes: GlobalQueueDeprecatedPriority ) -> DispatchQueue {
150
- return global ( qos: attributes. _translatedValue)
151
- }
152
-
153
120
@available ( OSX 10 . 10 , iOS 8 . 0 , * )
154
121
public class func global( qos: DispatchQoS . QoSClass = . default) -> DispatchQueue {
155
122
return DispatchQueue ( queue: CDispatch . dispatch_get_global_queue ( Int ( qos. rawValue. rawValue) , 0 ) )
@@ -166,15 +133,6 @@ public extension DispatchQueue {
166
133
return nil
167
134
}
168
135
169
- // Temporary for swift-corelibs-foundation
170
- @available ( * , deprecated, renamed: " DispatchQueue(label:attributes:) " )
171
- public convenience init (
172
- label: String ,
173
- attributes: DispatchQueueAttributes )
174
- {
175
- self . init ( label: label, attributes: attributes. _translatedValue)
176
- }
177
-
178
136
public convenience init (
179
137
label: String ,
180
138
qos: DispatchQoS = . unspecified,
0 commit comments