From 1e8452721a18b798b7de3c5e4a1c8bc84fee1a3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Traizet?= <cedric.traizet@c-s.fr> Date: Wed, 3 Jul 2019 11:30:50 +0200 Subject: [PATCH] ENH: remove always false il statements --- .../AppImageUtils/app/otbExtractROI.cxx | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/Modules/Applications/AppImageUtils/app/otbExtractROI.cxx b/Modules/Applications/AppImageUtils/app/otbExtractROI.cxx index b673c187ad..476f7b5710 100644 --- a/Modules/Applications/AppImageUtils/app/otbExtractROI.cxx +++ b/Modules/Applications/AppImageUtils/app/otbExtractROI.cxx @@ -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")); -- GitLab