Skip to content

Remove unnecessary private m_NumberOfPixelsCounted data members #1310

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

Merged
merged 2 commits into from
Mar 27, 2025

Conversation

N-Dekker
Copy link
Member

ComputeDisplacementDistribution::m_NumberOfPixelsCounted was only used in its AfterThreadedCompute member function, so it could be replaced by a local variable.

AdvancedImageMomentsCalculator::m_NumberOfPixelsCounted was always just zero, and it was never used.

Replaced this private member variable with a local variable `numberOfPixelsCounted`.

Following C++ Core Guidelines, Oct 3, 2024 C++ Core Guidelines, "Keep scopes small", https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#es5-keep-scopes-small
This private member variable just wasn't used anywhere.
@N-Dekker N-Dekker merged commit e4e7121 into main Mar 27, 2025
7 of 8 checks passed
@N-Dekker N-Dekker deleted the Remove-m_NumberOfPixelsCounted branch March 27, 2025 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant