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
COMP: Remove unused topCluster
var from FiberTractMeasurements
#220
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The ivar topCluster
was originally introduced in 798a1e5 (ENH: FBTractMeasurement: by default, print only specified hierarchy.) and became obsolete in 9bdd1d3 (FBTractMsr: correctly fix #36: by default print top and cluster groups, but not fiberbundles).
Consider removing the lines instead of commenting.
Suggested commit message:
|
6099930
to
6290dff
Compare
topCluster
var from FiberTractMeasurements
I suggest to avoid including the following in the commit message:
Since the buildid corresponding to |
I am aware of that, but for the moment when/few weeks around a commit tries to address an issue, to me it is essential that we can openly see which the issue is or where it has been observed. And I dislike using GitHub comments to mention things that are integral to the history of the code, as we cannot see them in the git history. |
Indeed, my understanding is that the warning copied in the commit message fulfills this role providing the context and the exact same information that is reported on CDash. In practice, adding the a CDash link that becomes obsolete will mislead developers ...(Why is the link not working ? Is the server broken ? ...) Adding something like this would be much more explicit:
|
I prefer to keep the link and be open about the context and reproducibility of the error. It is helpful at the time of reviewing a PR. |
In the commit message, I then suggest to include something like this:
Exactly, while submitting the PR you then add a line like:
|
6290dff
to
aee785a
Compare
Fix the unused `topCluster` variable warning in `FiberTractMeasurements`: remove the variable. The `topCluster` variable was originally introduced in 798a1e5 and its use became no longer necessary in 9bdd1d3, where it was left behind. Fixes: ``` Modules/CLI/FiberTractMeasurements/FiberTractMeasurements.cxx:563:10: warning: variable ‘topCluster’ set but not used [-Wunused-but-set-variable] bool topCluster = true; ^~~~~~~~~~ ``` reported on the 3D Slicer CDash server in the context of `preview` builds on CentOS 7 with GCC 7: https://slicer.cdash.org/viewBuildError.php?type=1&buildid=3210886
aee785a
to
9da3148
Compare
Warnings are gone; test failures are expected. |
Fix the unused
topCluster
variable warning inFiberTractMeasurements
: remove the variable.The
topCluster
variable was originally introduced in 798a1e5 and its use became no longer necessary in 9bdd1d3, where it was left behind.Fixes:
reported on the 3D Slicer CDash server in the context of
preview
builds on CentOS 7 with GCC 7:https://slicer.cdash.org/viewBuildError.php?type=1&buildid=3210886