Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

STYLE: Move empty const member functions from .hxx to .h #5221

Conversation

N-Dekker
Copy link
Contributor

@N-Dekker N-Dekker commented Feb 6, 2025

Moved the member function definitions of constmember functions that have an empty member function definition from their "itk*.hxx" file to the corresponding "itk*.h" file, and into their class definition.

Found by regular expression ^..[^:,].+\) const\r\n{} in "itk*.hxx" files.

Moved the member function definitions of `const`member functions that have an empty
member function definition from their "itk*.hxx" file to the corresponding
"itk*.h" file, and into their class definition.

Found by regular expression `^..[^:,].+\) const\r\n{}` in "itk*.hxx" files.

- Follow-up to pull request InsightSoftwareConsortium#5198
commit b94770d
"STYLE: Move empty member functions with empty param list from .hxx to .h"
@github-actions github-actions bot added area:Filtering Issues affecting the Filtering module area:Registration Issues affecting the Registration module type:Style Style changes: no logic impact (indentation, comments, naming) labels Feb 6, 2025
Comment on lines +93 to +95
GetDerivative(const TransformParametersType & itkNotUsed(parameters),
DerivativeType & itkNotUsed(derivative)) const override
{}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It appears that EuclideanDistancePointMetric::GetDerivative has always been empty, looking at commit 06e94a2 (10 Oct 2004):

EuclideanDistancePointMetric<TFixedPointSet,TMovingPointSet,TDistanceMap>
::GetDerivative( const TransformParametersType & itkNotUsed(parameters),
DerivativeType & itkNotUsed(derivative) ) const
{
}

Just curious, was it still meant to be implemented? Or was it intentionally left empty?

@N-Dekker N-Dekker marked this pull request as ready for review February 6, 2025 20:30
@dzenanz dzenanz merged commit a6f7191 into InsightSoftwareConsortium:master Feb 7, 2025
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:Filtering Issues affecting the Filtering module area:Registration Issues affecting the Registration module type:Style Style changes: no logic impact (indentation, comments, naming)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants