Skip to content

Commit 17401c6

Browse files
committed
Remove explicit unavailable sendable from keypath
1 parent f9f640b commit 17401c6

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

stdlib/public/core/KeyPath.swift

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -262,16 +262,10 @@ public class AnyKeyPath: Hashable, _AppendKeyPath {
262262
}
263263
}
264264

265-
@available(*, unavailable)
266-
extension AnyKeyPath: Sendable {}
267-
268265
/// A partially type-erased key path, from a concrete root type to any
269266
/// resulting value type.
270267
public class PartialKeyPath<Root>: AnyKeyPath { }
271268

272-
@available(*, unavailable)
273-
extension PartialKeyPath: Sendable {}
274-
275269
// MARK: Concrete implementations
276270
internal enum KeyPathKind { case readOnly, value, reference }
277271

@@ -377,9 +371,6 @@ public class KeyPath<Root, Value>: PartialKeyPath<Root> {
377371
}
378372
}
379373

380-
@available(*, unavailable)
381-
extension KeyPath: Sendable {}
382-
383374
/// A key path that supports reading from and writing to the resulting value.
384375
public class WritableKeyPath<Root, Value>: KeyPath<Root, Value> {
385376
// MARK: Implementation detail
@@ -448,9 +439,6 @@ public class WritableKeyPath<Root, Value>: KeyPath<Root, Value> {
448439
}
449440
}
450441

451-
@available(*, unavailable)
452-
extension WritableKeyPath: Sendable {}
453-
454442
/// A key path that supports reading from and writing to the resulting value
455443
/// with reference semantics.
456444
public class ReferenceWritableKeyPath<
@@ -522,9 +510,6 @@ public class ReferenceWritableKeyPath<
522510
}
523511
}
524512

525-
@available(*, unavailable)
526-
extension ReferenceWritableKeyPath: Sendable {}
527-
528513
// MARK: Implementation details
529514

530515
internal enum KeyPathComponentKind {

0 commit comments

Comments
 (0)