Skip to content

Commit 5053e1f

Browse files
committed
Concurrency: Remove superfluous $BuiltinExecutor guards.
1 parent 346bbca commit 5053e1f

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

stdlib/public/Concurrency/Executor.swift

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,6 @@ extension SerialExecutor {
319319
@available(SwiftStdlib 5.1, *)
320320
@frozen
321321
public struct UnownedSerialExecutor: Sendable {
322-
#if compiler(>=5.5) && $BuiltinExecutor
323322
@usableFromInline
324323
internal var executor: Builtin.Executor
325324

@@ -329,22 +328,16 @@ public struct UnownedSerialExecutor: Sendable {
329328
public var _executor: Builtin.Executor {
330329
self.executor
331330
}
332-
#endif
333331

334332
@inlinable
335333
public init(_ executor: Builtin.Executor) {
336-
#if compiler(>=5.5) && $BuiltinExecutor
337334
self.executor = executor
338335
#endif
339336
}
340337

341338
@inlinable
342339
public init<E: SerialExecutor>(ordinary executor: __shared E) {
343-
#if compiler(>=5.5) && $BuiltinBuildExecutor
344340
self.executor = Builtin.buildOrdinarySerialExecutorRef(executor)
345-
#else
346-
fatalError("Swift compiler is incompatible with this SDK version")
347-
#endif
348341
}
349342

350343
/// Opts the executor into complex "same exclusive execution context" equality checks.
@@ -376,7 +369,6 @@ public struct UnownedSerialExecutor: Sendable {
376369
@available(SwiftStdlib 6.0, *)
377370
@frozen
378371
public struct UnownedTaskExecutor: Sendable {
379-
#if $BuiltinExecutor
380372
@usableFromInline
381373
internal var executor: Builtin.Executor
382374

@@ -386,13 +378,10 @@ public struct UnownedTaskExecutor: Sendable {
386378
public var _executor: Builtin.Executor {
387379
self.executor
388380
}
389-
#endif
390381

391382
@inlinable
392383
public init(_ executor: Builtin.Executor) {
393-
#if $BuiltinExecutor
394384
self.executor = executor
395-
#endif
396385
}
397386

398387
@inlinable

0 commit comments

Comments
 (0)