Skip to content

Commit 7e0491b

Browse files
committed
[Standard library] Remove dead function _arrayUpCast
1 parent 30158ad commit 7e0491b

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

stdlib/public/core/Arrays.swift.gyb

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2083,19 +2083,6 @@ public func != <Element : Equatable>(
20832083
}
20842084
%end
20852085

2086-
#if _runtime(_ObjC)
2087-
/// Returns an `Array<Base>` containing the same elements as `a` in
2088-
/// O(1).
2089-
///
2090-
/// - Precondition: `Base` is a base class or base `@objc` protocol (such
2091-
/// as `AnyObject`) of `Derived`.
2092-
public func _arrayUpCast<Derived, Base>(_ a: Array<Derived>) -> Array<Base> {
2093-
// FIXME: Dynamic casting is currently not possible without the objc runtime:
2094-
// rdar://problem/18801510
2095-
return Array(_buffer: a._buffer.cast(toBufferOf: Base.self))
2096-
}
2097-
#endif
2098-
20992086
#if _runtime(_ObjC)
21002087
extension Array {
21012088
/// Tries to downcast the source `NSArray` as our native buffer type.

0 commit comments

Comments
 (0)