Skip to content
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

drop dead code #965

Closed
wants to merge 1 commit into from
Closed

drop dead code #965

wants to merge 1 commit into from

Conversation

yetist
Copy link
Contributor

@yetist yetist commented Oct 3, 2019

Remove code in if 0.

@greg-hellings
Copy link
Contributor

I have suggested this long, long ago and @karlkleinpaste had pushed back against it, not wanting to do it. I don't know if his opinion has changed or not.

@alerque
Copy link
Contributor

alerque commented Dec 20, 2019

This is also a duplicate of #913 in which I did the same work. This really needs to get merged at some point. The code is available in git history if somebody needs to resurrect something, but the amount of cruft in the source code is a barrier to contribution. It makes understanding what's what and finding problems much more difficult than need be.

@greg-hellings
Copy link
Contributor

I agree - but since he's expressed hesitation in the past, it falls to Karl to make that call

@alerque
Copy link
Contributor

alerque commented Dec 20, 2019

I just reviewed this PR by diffing what it would look like merged to master vs. my previous one. They are largely similar, but mine sticks much closer to the goal of just removing the #if 0 code. This PR also changes some other things such as rewriting comments, adding and removing white-space lines, and even removing code comments that explain what still active code is there for.

I strongly support removing all the #if 0 blocks, but suggest that this PR be closed in favor of my previous submission. If this PR is continued those extra changes should be reverted, split into separate commits, or at least justified in some way. As it stands I do not think this PR should be merged as it removes good code comments and makes unnecessary changes elsewhere that will make git bisect and other debugging tools unnecessarily hard to use in the future.

@alerque
Copy link
Contributor

alerque commented Dec 20, 2019

Addendum: I apologize, the difference isn't quite as significant as I first thought. The extra removed comments I thought were for live code were dead for other reasons and a miss-match for the code they were left with. I've tweaked my PR to reflect that change as well. Good catch @yetist.

@yetist
Copy link
Contributor Author

yetist commented Dec 20, 2019

@alerque

My objection to the other unrelated changes (not strictly removal, but rewriting existing comments and changing white-space) still stands. ;-)

Can you tell me what they are? Thanks.

@yetist
Copy link
Contributor Author

yetist commented Dec 20, 2019

I don't care whether to merge #913 or #965, I just want to remove this dead code so that it is easier to contribute code.

@karlkleinpaste
Copy link
Contributor

#913 was merged instead.

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.

4 participants