Commit 1e845272 authored by Cédric Traizet's avatar Cédric Traizet

ENH: remove always false il statements

parent 98e88721
Pipeline #2101 passed with stages
in 58 minutes and 23 seconds
......@@ -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"));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment