Skip to content
Snippets Groups Projects
Commit 11a5e201 authored by Julien Malik's avatar Julien Malik
Browse files

ENH: remove input number check which was done a little late

parent e26a6766
Branches
Tags
No related merge requests found
......@@ -506,17 +506,6 @@ ImageFileWriter<TInputImage>
}
}
/**
* Make sure we have the necessary inputs
*/
unsigned int ninputs = this->GetNumberOfValidRequiredInputs();
if (ninputs < this->GetNumberOfRequiredInputs())
{
itkExceptionMacro(<< "At least " << static_cast<unsigned int>(
this->GetNumberOfRequiredInputs()) << " inputs are required but only " << ninputs <<
" are specified.");
return;
}
this->SetAbortGenerateData(0);
this->SetProgress(0.0);
this->m_Updating = true;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment