From 9b0a8949cb71949e7fd1297dfddbd132c4a30506 Mon Sep 17 00:00:00 2001 From: Sean McBride Date: Fri, 3 Jan 2025 00:47:45 -0500 Subject: [PATCH] BUG: fixed accidently dead code found by cppcheck 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. --- Modules/Core/Mesh/include/itkConnectedRegionsMeshFilter.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/Core/Mesh/include/itkConnectedRegionsMeshFilter.hxx b/Modules/Core/Mesh/include/itkConnectedRegionsMeshFilter.hxx index 1361eab6053..dab8962d900 100644 --- a/Modules/Core/Mesh/include/itkConnectedRegionsMeshFilter.hxx +++ b/Modules/Core/Mesh/include/itkConnectedRegionsMeshFilter.hxx @@ -208,7 +208,7 @@ ConnectedRegionsMeshFilter::GenerateData() } } // Otherwise, seeds are used to indicate the region - else if (m_ExtractionMode == PointSeededRegions) + else { m_NumberOfCellsInRegion = 0; if (m_ExtractionMode == PointSeededRegions)