mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Revert "Use config directives to carve out a 'portable' kernel stdlib."
This reverts commit r23202 pending further discussion. Swift SVN r23205
This commit is contained in:
@@ -30,11 +30,9 @@ public struct _UnitTestArrayBuffer<T> : _ArrayBufferType {
|
||||
realMinimumCapacity)
|
||||
|
||||
var bridged = false
|
||||
#if _runtime(_ObjC)
|
||||
if _canBeClass(T.self) != 0 {
|
||||
bridged = _isBridgedVerbatimToObjectiveC(T.self)
|
||||
}
|
||||
#endif
|
||||
|
||||
_base.value = _ArrayBody(
|
||||
count: count, capacity: _base._capacity(),
|
||||
@@ -233,7 +231,6 @@ public struct _UnitTestArrayBuffer<T> : _ArrayBufferType {
|
||||
return true
|
||||
}
|
||||
|
||||
#if _runtime(_ObjC)
|
||||
/// Convert to an NSArray.
|
||||
/// Precondition: T is bridged to Objective-C
|
||||
/// O(1).
|
||||
@@ -247,7 +244,6 @@ public struct _UnitTestArrayBuffer<T> : _ArrayBufferType {
|
||||
}
|
||||
return _SwiftDeferredNSArray(_nativeStorage: _storage!)
|
||||
}
|
||||
#endif
|
||||
|
||||
/// An object that keeps the elements stored in this buffer alive
|
||||
public var owner: AnyObject {
|
||||
|
||||
Reference in New Issue
Block a user