Skip to content

Commit d2ff311

Browse files
jhlegarretadzenanz
authored andcommitted
ENH: Remove ivar memberless/static-only class PrinSelf
Remove `PrinSelf` re-implementations in classes that: - do not contain instance variable members: their parent class re-implementation prints the necessary information. - contain only static variable members.
1 parent 6919764 commit d2ff311

30 files changed

+0
-207
lines changed

Modules/Core/Common/include/itkNeighborhoodIterator.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -254,10 +254,6 @@ class ITK_TEMPLATE_EXPORT NeighborhoodIterator : public ConstNeighborhoodIterato
254254
: Superclass(radius, ptr, region)
255255
{}
256256

257-
/** Standard print method */
258-
void
259-
PrintSelf(std::ostream &, Indent) const override;
260-
261257
/** Returns the central memory pointer of the neighborhood. */
262258
InternalPixelType *
263259
GetCenterPointer()

Modules/Core/Common/include/itkNeighborhoodIterator.hxx

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -143,15 +143,6 @@ NeighborhoodIterator<TImage, TBoundaryCondition>::SetPixel(const unsigned int n,
143143
}
144144
}
145145

146-
template <typename TImage, typename TBoundaryCondition>
147-
void
148-
NeighborhoodIterator<TImage, TBoundaryCondition>::PrintSelf(std::ostream & os, Indent indent) const
149-
{
150-
os << indent;
151-
os << "NeighborhoodIterator {this= " << this << "}" << std::endl;
152-
Superclass::PrintSelf(os, indent.GetNextIndent());
153-
}
154-
155146
template <typename TImage, typename TBoundaryCondition>
156147
void
157148
NeighborhoodIterator<TImage, TBoundaryCondition>::SetNeighborhood(const NeighborhoodType & N)

Modules/Core/Common/include/itkShapedNeighborhoodIterator.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -238,10 +238,6 @@ class ITK_TEMPLATE_EXPORT ShapedNeighborhoodIterator
238238
return *this;
239239
}
240240

241-
/** Standard itk print method */
242-
void
243-
PrintSelf(std::ostream &, Indent) const override;
244-
245241
/** Returns a const iterator for the neighborhood which points to the first
246242
* pixel in the neighborhood. */
247243
Iterator
@@ -265,8 +261,4 @@ class ITK_TEMPLATE_EXPORT ShapedNeighborhoodIterator
265261
};
266262
} // namespace itk
267263

268-
#ifndef ITK_MANUAL_INSTANTIATION
269-
# include "itkShapedNeighborhoodIterator.hxx"
270-
#endif
271-
272264
#endif

Modules/Core/Common/include/itkShapedNeighborhoodIterator.hxx

Lines changed: 0 additions & 31 deletions
This file was deleted.

Modules/Core/ImageFunction/include/itkVectorLinearInterpolateImageFunction.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,6 @@ class ITK_TEMPLATE_EXPORT VectorLinearInterpolateImageFunction
9494
protected:
9595
VectorLinearInterpolateImageFunction() = default;
9696
~VectorLinearInterpolateImageFunction() override = default;
97-
void
98-
PrintSelf(std::ostream & os, Indent indent) const override;
9997

10098
private:
10199
/** Number of neighbors used in the interpolation */

Modules/Core/ImageFunction/include/itkVectorLinearInterpolateImageFunction.hxx

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,6 @@ template <typename TInputImage, typename TCoordRep>
3030
const unsigned long VectorLinearInterpolateImageFunction<TInputImage, TCoordRep>::m_Neighbors =
3131
1 << TInputImage::ImageDimension;
3232

33-
/**
34-
* PrintSelf
35-
*/
36-
template <typename TInputImage, typename TCoordRep>
37-
void
38-
VectorLinearInterpolateImageFunction<TInputImage, TCoordRep>::PrintSelf(std::ostream & os, Indent indent) const
39-
{
40-
this->Superclass::PrintSelf(os, indent);
41-
}
4233

4334
/**
4435
* Evaluate at image index position

Modules/Core/ImageFunction/include/itkVectorLinearInterpolateNearestNeighborExtrapolateImageFunction.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,6 @@ class ITK_TEMPLATE_EXPORT VectorLinearInterpolateNearestNeighborExtrapolateImage
137137
VectorLinearInterpolateNearestNeighborExtrapolateImageFunction() = default;
138138
~VectorLinearInterpolateNearestNeighborExtrapolateImageFunction() override = default;
139139

140-
void
141-
PrintSelf(std::ostream & os, Indent indent) const override;
142-
143140
private:
144141
/** Number of neighbors used in the interpolation */
145142
static const unsigned int m_Neighbors;

Modules/Core/ImageFunction/include/itkVectorLinearInterpolateNearestNeighborExtrapolateImageFunction.hxx

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,6 @@ template <typename TInputImage, typename TCoordRep>
3030
const unsigned int VectorLinearInterpolateNearestNeighborExtrapolateImageFunction<TInputImage, TCoordRep>::m_Neighbors =
3131
1 << TInputImage::ImageDimension;
3232

33-
/**
34-
* PrintSelf
35-
*/
36-
template <typename TInputImage, typename TCoordRep>
37-
void
38-
VectorLinearInterpolateNearestNeighborExtrapolateImageFunction<TInputImage, TCoordRep>::PrintSelf(std::ostream & os,
39-
Indent indent) const
40-
{
41-
this->Superclass::PrintSelf(os, indent);
42-
}
43-
4433
/**
4534
* Evaluate at image index position
4635
*/

Modules/Core/SpatialObjects/include/itkDTITubeSpatialObject.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,6 @@ class ITK_TEMPLATE_EXPORT DTITubeSpatialObject
7272
DTITubeSpatialObject();
7373
~DTITubeSpatialObject() override = default;
7474

75-
/** Method to print the object.*/
76-
void
77-
PrintSelf(std::ostream & os, Indent indent) const override;
78-
7975
typename LightObject::Pointer
8076
InternalClone() const override;
8177
};

Modules/Core/SpatialObjects/include/itkDTITubeSpatialObject.hxx

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,6 @@ DTITubeSpatialObject<TDimension>::InternalClone() const
4646
return loPtr;
4747
}
4848

49-
/** Print the object */
50-
template <unsigned int TDimension>
51-
void
52-
DTITubeSpatialObject<TDimension>::PrintSelf(std::ostream & os, Indent indent) const
53-
{
54-
os << indent << "DTITubeSpatialObject(" << this << ")" << std::endl;
55-
Superclass::PrintSelf(os, indent);
56-
}
5749
} // end namespace itk
5850

5951
#endif // end itkDTITubeSpatialObject_hxx

0 commit comments

Comments
 (0)