mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[stdlib] Drop unneeded protocol requirement
Conversion to cocoa is not a common requirement for all models of _ArrayBufferType Swift SVN r22947
This commit is contained in:
@@ -116,15 +116,6 @@ struct _SliceBuffer<T> : _ArrayBufferType {
|
||||
|
||||
//===--- Non-essential bits ---------------------------------------------===//
|
||||
|
||||
public func _asCocoaArray() -> _NSArrayCoreType {
|
||||
_sanityCheck(
|
||||
_isBridgedToObjectiveC(T.self),
|
||||
"Array element type is not bridged to ObjectiveC")
|
||||
_invariantCheck()
|
||||
|
||||
return _extractOrCopyToNativeArrayBuffer(self)._asCocoaArray()
|
||||
}
|
||||
|
||||
public
|
||||
mutating func requestUniqueMutableBackingBuffer(minimumCapacity: Int)
|
||||
-> NativeBuffer?
|
||||
|
||||
Reference in New Issue
Block a user