Skip to content

Commit

Permalink
BUG: fixed accidently dead code found by cppcheck
Browse files Browse the repository at this point in the history
From the look of the enum, and the other branches in the inner `if`, I think this change is what the author intended.

cppcheck warned:

identicalInnerCondition,ITK/Modules/Core/Mesh/include/itkConnectedRegionsMeshFilter.hxx:218,warning,Identical inner 'if' condition is always true.
  • Loading branch information
seanm committed Jan 3, 2025
1 parent 8567606 commit 9b0a894
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ ConnectedRegionsMeshFilter<TInputMesh, TOutputMesh>::GenerateData()
}
}
// Otherwise, seeds are used to indicate the region
else if (m_ExtractionMode == PointSeededRegions)
else
{
m_NumberOfCellsInRegion = 0;
if (m_ExtractionMode == PointSeededRegions)
Expand Down

0 comments on commit 9b0a894

Please sign in to comment.