From 90d4c2cdf2ed7520eba66481712d730c7c46308d Mon Sep 17 00:00:00 2001
From: Emmanuel Christophe <emmanuel.christophe@orfeo-toolbox.org>
Date: Tue, 24 Mar 2009 09:32:41 +0800
Subject: [PATCH] ENH: suppression of the now unused (and not working)
 RationalQuotientResampleImageFilter

---
 .../otbRationalQuotientResampleImageFilter.h  | 159 ---------------
 ...otbRationalQuotientResampleImageFilter.txx | 192 ------------------
 Examples/Filtering/CMakeLists.txt             |  15 +-
 .../RationalQuotientResampleImageFilter.cxx   |  86 --------
 .../Filtering/otbFilteringExamplesTests.cxx   |   5 -
 Testing/Code/BasicFilters/CMakeLists.txt      |  18 --
 .../BasicFilters/otbBasicFiltersTests7.cxx    |   2 -
 ...otbRationalQuotientResampleImageFilter.cxx |  63 ------
 ...RationalQuotientResampleImageFilterNew.cxx |  35 ----
 9 files changed, 1 insertion(+), 574 deletions(-)
 delete mode 100644 Code/BasicFilters/otbRationalQuotientResampleImageFilter.h
 delete mode 100644 Code/BasicFilters/otbRationalQuotientResampleImageFilter.txx
 delete mode 100644 Examples/Filtering/RationalQuotientResampleImageFilter.cxx
 delete mode 100644 Testing/Code/BasicFilters/otbRationalQuotientResampleImageFilter.cxx
 delete mode 100644 Testing/Code/BasicFilters/otbRationalQuotientResampleImageFilterNew.cxx

diff --git a/Code/BasicFilters/otbRationalQuotientResampleImageFilter.h b/Code/BasicFilters/otbRationalQuotientResampleImageFilter.h
deleted file mode 100644
index 78001e75bb..0000000000
--- a/Code/BasicFilters/otbRationalQuotientResampleImageFilter.h
+++ /dev/null
@@ -1,159 +0,0 @@
-/*=========================================================================
-
-Program:   ORFEO Toolbox
-Language:  C++
-Date:      $Date$
-Version:   $Revision$
-
-
-Copyright (c) Centre National d'Etudes Spatiales. All rights reserved.
-See OTBCopyright.txt for details.
-
-
-This software is distributed WITHOUT ANY WARRANTY; without even
-the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
-PURPOSE.  See the above copyright notices for more information.
-
-=========================================================================*/
-#ifndef __otbRationalQuotientResampleImageFilter_h
-#define __otbRationalQuotientResampleImageFilter_h
-
-#include "itkImageToImageFilter.h"
-#include "itkExpandImageFilter.h"
-#include "itkShrinkImageFilter.h"
-
-namespace otb
-{
-/** \class RationalQuotientResampleImageFilter
- *  \brief This class is a composite filter, allowing user to resample
- *         an input image by rational quotient factor, for example *1.5
- *
- *  Combining an expand filter, then a shrink filter,
- *  denominator is applied as expand factor, whereas
- *  numerator is applied as shrink factor.
- */
-template <class TInputImage, class TOutputImage>
-class ITK_EXPORT RationalQuotientResampleImageFilter
-      : public itk::ImageToImageFilter<TInputImage,TOutputImage>
-{
-public:
-  /** Standard typedefs */
-  typedef RationalQuotientResampleImageFilter Self;
-  typedef itk::ImageToImageFilter<TInputImage,TOutputImage> Superclass;
-  typedef itk::SmartPointer<Self> Pointer;
-  typedef itk::SmartPointer<const Self> ConstPointer;
-
-  /** Creation through object factory macro */
-  itkNewMacro(Self);
-
-  /** Type macro */
-  itkTypeMacro(RationalQuotientResampleImageFilter, ImageToImageFilter);
-
-  itkStaticConstMacro(ImageDimension, unsigned int,
-                      TInputImage::ImageDimension);
-  itkStaticConstMacro(OutputImageDimension, unsigned int,
-                      TOutputImage::ImageDimension );
-
-  /** Display */
-  void PrintSelf( std::ostream& os, itk::Indent indent ) const;
-
-  /** Template parameters typedefs */
-  typedef TInputImage InputImageType;
-  typedef typename InputImageType::Pointer InputImagePointerType;
-  typedef TOutputImage OutputImageType;
-  typedef typename OutputImageType::Pointer OutputImagePointerType;
-
-  /** Set numerator factors
-   *  \param numerator The factor for expand filter, same for each dimension
-   */
-  virtual void SetNumeratorFactors(const unsigned int numerator);
-
-  /** Set numerator factors
-   *  \param numerators Tab of expand filter factors, along each dimension
-   */
-  virtual void SetNumeratorFactors( const unsigned int* numerators);
-
-  /** Set numerator factors
-   *  \param i Indice of dimension
-   *  \param numerator The factor for expand filter
-   */
-  virtual void SetNumeratorFactors( const unsigned int i,
-                                    const unsigned int numerator);
-
-  /** Get numerator factors
-   *  \return tab of numerator factors
-   */
-  virtual const unsigned int* GetNumeratorFactors() const
-  {
-    return m_Numerators;
-  }
-
-  /** Set denominator factors
-   *  \param denominator The factor for shrink filter, same along each dimension
-   */
-  virtual void SetDenominatorFactors(const unsigned int denominator);
-
-  /** Set denominator factors
-    *  \param denominators Tab of shrink filter factors, along each dimension
-  */
-  virtual void SetDenominatorFactors(const unsigned int* denominators);
-
-  /** Set denominator factors
-   *  \param i Indice of dimension
-   *  \param denominator The factor for shrink filter
-   */
-  virtual void SetDenominatorFactors(const unsigned int i,
-                                     const unsigned int denominator);
-
-  /** Get denominator factors
-    * \return tab of denominator factors
-  */
-  virtual const unsigned int* GetDenominatorFactors() const
-  {
-    return m_Denominators;
-  }
-
-protected:
-
-  /** Internal filters typedefs */
-  typedef itk::ShrinkImageFilter<InputImageType, OutputImageType>
-  ShrinkFilterType;
-  typedef typename ShrinkFilterType::Pointer ShrinkFilterPointerType;
-
-  typedef itk::ExpandImageFilter<InputImageType, OutputImageType>
-  ExpandFilterType;
-  typedef typename ExpandFilterType::Pointer ExpandFilterPointerType;
-
-  /** Actually process the input */
-  virtual void GenerateData();
-
-  /** Constructor */
-  RationalQuotientResampleImageFilter();
-
-  /** Expand filter */
-  ExpandFilterPointerType m_ExpandFilter;
-
-  /** Shrink filter */
-  ShrinkFilterPointerType m_ShrinkFilter;
-
-  /** Destructor */
-  virtual ~RationalQuotientResampleImageFilter() {}
-
-  /** Numerator factors*/
-  unsigned int m_Numerators[ImageDimension];
-
-  /** Denominator factors*/
-  unsigned int m_Denominators[ImageDimension];
-
-private:
-
-  RationalQuotientResampleImageFilter(Self&);   // intentionally not implemented
-  void operator=(const Self&);          // intentionally not implemented
-
-};
-}// End namespace otb
-#ifndef OTB_MANUAL_INSTANTIATION
-#include "otbRationalQuotientResampleImageFilter.txx"
-#endif
-
-#endif
diff --git a/Code/BasicFilters/otbRationalQuotientResampleImageFilter.txx b/Code/BasicFilters/otbRationalQuotientResampleImageFilter.txx
deleted file mode 100644
index 42ad125ad9..0000000000
--- a/Code/BasicFilters/otbRationalQuotientResampleImageFilter.txx
+++ /dev/null
@@ -1,192 +0,0 @@
-/*=========================================================================
-
-Program:   ORFEO Toolbox
-Language:  C++
-Date:      $Date$
-Version:   $Revision$
-
-
-Copyright (c) Centre National d'Etudes Spatiales. All rights reserved.
-See OTBCopyright.txt for details.
-
-
-This software is distributed WITHOUT ANY WARRANTY; without even
-the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
-PURPOSE.  See the above copyright notices for more information.
-
-=========================================================================*/
-#ifndef __otbRationalQuotientResampleImageFilter_txx
-#define __otbRationalQuotientResampleImageFilter_txx
-
-#include "otbRationalQuotientResampleImageFilter.h"
-
-namespace otb
-{
-
-/**
- * Constructor
- */
-template <class TInputImage, class TOutputImage>
-RationalQuotientResampleImageFilter<TInputImage, TOutputImage>::RationalQuotientResampleImageFilter()
-{
-  // Default rational quotient = 1:1
-  unsigned int dimension = 0;
-  for (dimension=0; dimension != ImageDimension; dimension++)
-  {
-    m_Numerators[dimension]=1;
-    m_Denominators[dimension]=1;
-  }
-
-  // Internal filter
-  m_ExpandFilter = ExpandFilterType::New();
-  m_ShrinkFilter = ShrinkFilterType::New();
-
-  m_ShrinkFilter->SetInput(m_ExpandFilter->GetOutput());
-
-}
-
-
-template <class TInputImage, class TOutputImage>
-void
-RationalQuotientResampleImageFilter<TInputImage,TOutputImage>
-::GenerateData()
-{
-  m_ExpandFilter->SetInput(this->GetInput());
-
-  // Set expand factors as the numerator
-  m_ExpandFilter->SetExpandFactors(m_Numerators);
-
-  // Set shrink factors as the denominator
-  m_ShrinkFilter->SetShrinkFactors(m_Denominators);
-
-  m_ShrinkFilter->GraftOutput(this->GetOutput());
-
-  m_ShrinkFilter->Update();
-  this->GraftOutput(m_ShrinkFilter->GetOutput());
-}
-
-template <class TInputImage, class TOutputImage>
-void
-RationalQuotientResampleImageFilter<TInputImage, TOutputImage>::
-PrintSelf( std::ostream& os, itk::Indent indent ) const
-{
-  Superclass::PrintSelf(os, indent);
-  os << indent << "Rational quotient factor (numerator:denominator) : ";
-  unsigned int dimension = 0;
-  for (dimension=0; dimension != ImageDimension; dimension++)
-  {
-    os << m_Numerators[dimension] << ":" << m_Denominators[dimension] << " ";
-  }
-  os << std::endl;
-}
-
-template <class TInputImage, class TOutputImage>
-void
-RationalQuotientResampleImageFilter<TInputImage, TOutputImage>::
-SetDenominatorFactors( const unsigned int denominator)
-{
-  unsigned int dimension = 0;
-  for (dimension=0; dimension!=ImageDimension; dimension++)
-  {
-    if (denominator < 1)
-    {
-      m_Denominators[dimension]=1;
-    }
-    else
-    {
-      m_Denominators[dimension] = denominator;
-    }
-  }
-}
-
-template <class TInputImage, class TOutputImage>
-void
-RationalQuotientResampleImageFilter<TInputImage, TOutputImage>::
-SetDenominatorFactors( const unsigned int* denominators)
-{
-  unsigned int dimension = 0;
-  for (dimension=0; dimension!=ImageDimension; dimension++)
-  {
-    if (denominators[dimension] < 1)
-    {
-      m_Denominators[dimension] = 1;
-    }
-    else
-    {
-      m_Denominators[dimension] = denominators[dimension];
-    }
-  }
-}
-
-template <class TInputImage, class TOutputImage>
-void
-RationalQuotientResampleImageFilter<TInputImage, TOutputImage>::
-SetDenominatorFactors( const unsigned int i, const unsigned int denominator)
-{
-  if (denominator < 1)
-  {
-    m_Denominators[i]=1;
-  }
-  else
-  {
-    m_Denominators[i] = denominator;
-  }
-}
-
-template <class TInputImage, class TOutputImage>
-void
-RationalQuotientResampleImageFilter<TInputImage, TOutputImage>::
-SetNumeratorFactors( const unsigned int numerator)
-{
-  unsigned int dimension = 0;
-  for (dimension=0; dimension!=ImageDimension; dimension++)
-  {
-    if (numerator < 1)
-    {
-      m_Numerators[dimension]=1;
-    }
-    else
-    {
-      m_Numerators[dimension] = numerator;
-    }
-  }
-}
-
-template <class TInputImage, class TOutputImage>
-void
-RationalQuotientResampleImageFilter<TInputImage, TOutputImage>::
-SetNumeratorFactors( const unsigned int* numerators)
-{
-  unsigned int dimension = 0;
-  for (dimension=0; dimension!=ImageDimension; dimension++)
-  {
-    if (numerators[dimension] < 1)
-    {
-      m_Numerators[dimension] = 1;
-    }
-    else
-    {
-      m_Numerators[dimension] = numerators[dimension];
-    }
-  }
-}
-
-template <class TInputImage, class TOutputImage>
-void
-RationalQuotientResampleImageFilter<TInputImage, TOutputImage>::
-SetNumeratorFactors( const unsigned int i, const unsigned int numerator)
-{
-  if (numerator < 1)
-  {
-    m_Numerators[i]=1;
-  }
-  else
-  {
-    m_Numerators[i] = numerator;
-  }
-}
-
-} // End namespace otb
-
-#endif
-
diff --git a/Examples/Filtering/CMakeLists.txt b/Examples/Filtering/CMakeLists.txt
index 1d82432903..e1a125601d 100644
--- a/Examples/Filtering/CMakeLists.txt
+++ b/Examples/Filtering/CMakeLists.txt
@@ -409,7 +409,7 @@ ADD_TEST(LaplacianRecursiveGaussianImageFilter1Test ${EXE_TESTS}
 	${INPUTDATA}/ROISpot5.png
 	${TEMP}/LaplacianRecursiveGaussianImageFilteroutput5.mha
         5
-	${TEMP}/LaplacianRecursiveGaussianImageFilterOutput5.png	
+	${TEMP}/LaplacianRecursiveGaussianImageFilterOutput5.png
 )
 
 # ------- LaplacianRecursiveGaussianImageFilter2Test----------
