mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
stdlib: Remove _isBridgedToObjectiveC from _ObjectiveCBridgeable.
All generic bridgeable types can bridge for all their instantiations now. Removing this ferrets out some now-unnecessary traps that check for unbridgeable parameter types.
This commit is contained in:
@@ -852,10 +852,6 @@ private func _toNSRange(_ r : Range<IndexSet.Element>) -> NSRange {
|
||||
}
|
||||
|
||||
extension IndexSet : _ObjectiveCBridgeable {
|
||||
public static func _isBridgedToObjectiveC() -> Bool {
|
||||
return true
|
||||
}
|
||||
|
||||
public static func _getObjectiveCType() -> Any.Type {
|
||||
return NSIndexSet.self
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user