From 1b7a4d22965c1886e94a7d509c548293cb577e18 Mon Sep 17 00:00:00 2001 From: ctraizet <cedric.traizet@c-s.fr> Date: Tue, 19 Mar 2019 11:54:15 +0100 Subject: [PATCH] ENH: remove itkNotUsed --- .../Applications/AppClassification/app/otbZonalStatistics.cxx | 2 +- .../Applications/AppFiltering/app/otbContrastEnhancement.cxx | 2 +- Modules/Applications/AppImageUtils/app/otbColorMapping.cxx | 2 +- .../AppSegmentation/app/otbHooverCompareSegmentation.cxx | 2 +- .../Projection/include/otbProjectiveProjectionImageFilter.hxx | 2 +- .../Unmixing/include/otbISRAUnmixingImageFilter.hxx | 2 +- .../Unmixing/include/otbNCLSUnmixingImageFilter.hxx | 2 +- .../Unmixing/include/otbUnConstrainedLeastSquareImageFilter.hxx | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Modules/Applications/AppClassification/app/otbZonalStatistics.cxx b/Modules/Applications/AppClassification/app/otbZonalStatistics.cxx index 452ddfd344..1697e13bde 100644 --- a/Modules/Applications/AppClassification/app/otbZonalStatistics.cxx +++ b/Modules/Applications/AppClassification/app/otbZonalStatistics.cxx @@ -93,7 +93,7 @@ public: static constexpr size_t m_NbStatsPerBand{4}; static constexpr size_t m_NbGlobalStats{1}; - size_t OutputSize(const std::array<size_t,1> & itkNotUsed(nbBands)) const + size_t OutputSize(const std::array<size_t,1> & ) const { return m_NbInputComponents*m_NbStatsPerBand+m_NbGlobalStats; } diff --git a/Modules/Applications/AppFiltering/app/otbContrastEnhancement.cxx b/Modules/Applications/AppFiltering/app/otbContrastEnhancement.cxx index 5cfe775105..4a1bc5880b 100644 --- a/Modules/Applications/AppFiltering/app/otbContrastEnhancement.cxx +++ b/Modules/Applications/AppFiltering/app/otbContrastEnhancement.cxx @@ -52,7 +52,7 @@ class LuminanceOperator public: LuminanceOperator() = default; - size_t OutputSize(const std::array<size_t,1> & itkNotUsed(nbBands)) const + size_t OutputSize(const std::array<size_t,1> &) const { return 1; } diff --git a/Modules/Applications/AppImageUtils/app/otbColorMapping.cxx b/Modules/Applications/AppImageUtils/app/otbColorMapping.cxx index fd3f218407..b34512b1cc 100644 --- a/Modules/Applications/AppImageUtils/app/otbColorMapping.cxx +++ b/Modules/Applications/AppImageUtils/app/otbColorMapping.cxx @@ -93,7 +93,7 @@ public: m_OutputSize = nb; } - size_t OutputSize(const std::array<size_t,1> & itkNotUsed(nbBands)) const + size_t OutputSize(const std::array<size_t,1> & ) const { return m_OutputSize; } diff --git a/Modules/Applications/AppSegmentation/app/otbHooverCompareSegmentation.cxx b/Modules/Applications/AppSegmentation/app/otbHooverCompareSegmentation.cxx index 86f6ba709a..8f39edc15f 100644 --- a/Modules/Applications/AppSegmentation/app/otbHooverCompareSegmentation.cxx +++ b/Modules/Applications/AppSegmentation/app/otbHooverCompareSegmentation.cxx @@ -43,7 +43,7 @@ public: typedef std::vector<TOutput> ColorListType; - size_t OutputSize(const std::array<size_t,1> & itkNotUsed(nbBands)) const + size_t OutputSize(const std::array<size_t,1> &) const { return 3; } diff --git a/Modules/Filtering/Projection/include/otbProjectiveProjectionImageFilter.hxx b/Modules/Filtering/Projection/include/otbProjectiveProjectionImageFilter.hxx index 93793ad742..624cba13be 100644 --- a/Modules/Filtering/Projection/include/otbProjectiveProjectionImageFilter.hxx +++ b/Modules/Filtering/Projection/include/otbProjectiveProjectionImageFilter.hxx @@ -31,7 +31,7 @@ namespace Functor template <class TInput, class TOutput, class TPrecision> size_t ProjectiveProjectionFunctor<TInput, TOutput, TPrecision> -::OutputSize(const std::array<size_t,1> & itkNotUsed(nbBands)) const +::OutputSize(const std::array<size_t,1> &) const { return m_OutputSize; } diff --git a/Modules/Hyperspectral/Unmixing/include/otbISRAUnmixingImageFilter.hxx b/Modules/Hyperspectral/Unmixing/include/otbISRAUnmixingImageFilter.hxx index de35f75230..210779e5ff 100644 --- a/Modules/Hyperspectral/Unmixing/include/otbISRAUnmixingImageFilter.hxx +++ b/Modules/Hyperspectral/Unmixing/include/otbISRAUnmixingImageFilter.hxx @@ -41,7 +41,7 @@ ISRAUnmixingFunctor<TInput, TOutput, TPrecision> template <class TInput, class TOutput, class TPrecision> size_t ISRAUnmixingFunctor<TInput, TOutput, TPrecision> -::OutputSize(const std::array<size_t,1> & itkNotUsed(nbBands)) const +::OutputSize(const std::array<size_t,1> & ) const { return m_OutputSize; } diff --git a/Modules/Hyperspectral/Unmixing/include/otbNCLSUnmixingImageFilter.hxx b/Modules/Hyperspectral/Unmixing/include/otbNCLSUnmixingImageFilter.hxx index 95c877be3a..fc36006d07 100644 --- a/Modules/Hyperspectral/Unmixing/include/otbNCLSUnmixingImageFilter.hxx +++ b/Modules/Hyperspectral/Unmixing/include/otbNCLSUnmixingImageFilter.hxx @@ -41,7 +41,7 @@ NCLSUnmixingFunctor<TInput, TOutput, TPrecision> template <class TInput, class TOutput, class TPrecision> size_t NCLSUnmixingFunctor<TInput, TOutput, TPrecision> -::OutputSize(const std::array<size_t,1> & itkNotUsed(nbBands)) const +::OutputSize(const std::array<size_t,1> &) const { return m_OutputSize; } diff --git a/Modules/Hyperspectral/Unmixing/include/otbUnConstrainedLeastSquareImageFilter.hxx b/Modules/Hyperspectral/Unmixing/include/otbUnConstrainedLeastSquareImageFilter.hxx index 4d939d2569..5749397ef2 100644 --- a/Modules/Hyperspectral/Unmixing/include/otbUnConstrainedLeastSquareImageFilter.hxx +++ b/Modules/Hyperspectral/Unmixing/include/otbUnConstrainedLeastSquareImageFilter.hxx @@ -31,7 +31,7 @@ namespace Functor template <class TInput, class TOutput, class TPrecision> size_t UnConstrainedLeastSquareFunctor<TInput, TOutput, TPrecision> -::OutputSize(const std::array<size_t,1> & itkNotUsed(nbBands)) const +::OutputSize(const std::array<size_t,1> & ) const { return m_OutputSize; } -- GitLab