|
-
Oct 29th, 2009, 01:31 PM
#1
Is there a VB.NET visual studio plugin that does this?
Today, I must have removed possibly a dozen unused methods out of my codebase. Methods that may at one point have done something, but now don't.
A few are Private methods, which are easy to spot since they're relevant only to the class they're in, but many are Friend/Public methods which were probably left in because nobody did a "Find All References" on them to find out if anything in the solution called them.
Is there a plugin for visual studio that would allow me to perhaps scan an entire class object, or perhaps an entire project/solution for orphaned methods and functions like this? Ones that nothing in the entire solution is calling?
Just curious as I continue my housecleaning. I almost spent what would have been several hours "updating" a method which only by the grace of simple curiosity revealed itself to not even being used.
-
Oct 29th, 2009, 01:59 PM
#2
Re: Is there a VB.NET visual studio plugin that does this?
try MZTools, CodeRush and ReSharper.... I think they each have dead code detection....
-tg
-
Oct 29th, 2009, 02:59 PM
#3
Re: Is there a VB.NET visual studio plugin that does this?
Also, try VS2010. I realize it's a bit premature for that, but there are better features than just Find All References, and they may be sufficient for your purpose, though I don't believe they will do a comprehensive scan across a class.
My usual boring signature: Nothing
 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|