Detecting unused public types
I am new to resharper, so please excuse my ignorance. I am attempting to clean out unused code from our source: classes, functions, fields, etc. My first guess on how to do this went like this:
1. Run the resharper code inspection on my project
2. Change the issue filter to display only the 'Redundancies in Symbol Declarations\Type or type memebers is never used' issue.
3. Fix away.
This seems to find all unused private declarations, but not public ones. This kind of makes sense, since public types may be referenced outside the solution, but I would still like to see and review a list of unreferenced public types. Is there a way to see that list?
Thanks,
Aaron
Please sign in to leave a comment.
Hello Aaron
In order to find unused non-private types and methods, you should turn on Solution-wide analysis (under ReSharper | Options | Code Inspection | Settings) and wait until it analyses your whole solution before performing the steps you've mentioned. Let me know if this helps. Thank you!
Andrey Serebryansky
Senior Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"