I am trying to go through inherited code and find find out what objects are not being used anywhere so I can safely delete them. Is there a tool in VS 2010 Pro that enables this? I have been just doing a Find, but I find that this at times may be misleading.
Share
JetBrains ReSharper can do this for you. You’ll still need to be intelligent about removing classes, though. If you’re using and DI containers or configuration through external files I’ve seen it think things are not used, when in fact they are.
Here’s an example of how it reports this in a file (there’s also solution-wide analysis that can be run):