Skip to content

Commit 63fec30

Browse files
committed
COMP: Drop unused InputPixelType typedefs in CopyIterationBenchmark
CopyRegionIterator and CopyScanlineIterator (examples/Core/itkCopyIterationBenchmark.cxx) each declared a local `using InputPixelType = typename TInputImage::PixelType;` that was never referenced — the loop bodies cast directly via `static_cast<OutputPixelType>(inputIt.Get())`, so InputPixelType is dead. Triggers -Wunused-local-typedefs at lines 119 and 142 under gcc. Remove the two unused typedefs; the other two functions in this file (CopyImageRegionRange, and the * / * typed-copy variant at line 187) legitimately use both InputPixelType and OutputPixelType and are left unchanged.
1 parent b24324f commit 63fec30

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

examples/Core/itkCopyIterationBenchmark.cxx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,6 @@ template <typename TInputImage, typename TOutputImage>
116116
void
117117
CopyRegionIterator(const TInputImage * inputPtr, TOutputImage * outputPtr)
118118
{
119-
using InputPixelType = typename TInputImage::PixelType;
120119
using OutputPixelType = typename TOutputImage::PixelType;
121120
using ImageRegionConstIterator = itk::ImageRegionConstIterator<TInputImage>;
122121
using ImageRegionIterator = itk::ImageRegionIterator<TOutputImage>;
@@ -139,7 +138,6 @@ template <typename TInputImage, typename TOutputImage>
139138
void
140139
CopyScanlineIterator(const TInputImage * inputPtr, TOutputImage * outputPtr)
141140
{
142-
using InputPixelType = typename TInputImage::PixelType;
143141
using OutputPixelType = typename TOutputImage::PixelType;
144142
using ImageScanlineConstIterator = itk::ImageScanlineConstIterator<TInputImage>;
145143
using ImageScanlineIterator = itk::ImageScanlineIterator<TOutputImage>;

0 commit comments

Comments
 (0)