Skip to content

Commit 10214ab

Browse files
committed
[stdlib] Revert changes to the CoreGraphics/CGFloat
1 parent 78ae8de commit 10214ab

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

stdlib/public/Darwin/CoreGraphics/CGFloat.swift.gyb

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -470,11 +470,6 @@ extension CGFloat {
470470
lhs /= rhs
471471
return lhs
472472
}
473-
474-
@_transparent
475-
public static prefix func -(x: CGFloat) -> CGFloat {
476-
return 0 - x
477-
}
478473
}
479474

480475
//===----------------------------------------------------------------------===//
@@ -601,8 +596,7 @@ public func remquo(_ x: CGFloat, _ y: CGFloat) -> (CGFloat, Int) {
601596
"use CGFloat(nan: CGFloat.RawSignificand) instead.")
602597
@_transparent
603598
public func nan(_ tag: String) -> CGFloat {
604-
let NaN: Float = nan(tag)
605-
return CGFloat(CGFloat.NativeType(NaN))
599+
return CGFloat(nan(tag) as CGFloat.NativeType)
606600
}
607601

608602
@_transparent

0 commit comments

Comments
 (0)