Skip to content

Commit c3ee320

Browse files
N-Dekkerdzenanz
authored andcommitted
STYLE: Remove redundant checks in ProcessObject::VerifyPreconditions()
Removed redundant checks of required named inputs, which were performed already in the previous lines of code. Partially reverts commit bf6f106 "BUG: VerifyPreconditions checks required named inputs", April 23, 2013.
1 parent 997aa16 commit c3ee320

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

Modules/Core/Common/src/itkProcessObject.cxx

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1340,20 +1340,6 @@ ProcessObject::VerifyPreconditions() ITKv5_CONST
13401340
}
13411341
}
13421342

1343-
/**
1344-
* Verify the require named inputs.
1345-
*/
1346-
auto i = m_RequiredInputNames.begin();
1347-
while (i != m_RequiredInputNames.end())
1348-
{
1349-
if (this->GetInput(*i) == nullptr)
1350-
{
1351-
itkExceptionMacro("Required Input " << *i << "is not specified!"
1352-
<< " The required inputs are expected to be the first inputs.");
1353-
}
1354-
++i;
1355-
}
1356-
13571343
/**
13581344
* Count the number of required indexed inputs which have been assigned
13591345
*/

0 commit comments

Comments
 (0)