@@ -213,12 +213,6 @@ extension Int : _ObjectiveCBridgeable {
213
213
self . _forceBridgeFromObjectiveC ( x, result: & result)
214
214
return true
215
215
}
216
-
217
- public static func _unconditionallyBridgeFromObjectiveC(
218
- source: NSNumber ?
219
- ) -> Int {
220
- return source!. integerValue
221
- }
222
216
}
223
217
224
218
extension UInt : _ObjectiveCBridgeable {
@@ -253,12 +247,6 @@ extension UInt : _ObjectiveCBridgeable {
253
247
self . _forceBridgeFromObjectiveC ( x, result: & result)
254
248
return true
255
249
}
256
-
257
- public static func _unconditionallyBridgeFromObjectiveC(
258
- source: NSNumber ?
259
- ) -> UInt {
260
- return source!. unsignedIntegerValue
261
- }
262
250
}
263
251
264
252
extension Float : _ObjectiveCBridgeable {
@@ -293,12 +281,6 @@ extension Float : _ObjectiveCBridgeable {
293
281
self . _forceBridgeFromObjectiveC ( x, result: & result)
294
282
return true
295
283
}
296
-
297
- public static func _unconditionallyBridgeFromObjectiveC(
298
- source: NSNumber ?
299
- ) -> Float {
300
- return source!. floatValue
301
- }
302
284
}
303
285
304
286
extension Double : _ObjectiveCBridgeable {
@@ -333,12 +315,6 @@ extension Double : _ObjectiveCBridgeable {
333
315
self . _forceBridgeFromObjectiveC ( x, result: & result)
334
316
return true
335
317
}
336
-
337
- public static func _unconditionallyBridgeFromObjectiveC(
338
- source: NSNumber ?
339
- ) -> Double {
340
- return source!. doubleValue
341
- }
342
318
}
343
319
344
320
extension Bool : _ObjectiveCBridgeable {
@@ -373,12 +349,6 @@ extension Bool: _ObjectiveCBridgeable {
373
349
self . _forceBridgeFromObjectiveC ( x, result: & result)
374
350
return true
375
351
}
376
-
377
- public static func _unconditionallyBridgeFromObjectiveC(
378
- source: NSNumber ?
379
- ) -> Bool {
380
- return source!. boolValue
381
- }
382
352
}
383
353
384
354
// CGFloat bridging.
@@ -416,13 +386,6 @@ extension CGFloat : _ObjectiveCBridgeable {
416
386
self . _forceBridgeFromObjectiveC ( x, result: & result)
417
387
return true
418
388
}
419
-
420
- public static func _unconditionallyBridgeFromObjectiveC(
421
- source: NSNumber ?
422
- ) -> CGFloat {
423
- return CGFloat (
424
- CGFloat . NativeType. _unconditionallyBridgeFromObjectiveC ( source) )
425
- }
426
389
}
427
390
428
391
// Literal support for NSNumber
0 commit comments