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
Remove unused vars in multiple pkgs #21221
Conversation
The code-checks are being triggered in jenkins. |
please test |
+code-checks |
The tests are being triggered in jenkins. |
A new Pull Request was created by @mrodozov for master. It involves the following packages: L1Trigger/L1TCalorimeter @civanch, @Dr15Jones, @vazzolini, @kmaeshima, @ianna, @mdhildreth, @dmitrijus, @cmsbuild, @rekovic, @jfernan2, @vanbesien, @monttj, @mulhearn can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
@@ -166,8 +166,6 @@ double LumiReWeighting::weight( const edm::EventBase &e ) { | |||
|
|||
for(; PHist_iter<PHist.end() ;++PHist_iter) { | |||
edm::ProcessConfiguration PConf = *(PHist_iter); | |||
const edm::ReleaseVersion& Release = PConf.releaseVersion() ; |
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.
@mdhildreth - please, have a look. Thanks.
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.
indeed, these loops appear to make no sense..
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.
With this change PConf
is now an unused variable.
I checked, and non of the functions called in this loop have side-effects, so there is no useful work being done.
On the other hand, the call to e.processHistory()
can throw if there is a problem.
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.
I'm updating the PR then
+1 The following merge commits were also included on top of IB + this PR after doing git cms-merge-topic: |
Comparison job queued. |
@@ -166,8 +166,6 @@ double LumiReWeighting::weight( const edm::EventBase &e ) { | |||
|
|||
for(; PHist_iter<PHist.end() ;++PHist_iter) { | |||
edm::ProcessConfiguration PConf = *(PHist_iter); | |||
const edm::ReleaseVersion& Release = PConf.releaseVersion() ; |
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.
With this change PConf
is now an unused variable.
I checked, and non of the functions called in this loop have side-effects, so there is no useful work being done.
On the other hand, the call to e.processHistory()
can throw if there is a problem.
Comparison is ready @slava77 comparisons for the following workflows were not done due to missing matrix map:
Comparison Summary:
|
The code-checks are being triggered in jenkins. |
+code-checks |
Pull request #21221 was updated. @civanch, @Dr15Jones, @vazzolini, @kmaeshima, @ianna, @mdhildreth, @dmitrijus, @cmsbuild, @rekovic, @jfernan2, @vanbesien, @monttj, @mulhearn can you please check and sign again. |
please test |
The tests are being triggered in jenkins. |
+1 The following merge commits were also included on top of IB + this PR after doing git cms-merge-topic: |
Comparison job queued. |
Comparison is ready Comparison Summary:
|
+1 |
merge |
Remove unused vars from three packages. Note that the changes here:
https://github.com/cms-sw/cmssw/blob/master/PhysicsTools/Utilities/src/LumiReWeighting.cc#L169
and here
https://github.com/cms-sw/cmssw/blob/master/PhysicsTools/Utilities/src/LumiReWeighting.cc#L221
are leaving the for loops without obvious purpose (from a glance) yet there was no comp warning for PConf being unused (not sure why), so I'll leave them (the loops) as they are.