Skip to content

Commit

Permalink
STYLE: Remove compiletime false if statements
Browse files Browse the repository at this point in the history
The test for epsilon > 0 is always true because
epsilon is a constexpr greater than 0.
  • Loading branch information
hjmjohnson committed Dec 18, 2024
1 parent e1e2cd1 commit 51a098f
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 31 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,6 @@ itkComposeScaleSkewVersor3DTransformTest(int, char *[])

transform->SetParameters(parameters);

if constexpr (0.0 > epsilon)
{
std::cout << "Error ! " << std::endl;
return EXIT_FAILURE;
}
std::cout << " PASSED !" << std::endl;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,6 @@ itkScaleSkewVersor3DTransformTest(int, char *[])

transform->SetParameters(parameters);

if constexpr (0.0 > epsilon)
{
std::cout << "Error ! " << std::endl;
return EXIT_FAILURE;
}
std::cout << " PASSED !" << std::endl;
}

Expand Down
6 changes: 0 additions & 6 deletions Modules/Core/Transform/test/itkScaleVersor3DTransformTest.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,6 @@ itkScaleVersor3DTransformTest(int, char *[])

transform->SetParameters(parameters);

if constexpr (0.0 > epsilon)
{
std::cout << "Error ! " << std::endl;
return EXIT_FAILURE;
}

transform->Print(std::cout);

std::cout << " PASSED !" << std::endl;
Expand Down
5 changes: 0 additions & 5 deletions Modules/Core/Transform/test/itkSimilarity3DTransformTest.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,6 @@ itkSimilarity3DTransformTest(int, char *[])

transform->SetParameters(parameters);

if (0.0 > epsilon)
{
std::cout << "Error ! " << std::endl;
return EXIT_FAILURE;
}
std::cout << " PASSED !" << std::endl;
}
{
Expand Down
5 changes: 0 additions & 5 deletions Modules/Core/Transform/test/itkVersorRigid3DTransformTest.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,6 @@ itkVersorRigid3DTransformTest(int, char *[])

transform->SetParameters(parameters);

if constexpr (0.0 > epsilon)
{
std::cout << "Error ! " << std::endl;
return EXIT_FAILURE;
}
std::cout << " PASSED !" << std::endl;
}

Expand Down
5 changes: 0 additions & 5 deletions Modules/Core/Transform/test/itkVersorTransformTest.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,6 @@ itkVersorTransformTest(int, char *[])

transform->SetParameters(parameters);

if (0.0 > epsilon)
{
std::cout << "Error ! " << std::endl;
return EXIT_FAILURE;
}
std::cout << " PASSED !" << std::endl;
}

Expand Down

0 comments on commit 51a098f

Please sign in to comment.