Unused / redundant code

  • Thread starter Thread starter Marc Jennings
  • Start date Start date
M

Marc Jennings

Hi there,

Are there any tools available (or even within VS.NET) for figuring out
which methods in a bit of code are reachable, and which aren't?

My problem is that (strangely) I have just had to hack an old project
to pieces with a tight deadline, and I am now not 100% sure which
methods are being called, and what is just decoration in my code.

Any help, as ever, is appreciated.
Marc.
 
I should probably point out a couple of caveats to this...

1) The code I want to examine is a Sharepoint WebPart, so is not
runnable as a standalone .exe
2) The budget for this tool is somewhere in the region of $0.00
3) I *really* don't want to have to go through the object browser,
right-clicking on every method and selecting "Go To Reference" to find
out what is *not* called internally.

Thanks again
Marc.
 
check out resharper, I don't currently use it personally but I know some
people say it is very good at eliminating obsolete code

http://www.jetbrains.com/resharper/


--
HTH

Ollie Riches
http://www.phoneanalyser.net

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a programmer
helping programmers.
 
Back
Top