Skip to content

Commit

Permalink
ENH: Remove unreachable condition in FMUG all target reached mode
Browse files Browse the repository at this point in the history
Remove unreachable condition when setting the target reached mode to all
targets in `itk::FastMarchingUpwindGradientImageFilter`. The empty
t target point vector is already checked, and setting the mode prior to
the check would introduce a bug.
  • Loading branch information
jhlegarreta authored and dzenanz committed Apr 4, 2022
1 parent 4641ac4 commit 9f94dfc
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -200,10 +200,6 @@ class ITK_TEMPLATE_EXPORT FastMarchingUpwindGradientImageFilter : public FastMar
}

this->SetTargetReachedMode(AllTargets);
if (m_TargetPoints->Size() == 0)
{
itkExceptionMacro(<< "No target point set. Cannot set the target reached mode.");
}
m_NumberOfTargets = m_TargetPoints->Size();
}

Expand Down

0 comments on commit 9f94dfc

Please sign in to comment.