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

Removed dead code #253

Closed
wants to merge 32 commits into from
Closed

Conversation

frankmorgner
Copy link
Member

Cleaned up all #if 0's.

Note that if the unused code should be needed some day it can still be found in the repositories history.

@martinpaljak
Copy link
Member

+1

@viktorTarasov
Copy link
Member

It can be done for the common part, but I prefer to not touch it in the card-specific one.

@frankmorgner
Copy link
Member Author

It all should be removed, it's dead weight. Why was this code disabled? Is it full of bugs? Was it added for debugging purposes? Is it only applied to special cards? Only the person who disabled the code knows. For all the other people dead code gets in the way of understanding things.

What about asking on the mailing list for objections? And if there are any there is almost always a better solution than using "if 0".

Do you know what's the best part of deleting this code? It doesn't break anything!

@viktorTarasov
Copy link
Member

I always considered that card-specific part is a 'private garden' of card driver maintainer.
Well, we will do it after release.

@martinpaljak
Copy link
Member

The argument of a card-specific maintainer would only apply if they all had any. They don't, thus action must be made. And if there is someone who wants to step up with such capability, he/she better be able to explain the need for dead code (does not exist)

viktorTarasov pushed a commit to viktorTarasov/OpenSC-SM that referenced this pull request Sep 7, 2014
card-asepcos: removed dead code
card-authentic: removed dead code
card-belpic: removed dead code
card-epass2003: removed dead code
card-flex: removed dead code
card-gpk: removed dead code
card-oberthur: removed dead code
card-piv: removed dead code
card-setcos: removed dead code
ctbcs: removed dead code
cwa14890: removed dead code
muscle: removed dead code
pkcs15-atrust-acos: removed dead code
pkcs15-gemsafeV1: removed dead code
pkcs15-skey: removed dead code
reader-ctapi: removed dead code
framework-pkcs15: removed dead code
pkcs11-object: removed dead code
pkcs15-asepcos: removed dead code
pkcs15-cardos: removed dead code
pkcs15-jcop: removed dead code
pkcs15-lib: removed dead code
pkcs15-oberthur: removed dead code
parse: removed dead code
sclex: removed dead code
sm-card-authentic: removed dead code
sm-card-iasecc: removed dead code
sm-cwa14890: removed dead code
sm-global-platform: removed dead code
sc-test: removed dead code
pkcs11-tool: removed dead code
pkcs15-tool: removed dead code
@viktorTarasov
Copy link
Member

Applied in 5d6c4b3,
thank you.

@frankmorgner frankmorgner deleted the remove-deadcode branch April 11, 2015 20:18
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.

3 participants