From f241ef2f54f3b46330cc5d9c3847cb8c3abc74bd Mon Sep 17 00:00:00 2001 From: Guillaume Pasero <guillaume.pasero@c-s.fr> Date: Wed, 5 Nov 2014 10:27:16 +0100 Subject: [PATCH] ENH: remove dependencies --- Code/IO/otbImageIOFactory.cxx | 9 ++++----- Code/Simulation/otbSpatialisationFilter.txx | 1 - 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/Code/IO/otbImageIOFactory.cxx b/Code/IO/otbImageIOFactory.cxx index 30a23fcc74..85c215fa7f 100644 --- a/Code/IO/otbImageIOFactory.cxx +++ b/Code/IO/otbImageIOFactory.cxx @@ -19,9 +19,9 @@ #include "itkMutexLock.h" #include "itkMutexLockHolder.h" -#include "otbCurlHelperInterface.h" #include "otbImageIOFactory.h" +#include "otbConfigure.h" #include "otbONERAImageIOFactory.h" #include "otbMSTARImageIOFactory.h" @@ -101,10 +101,9 @@ ImageIOFactory::RegisterBuiltInFactories() #ifdef OTB_USE_JPEG2000 itk::ObjectFactoryBase::RegisterFactory(JPEG2000ImageIOFactory::New()); #endif - if (CurlHelperInterface::IsCurlAvailable()) - { - itk::ObjectFactoryBase::RegisterFactory(TileMapImageIOFactory::New()); - } +#ifdef OTB_CURL_MULTI_AVAILABLE + itk::ObjectFactoryBase::RegisterFactory(TileMapImageIOFactory::New()); +#endif itk::ObjectFactoryBase::RegisterFactory(GDALImageIOFactory::New()); itk::ObjectFactoryBase::RegisterFactory(MWImageIOFactory::New()); itk::ObjectFactoryBase::RegisterFactory(ONERAImageIOFactory::New()); diff --git a/Code/Simulation/otbSpatialisationFilter.txx b/Code/Simulation/otbSpatialisationFilter.txx index 8037143a3d..b6832c57a8 100644 --- a/Code/Simulation/otbSpatialisationFilter.txx +++ b/Code/Simulation/otbSpatialisationFilter.txx @@ -20,7 +20,6 @@ #include "itkNumericTraits.h" -#include "otbVectorDataProperties.h" #include "otbSpatialisationFilter.h" namespace otb -- GitLab