Find unused code

Andre picture Andre · Oct 29, 2008 · Viewed 103.7k times · Source

I have to refactor a large C# application, and I found a lot of functions that are never used. How can I check for unused code, so I can remove all the unused functions?

Answer

Jarrett Meyer picture Jarrett Meyer · Aug 5, 2010

Yes, ReSharper does this. Right click on your solution and selection "Find Code Issues". One of the results is "Unused Symbols". This will show you classes, methods, etc., that aren't used.