I'm looking for a feature, script, or tool in Visual Studio to remove methods that aren't referenced by any code in a solution.
All my projects are in one solution (i.e. no external class libraries).
Usually I right-click on methods and choose "Find All References," and if the method declaration is the only reference, I delete he method, to help clean up the code.
For me this helps in the code analysis/reverse engineering process.
Try ReSharper: http://www.jetbrains.com/resharper/features/code_refactoring.html?gclid=CN66956kqagCFQoZ4Qodexn_HA
It's not free, but it is awesome :)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With