From 615ce5edebba09f8ca666543b52d6b4f3a27e48b Mon Sep 17 00:00:00 2001 From: Remi Cresson <remi.cresson@irstea.fr> Date: Sat, 7 Jul 2018 12:23:21 +0000 Subject: [PATCH] REFAC: remove useless switch for output type --- .../otbStreamingStatisticsMapFromLabelImageFilter.hxx | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/Modules/Filtering/Statistics/include/otbStreamingStatisticsMapFromLabelImageFilter.hxx b/Modules/Filtering/Statistics/include/otbStreamingStatisticsMapFromLabelImageFilter.hxx index f55b76cc2d..30710e26c5 100644 --- a/Modules/Filtering/Statistics/include/otbStreamingStatisticsMapFromLabelImageFilter.hxx +++ b/Modules/Filtering/Statistics/include/otbStreamingStatisticsMapFromLabelImageFilter.hxx @@ -54,14 +54,7 @@ typename itk::DataObject::Pointer PersistentStreamingStatisticsMapFromLabelImageFilter<TInputVectorImage, TLabelImage> ::MakeOutput(DataObjectPointerArraySizeType output) { - switch (output) - { - case 1: [[fallthrough]]; // [[fallthrough]] is a C++17 attribute that'll simply be ignored in C++11-14 - case 2: [[fallthrough]]; - case 3: [[fallthrough]]; - case 4: - return static_cast<itk::DataObject*>(PixelValueMapObjectType::New().GetPointer()); - } + return static_cast<itk::DataObject*>(PixelValueMapObjectType::New().GetPointer()); } template<class TInputVectorImage, class TLabelImage> -- GitLab