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:
@@ -253,10 +253,6 @@ extension Measurement {
|
||||
|
||||
@available(OSX 10.12, iOS 10.0, watchOS 3.0, tvOS 10.0, *)
|
||||
extension Measurement : _ObjectiveCBridgeable {
|
||||
public static func _isBridgedToObjectiveC() -> Bool {
|
||||
return true
|
||||
}
|
||||
|
||||
@_semantics("convertToObjectiveC")
|
||||
public func _bridgeToObjectiveC() -> NSMeasurement {
|
||||
return NSMeasurement(doubleValue: value, unit: unit)
|
||||
|
||||
Reference in New Issue
Block a user