Skip to content

Commit b50207f

Browse files
N-Dekkerhjmjohnson
authored andcommitted
STYLE: Remove private ImageScanlineConstIterator member Increment()
`ImageScanlineConstIterator::Increment()` was only called once, by `ImageScanlineConstIterator::NextLine()`.
1 parent 142e254 commit b50207f

File tree

2 files changed

+3
-12
lines changed

2 files changed

+3
-12
lines changed

Modules/Core/Common/include/itkImageScanlineConstIterator.h

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -226,11 +226,8 @@ class ITK_TEMPLATE_EXPORT ImageScanlineConstIterator : public ImageConstIterator
226226
* \sa operator++
227227
* \sa IsAtEndOfLine
228228
*/
229-
inline void
230-
NextLine()
231-
{
232-
this->Increment();
233-
};
229+
void
230+
NextLine();
234231

235232
/** Increment (prefix) along the scanline the iterator's index.
236233
*
@@ -262,12 +259,6 @@ class ITK_TEMPLATE_EXPORT ImageScanlineConstIterator : public ImageConstIterator
262259
protected:
263260
OffsetValueType m_SpanBeginOffset; // one pixel the beginning of the scanline
264261
OffsetValueType m_SpanEndOffset; // one pixel past the end of the scanline
265-
266-
private:
267-
/* Move to the beginning of the next scanline
268-
*/
269-
void
270-
Increment();
271262
};
272263
} // end namespace itk
273264

Modules/Core/Common/include/itkImageScanlineConstIterator.hxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ namespace itk
2424

2525
template <typename TImage>
2626
void
27-
ImageScanlineConstIterator<TImage>::Increment()
27+
ImageScanlineConstIterator<TImage>::NextLine()
2828
{
2929
// increment to the next scanline
3030

0 commit comments

Comments
 (0)