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
Fix multiple comp warnings for unused variables #20841
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -106,7 +106,6 @@ class FilterPFCandByParticleId { | |
id_(particleId){}; | ||
template<typename PFCandCompatiblePtrType> | ||
bool operator()(const PFCandCompatiblePtrType& ptr) const { | ||
const PFCandidatePtr& pfptr(ptr); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @roger-wolf (just checking): wasn't this meant to check the particleId() of a PFCandidate (i.e. the particle type) even in case of different particleId() methods implemented for a generic PFCandCompatiblePtrType (that could even be pdgId instead of particle type)? If so, the fix shold be returning here Otherwise, removing this line is perfectly fine. |
||
return ptr->particleId() == id_; | ||
} | ||
private: | ||
|
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.
@mrodozov , we should delete the for loop too.