From 454e73a4e70cd5108be01bad2a8a64bbbce1b169 Mon Sep 17 00:00:00 2001 From: Cary Phillips Date: Wed, 8 Mar 2023 16:28:44 -0800 Subject: [PATCH] Remove unused variables Signed-off-by: Cary Phillips --- src/Imath/ImathMatrixAlgo.h | 2 -- src/ImathTest/testJacobiEigenSolver.cpp | 9 --------- src/ImathTest/testProcrustes.cpp | 2 -- 3 files changed, 13 deletions(-) diff --git a/src/Imath/ImathMatrixAlgo.h b/src/Imath/ImathMatrixAlgo.h index 20113680..b3d2f66d 100644 --- a/src/Imath/ImathMatrixAlgo.h +++ b/src/Imath/ImathMatrixAlgo.h @@ -777,8 +777,6 @@ template Quat extractQuat (const Matrix44& mat) { - Matrix44 rot; - T tr, s; T q[4]; int i, j, k; diff --git a/src/ImathTest/testJacobiEigenSolver.cpp b/src/ImathTest/testJacobiEigenSolver.cpp index cc9ab654..b8aca0c5 100644 --- a/src/ImathTest/testJacobiEigenSolver.cpp +++ b/src/ImathTest/testJacobiEigenSolver.cpp @@ -33,10 +33,6 @@ const Matrix33 A33_8 ( 0.25058694044821, 0.49427229444416, 0.81415724537748, 0.49427229444416, 0.80192384710853, -0.61674948224910, 0.81415724537748, -0.61674948224910, -1.28486154645285); -const Matrix33 A33_9 ( - 4, -30, 60, - -30, 300, -675, - 60, -675, 1620); const Matrix44 A44_1 ( 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1 ); const Matrix44 A44_2 ( 1, 0, 0, 0, 0,-1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1 ); @@ -50,11 +46,6 @@ const Matrix44 A44_8 ( 0.16358123075600, 0.57629829390780, 3.88542912704029, 0.92016316185369, 0.11541756047409, 3.88542912704029, 0.65367032943707, -0.21971103270410, -1.65369223465270, 0.92016316185369, -0.21971103270410, -0.28108876552761); -const Matrix44 A44_9 ( - 4, -30, 60, -35, - -30, 300, -675, 420, - 60, -675, 1620, -1050, - -35, 420, -1050, 700); // clang-format on diff --git a/src/ImathTest/testProcrustes.cpp b/src/ImathTest/testProcrustes.cpp index 90daf28d..61e33350 100644 --- a/src/ImathTest/testProcrustes.cpp +++ b/src/ImathTest/testProcrustes.cpp @@ -243,8 +243,6 @@ verifyProcrustes ( // there is zero net force and zero net torque. // { - IMATH_INTERNAL_NAMESPACE::V3d center (0, 0, 0); - IMATH_INTERNAL_NAMESPACE::V3d netForce (0); IMATH_INTERNAL_NAMESPACE::V3d netTorque (0); for (size_t iPoint = 0; iPoint < n; ++iPoint)