@@ -504,19 +504,6 @@ ADD_TEST(DerivativeImageFilterTest ${EXE_TESTS}
     1 0
 )
 
-# ------- RationalQuotientResampleImageFilterTest----------
-
-ADD_TEST(RationalQuotientResampleImageFilterTest ${EXE_TESTS}
-	--compare-n-images ${TOL} 1
-	${BASELINE}/RationalQuotientResampleImageFilterOutput.tif
-	${TEMP}/RationalQuotientResampleImageFilterOutput.tif
-	RationalQuotientResampleImageFilterTest
-	${INPUTDATA}/ROI_IKO_PAN_LesHalles.tif
-	${TEMP}/RationalQuotientResampleImageFilterOutput.tif
-	2 3
-)
-
-
 ADD_EXECUTABLE(otbFilteringExamplesTests otbFilteringExamplesTests.cxx)
 TARGET_LINK_LIBRARIES(otbFilteringExamplesTests  ITKAlgorithms ITKStatistics OTBBasicFilters OTBCommon OTBDisparityMap OTBIO OTBSpatialReasoning OTBChangeDetection OTBFeatureExtraction  OTBLearning  OTBMultiScale)
 
diff --git a/Examples/Filtering/RationalQuotientResampleImageFilter.cxx b/Examples/Filtering/RationalQuotientResampleImageFilter.cxx
deleted file mode 100644
index 4b904c3fa7..0000000000
--- a/Examples/Filtering/RationalQuotientResampleImageFilter.cxx
+++ /dev/null
@@ -1,86 +0,0 @@
-/*=========================================================================
-
-Program:   ORFEO Toolbox
-Language:  C++
-Date:      $Date$
-Version:   $Revision$
-
-
-Copyright (c) Centre National d'Etudes Spatiales. All rights reserved.
-See OTBCopyright.txt for details.
-
-
-This software is distributed WITHOUT ANY WARRANTY; without even
-the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
-PURPOSE.  See the above copyright notices for more information.
-
-=========================================================================*/
-#if defined(_MSC_VER)
-#pragma warning ( disable : 4786 )
-#endif
-
-#ifdef __BORLANDC__
-#define ITK_LEAN_AND_MEAN
-#endif
-
-//  Software Guide : BeginCommandLineArgs
-//    INPUTS: {ROI_IKO_PAN_LesHalles.tif}
-//    OUTPUTS: {RationalQuotientResampleImageFilterOutput.png}
-//    2 3
-//  Software Guide : EndCommandLineArgs
-
-#include "otbRationalQuotientResampleImageFilter.h"
-
-#include "otbImage.h"
-#include "otbImageFileReader.h"
-#include "otbImageFileWriter.h"
-
-int main(int argc, char* argv[])
-{
-
-  if ( argc < 5 )
-  {
-    std::cerr << "Usage: " << argv[0] << " inputImageFile ";
-    std::cerr << " outputImageFile expandFactor shrinkFactor" << std::endl;
-    return EXIT_FAILURE;
-  }
-
-  const char* inputName = argv[1];
-  const char* outputName = argv[2];
-  const unsigned int numerator = atoi(argv[3]);
-  const unsigned int denominator = atoi(argv[4]);
-
-  typedef float PixelType;
-  const unsigned int Dimension = 2;
-
-  typedef otb::Image<PixelType,Dimension> ImageType;
-
-  // Reader
-  typedef otb::ImageFileReader<ImageType> ReaderType;
-  // Writer
-  typedef otb::ImageFileWriter<ImageType> WriterType;
-
-  // Rational quotient resample
-  typedef otb::RationalQuotientResampleImageFilter<ImageType,ImageType> ResampleType;
-
-  // Instanciation object
-  ReaderType::Pointer reader = ReaderType::New();
-  WriterType::Pointer writer = WriterType::New();
-  ResampleType::Pointer resampler = ResampleType::New();
-
-  // Pipe reader and resampler
-  reader->SetFileName(inputName);
-  resampler->SetInput(reader->GetOutput());
-
-  // Set filter properties, eg rational quotient
-  resampler->SetNumeratorFactors(numerator);
-  resampler->SetDenominatorFactors(denominator);
-
-  // Pipe resampler and writer
-  writer->SetFileName(outputName);
-  writer->SetInput(resampler->GetOutput());
-
-  writer->Update();
-
-  return EXIT_SUCCESS;
-}
diff --git a/Examples/Filtering/otbFilteringExamplesTests.cxx b/Examples/Filtering/otbFilteringExamplesTests.cxx
index bf4b78ea62..0a9efc6757 100644
--- a/Examples/Filtering/otbFilteringExamplesTests.cxx
+++ b/Examples/Filtering/otbFilteringExamplesTests.cxx
@@ -40,7 +40,6 @@ void RegisterTests()
   REGISTER_TEST(MedianImageFilterTest);
   REGISTER_TEST(BinaryThresholdImageFilterTest);
   REGISTER_TEST(DerivativeImageFilterTest);
