Skip to content
Snippets Groups Projects
Commit 1e845272 authored by Cédric Traizet's avatar Cédric Traizet
Browse files

ENH: remove always false il statements

parent 98e88721
No related branches found
No related tags found
No related merge requests found
......@@ -374,18 +374,7 @@ private:
bool CropRegionOfInterest()
{
FloatVectorImageType::RegionType region;
if ( !HasValue("sizex") )
SetParameterInt( "sizex" ,
GetDefaultParameterInt( "sizex" ) );
if ( !HasValue("sizey") )
SetParameterInt( "sizey" ,
GetDefaultParameterInt( "sizey" ) );
if ( !HasValue("startx") )
SetParameterInt( "startx" ,
GetDefaultParameterInt( "startx" ) );
if ( !HasValue("starty") )
SetParameterInt( "starty" ,
GetDefaultParameterInt( "starty" ) );
region.SetSize(0, GetParameterInt("sizex"));
region.SetSize(1, GetParameterInt("sizey"));
region.SetIndex(0, GetParameterInt("startx"));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment