-
-
Notifications
You must be signed in to change notification settings - Fork 824
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 variables in completeOrder() #15841
Remove unused variables in completeOrder() #15841
Conversation
(Standard links)
|
Looks ok except for maybe one possibility which I'm not sure about because I'm not familiar with this area of code. The previous The PR title doesn't say NFC but it seems like it was intended to be, so to be truly NFC the new if line would need to be Otherwise though |
4cb4eda
to
251a4af
Compare
@demeritcowboy Thanks for the review, I'm pretty sure it won't make a difference, but I've made the change you suggested as my priority is to remove the |
Cool. And the fixme comment is perfect - it's exactly the part I was unsure about - whether it could actually be removed completely. So looks good to me. |
OK - yes I agree - we established previously that input does not need to be passed by reference & now that it is not we don't need to alter $input in this function. Merging |
Per @mattwiree digging here civicrm#15841 we don't need to set vars that are no longer used
Looking into this I added a PR to remove a few more lines #15901 |
Overview
Pre for #15555 This removes unused variables from completeOrder() function.
Before
Unused variables being set in completeOrder() - more difficult to see where vars are actually being used.
After
Not set - easier to see where vars are actually being used.
Technical Details
Comments
Follow up to #15699