-  REGISTER_TEST(RationalQuotientResampleImageFilterTest);
 }
 
 #undef main
@@ -103,7 +102,3 @@ void RegisterTests()
 #define main DerivativeImageFilterTest
 #include "DerivativeImageFilter.cxx"
 
-#undef main
-#define main RationalQuotientResampleImageFilterTest
-#include "RationalQuotientResampleImageFilter.cxx"
-
diff --git a/Testing/Code/BasicFilters/CMakeLists.txt b/Testing/Code/BasicFilters/CMakeLists.txt
index 2016c58f67..a6b464e68e 100644
--- a/Testing/Code/BasicFilters/CMakeLists.txt
+++ b/Testing/Code/BasicFilters/CMakeLists.txt
@@ -760,22 +760,6 @@ ${INPUTDATA}/poupees.tif
 ${TEMP}/bfTvVectorImageToAmplitudeImageFilterOutput.tif
 )
 
-
-# -------    otb::RationalQuotientResampleImageFilter  --------------------------
-
-ADD_TEST(bfTuRationalQuotientResampleImageFilterNew ${BASICFILTERS_TESTS7}
-         otbRationalQuotientResampleImageFilterNew)
-
-ADD_TEST(bfTvRationalQuotientResampleImageFilter ${BASICFILTERS_TESTS7}
-	--compare-image ${EPSILON}
-			${BASELINE}/bfTvRationalQuotientResampleImageFilterOutput.tif
-			${TEMP}/bfTvRationalQuotientResampleImageFilterOutput.tif
-        otbRationalQuotientResampleImageFilter
-		${INPUTDATA}/ROI_IKO_PAN_LesHalles.tif
-		${TEMP}/bfTvRationalQuotientResampleImageFilterOutput.tif
-		2 3
-)
-
 # -------            otb::VectorImageToIntensityImageFilter   ----------------------------
 
   ADD_TEST(bfTuVectorImageToIntensityImageFilterNew ${BASICFILTERS_TESTS7}
@@ -1573,8 +1557,6 @@ otbWindowedSincInterpolateImageBlackmanFunction.cxx
 otbProlateValidationTest.cxx
 otbVectorImageToAmplitudeImageFilterNew.cxx
 otbVectorImageToAmplitudeImageFilter.cxx
-otbRationalQuotientResampleImageFilterNew.cxx
-otbRationalQuotientResampleImageFilter.cxx
 otbVectorImageToIntensityImageFilterNew.cxx
 otbVectorImageToIntensityImageFilter.cxx
 )
diff --git a/Testing/Code/BasicFilters/otbBasicFiltersTests7.cxx b/Testing/Code/BasicFilters/otbBasicFiltersTests7.cxx
index 21b8b00a24..f32c24d7c4 100644
--- a/Testing/Code/BasicFilters/otbBasicFiltersTests7.cxx
+++ b/Testing/Code/BasicFilters/otbBasicFiltersTests7.cxx
@@ -38,8 +38,6 @@ void RegisterTests()
   REGISTER_TEST(otbProlateValidationTest);
   REGISTER_TEST(otbVectorImageToAmplitudeImageFilterNew);
   REGISTER_TEST(otbVectorImageToAmplitudeImageFilter);
-  REGISTER_TEST(otbRationalQuotientResampleImageFilterNew);
-  REGISTER_TEST(otbRationalQuotientResampleImageFilter);
   REGISTER_TEST(otbVectorImageToIntensityImageFilterNew);
   REGISTER_TEST(otbVectorImageToIntensityImageFilter);
 }
diff --git a/Testing/Code/BasicFilters/otbRationalQuotientResampleImageFilter.cxx b/Testing/Code/BasicFilters/otbRationalQuotientResampleImageFilter.cxx
deleted file mode 100644
index 294ce3a2be..0000000000
--- a/Testing/Code/BasicFilters/otbRationalQuotientResampleImageFilter.cxx
+++ /dev/null
@@ -1,63 +0,0 @@
-/*=========================================================================
-
-Program:   ORFEO Toolbox
-Language:  C++
-Date:      $Date$
-Version:   $Revision$
-
-
-Copyright (c) Centre National d'Etudes Spatiales. All rights reserved.
-See OTBCopyright.txt for details.
-
-
-This software is distributed WITHOUT ANY WARRANTY; without even
-the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
-PURPOSE.  See the above copyright notices for more information.
-
-=========================================================================*/
-#include "otbRationalQuotientResampleImageFilter.h"
-#include "otbImage.h"
-#include "otbImageFileReader.h"
-#include "otbImageFileWriter.h"
-
-int otbRationalQuotientResampleImageFilter(int argc, char* argv[])
-{
-  const char* inputName = argv[1];
-  const char* outputName = argv[2];
-  const unsigned int numerator = atoi(argv[3]);
-  const unsigned int denominator = atoi(argv[4]);
-
-  typedef float PixelType;
-  const unsigned int Dimension = 2;
-
-  typedef otb::Image<PixelType,Dimension> ImageType;
-
-  // Reader
-  typedef otb::ImageFileReader<ImageType> ReaderType;
-  // Writer
-  typedef otb::ImageFileWriter<ImageType> WriterType;
-
-  // Rational quotient resample
-  typedef otb::RationalQuotientResampleImageFilter<ImageType,ImageType> ResampleType;
-
-  // Instanciation object
-  ReaderType::Pointer reader = ReaderType::New();
-  WriterType::Pointer writer = WriterType::New();
-  ResampleType::Pointer resampler = ResampleType::New();
-
-  // Pipe reader and resampler
-  reader->SetFileName(inputName);
-  resampler->SetInput(reader->GetOutput());
-
-  // Set filter properties, eg rational quotient
-  resampler->SetNumeratorFactors(numerator);
-  resampler->SetDenominatorFactors(denominator);
-
-  // Pipe resampler and writer
-  writer->SetFileName(outputName);
-  writer->SetInput(resampler->GetOutput());
-
-  writer->Update();
-
-  return EXIT_SUCCESS;
-}
diff --git a/Testing/Code/BasicFilters/otbRationalQuotientResampleImageFilterNew.cxx b/Testing/Code/BasicFilters/otbRationalQuotientResampleImageFilterNew.cxx
deleted file mode 100644
index 5165245c55..0000000000
--- a/Testing/Code/BasicFilters/otbRationalQuotientResampleImageFilterNew.cxx
+++ /dev/null
@@ -1,35 +0,0 @@
-/*=========================================================================
-
-  Program:   ORFEO Toolbox
-  Language:  C++
-  Date:      $Date$
-  Version:   $Revision$
-
-
-  Copyright (c) Centre National d'Etudes Spatiales. All rights reserved.
-  See OTBCopyright.txt for details.
-
-
-  This software is distributed WITHOUT ANY WARRANTY; without even
-  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
-  PURPOSE.  See the above copyright notices for more information.
-
-=========================================================================*/
-#include "otbRationalQuotientResampleImageFilter.h"
-#include "otbImage.h"
-
-int otbRationalQuotientResampleImageFilterNew( int argc, char* argv[] )
-{
-  typedef float PixelType;
-  const unsigned int Dimension = 2;
-
-  // Rational quotient resample
-  typedef otb::Image<PixelType,Dimension> ImageType;
-  typedef otb::RationalQuotientResampleImageFilter<ImageType,ImageType> ResampleType;
-  typedef ResampleType::Pointer ResamplePointerType;
-
-  // Instanciation object
-  ResamplePointerType rersample = ResampleType::New();
-
-  return EXIT_SUCCESS;
-}
-- 
GitLab