From 73b32f42c65012010a2706e0f99221f1b6cb1545 Mon Sep 17 00:00:00 2001 From: Octopus Octopus Date: Sun, 3 Jul 2022 15:17:53 -0500 Subject: [PATCH] remove pointless variable --- fightstick/body2D.go | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/fightstick/body2D.go b/fightstick/body2D.go index 0e11049..a3c0a36 100644 --- a/fightstick/body2D.go +++ b/fightstick/body2D.go @@ -27,8 +27,7 @@ func topPlane() sdf.SDF2 { buttons = loggedMovement(buttons, v2.Vec{X: top.BoundingBox().Max.X / 2, Y: top.BoundingBox().Max.Y / 4}, "button cluster") top = sdf.Difference2D(top, buttons) - screws := screwHoles() - top = sdf.Difference2D(top, screws) + top = sdf.Difference2D(top, screwHoles()) return top } @@ -55,8 +54,7 @@ func wallsPlane() sdf.SDF2 { tlCorner := sdf.Transform2D(trCorner, sdf.MirrorY()) walls = sdf.Union2D(walls, brCorner, blCorner, trCorner, tlCorner) - screws := screwHoles() - walls = sdf.Difference2D(walls, screws) + walls = sdf.Difference2D(walls, screwHoles()) return walls } @@ -64,8 +62,7 @@ func wallsPlane() sdf.SDF2 { func bottomPlane() sdf.SDF2 { bottom := sdf.Box2D(v2.Vec{X: BODY_SIZE_X, Y: BODY_SIZE_Y}, BODY_CURVE) - screws := screwHoles() - bottom = sdf.Difference2D(bottom, screws) + bottom = sdf.Difference2D(bottom, screwHoles()) return bottom }