Skip to content

Commit 594cb52

Browse files
committed
Remove Another Unused Variable
1 parent c415a66 commit 594cb52

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

Sources/CodeEditTextView/Extensions/NSBezierPath+SmoothPath.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,6 @@ extension NSBezierPath {
6767
let unitVector1 = distance1 > 0 ? NSPoint(x: vector1.x / distance1, y: vector1.y / distance1) : NSPoint.zero
6868
let unitVector2 = distance2 > 0 ? NSPoint(x: vector2.x / distance2, y: vector2.y / distance2) : NSPoint.zero
6969

70-
// This uses the dot product formula: cos(θ) = (u1 • u2),
71-
// where u1 and u2 are unit vectors. The result will range from -1 to 1:
72-
let angleCosine = unitVector1.x * unitVector2.x + unitVector1.y * unitVector2.y
73-
7470
// Calculate the corner start and end
7571
let cornerStart = NSPoint(x: p1.x - unitVector1.x * radius, y: p1.y - unitVector1.y * radius)
7672
let cornerEnd = NSPoint(x: p1.x + unitVector2.x * radius, y: p1.y + unitVector2.y * radius)

0 commit comments

Comments
 (0)