SuperElastix / elastix

Official elastix repository
http://elastix.dev
Apache License 2.0
474 stars 116 forks source link

COMP: Remove unused function ComputeDistributionTermsUsingSearchDir #1130

Closed N-Dekker closed 4 months ago

N-Dekker commented 4 months ago

This ComputePreconditionerUsingDisplacementDistribution member function is protected, it is never overridden and never called. And it just throws an exception.

It caused warnings from GCC, like:

warning: unused parameter 'mu' [-Wunused-parameter]

The member function was introduced with commit 70829754af29b92cb34be5997cda8216eaf6be8c "ENH: merging performance into develop branch", 7 Mar 2019.


Just checked: ITK does not have a function named "ComputePreconditionerUsingDisplacementDistribution" either.