From 4e7a7667b1a5e8f70af4f53aa3d21591de283aa6 Mon Sep 17 00:00:00 2001 From: Andrew Meadows Date: Fri, 12 Sep 2014 09:19:03 -0700 Subject: [PATCH] remove unused variable --- libraries/shared/src/AACubeShape.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/libraries/shared/src/AACubeShape.cpp b/libraries/shared/src/AACubeShape.cpp index 131885864b..fb5c3df6e3 100644 --- a/libraries/shared/src/AACubeShape.cpp +++ b/libraries/shared/src/AACubeShape.cpp @@ -38,7 +38,6 @@ bool AACubeShape::findRayIntersection(RayIntersectionInfo& intersection) const { // check for tuncated/short ray // maxLength = maximum possible distance between rayStart and center of cube const float maxLength = glm::min(intersection._rayLength, intersection._hitDistance) + r; - float maxBA2 = maxLength * maxLength; if (a * a + b2 > maxLength * maxLength) { // ray is not long enough to reach cube's bounding sphere // NOTE: we don't fall in here when ray's length if FLT_MAX because maxLength^2 will be inf or nan