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 authored and N-Dekker committed Jan 7, 2025
1 parent 5003490 commit a2bef9c
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 a2bef9c

Please sign in to comment.