Skip to content

Commit

Permalink
Remove unused variables (AcademySoftwareFoundation#303)
Browse files Browse the repository at this point in the history
Signed-off-by: Cary Phillips <[email protected]>
  • Loading branch information
cary-ilm committed May 18, 2023
1 parent 9b618bb commit 63d7459
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 15 deletions.
7 changes: 3 additions & 4 deletions src/Imath/ImathMatrixAlgo.h
Original file line number Diff line number Diff line change
Expand Up @@ -721,11 +721,10 @@ template <class T>
Quat<T>
extractQuat (const Matrix44<T>& mat)
{
Matrix44<T> rot;
T tr, s;
T q[4];
int i, j, k;

T tr, s;
T q[4];
int i, j, k;
Quat<T> quat;

int nxt[3] = { 1, 2, 0 };
Expand Down
9 changes: 0 additions & 9 deletions src/ImathTest/testJacobiEigenSolver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,6 @@ const Matrix33<double> A33_8 (
0.25058694044821, 0.49427229444416, 0.81415724537748,
0.49427229444416, 0.80192384710853, -0.61674948224910,
0.81415724537748, -0.61674948224910, -1.28486154645285);
const Matrix33<double> A33_9 (
4, -30, 60,
-30, 300, -675,
60, -675, 1620);

const Matrix44<double> A44_1 ( 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1 );
const Matrix44<double> A44_2 ( 1, 0, 0, 0, 0,-1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1 );
Expand All @@ -50,11 +46,6 @@ const Matrix44<double> 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<double> A44_9 (
4, -30, 60, -35,
-30, 300, -675, 420,
60, -675, 1620, -1050,
-35, 420, -1050, 700);

// clang-format on

Expand Down
2 changes: 0 additions & 2 deletions src/ImathTest/testProcrustes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -233,8 +233,6 @@ verifyProcrustes (const std::vector<IMATH_INTERNAL_NAMESPACE::Vec3<T>>& from,
// 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)
Expand Down

0 comments on commit 63d7459

Please sign in to comment.