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

Find and remove unused methods #50

Open
shane-kerr opened this issue Apr 3, 2018 · 0 comments
Open

Find and remove unused methods #50

shane-kerr opened this issue Apr 3, 2018 · 0 comments

Comments

@shane-kerr
Copy link
Member

In #49 we removed an unused method which was breaking the build. Surely there are are other unused methods in the code. We should find them and remove them.

The hard way to do this is:

  1. Add private for all methods of every class
  2. Build the code, and remove private for every method until it builds
  3. Comment out every private method
  4. Build the code, and un-comment every private method actually used until it builds
  5. Delete the remaining commented-out private methods

An easier way would be to find a static analysis tool to do this. Maybe:

https://github.com/caolanm/callcatcher

There may be other options.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant