The closest_index function seems to have been copy pasted into three different places, consolidating them under one common header file. Moving another unnamed namespace function into the new common header file as well.
Pull request type
Please check the type of change introduced:
[ ] Bugfix
[ ] Feature
[ ] Code style update (formatting, renaming)
[x] Refactoring (no functional changes, no api changes)
Summary
The
closest_index
function seems to have been copy pasted into three different places, consolidating them under one common header file. Moving another unnamed namespace function into the new common header file as well.Pull request type
Please check the type of change introduced:
Checklist
The following is included:
This PR was tested by running: