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:
Graham Batty
2014-11-10 18:46:42 +00:00
parent c54686f59d
commit 373414864d
27 changed files with 113 additions and 386 deletions

View File

@@ -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 {