From fd581cd65c9a09a4952ddb7c3ddd1b4614e66489 Mon Sep 17 00:00:00 2001 From: daniel Date: Tue, 3 Apr 2018 12:46:56 -0700 Subject: [PATCH] Formatting: removed variable redeclaration in CGPath.j Variables `arcStartX` and `arcStartY` are declared on 125 and 126, but are later redeclared in an `else` statement on lines 135 and 136 with the same equation and presumably the same value used in the initial declaration. Also added missing semi-colon --- AppKit/CoreGraphics/CGPath.j | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/AppKit/CoreGraphics/CGPath.j b/AppKit/CoreGraphics/CGPath.j index b7cea5164..b01d92dfc 100644 --- a/AppKit/CoreGraphics/CGPath.j +++ b/AppKit/CoreGraphics/CGPath.j @@ -132,9 +132,6 @@ function CGPathAddArc(aPath, aTransform, x, y, aRadius, aStartAngle, anEndAngle, } else { - var arcStartX = x + aRadius * COS(aStartAngle), - arcStartY = y + aRadius * SIN(aStartAngle); - aPath.start = CGPointMake(arcStartX, arcStartY); } @@ -274,7 +271,7 @@ function CGPathAddQuadCurveToPoint(aPath, aTransform, cpx, cpy, x, y) end = CGPointApplyAffineTransform(end, aTransform); } - aPath.elements[aPath.count++] = { type:kCGPathElementAddQuadCurveToPoint, cpx:cp.x, cpy:cp.y, x:end.x, y:end.y } + aPath.elements[aPath.count++] = { type:kCGPathElementAddQuadCurveToPoint, cpx:cp.x, cpy:cp.y, x:end.x, y:end.y }; aPath.current = end; }