Skip to content

COMP: Remove unused InputPixelType aliases in CopyIterationBenchmark#115

Merged
hjmjohnson merged 1 commit intoInsightSoftwareConsortium:masterfrom
hjmjohnson:fix-unused-local-typedef
Apr 24, 2026
Merged

COMP: Remove unused InputPixelType aliases in CopyIterationBenchmark#115
hjmjohnson merged 1 commit intoInsightSoftwareConsortium:masterfrom
hjmjohnson:fix-unused-local-typedef

Conversation

@hjmjohnson
Copy link
Copy Markdown
Member

Remove two unused `using InputPixelType = typename TInputImage::PixelType;` declarations in `CopyRegionIterator` and `CopyScanlineIterator`. The other benchmark methods still use the alias and are unchanged.

Warning being fixed

```
itkCopyIterationBenchmark.cxx:78:9: warning: unused type alias 'InputPixelType' [-Wunused-local-typedef]
itkCopyIterationBenchmark.cxx:101:9: warning: unused type alias 'InputPixelType' [-Wunused-local-typedef]
```
(line numbers from the ITK Remote-Modules build tree; direct sources are lines 119 and 142.)

CopyRegionIterator and CopyScanlineIterator declared InputPixelType
but never referenced it, triggering -Wunused-local-typedef. Other
methods (CopyMemcpy, CopyImageRegionRange) still use the alias where
it is needed and are left unchanged.
@hjmjohnson hjmjohnson marked this pull request as ready for review April 24, 2026 16:51
@hjmjohnson hjmjohnson merged commit 63fec30 into InsightSoftwareConsortium:master Apr 24, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants