Results 1 to 3 of 3

Thread: Is there a VB.NET visual studio plugin that does this?

  1. #1

    Thread Starter
    PowerPoster Jenner's Avatar
    Join Date
    Jan 2008
    Location
    Mentor, OH
    Posts
    3,712

    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.
    My CodeBank Submissions: TETRIS using VB.NET2010 and XNA4.0, Strong Encryption Class, Hardware ID Information Class, Generic .NET Data Provider Class, Lambda Function Example, Lat/Long to UTM Conversion Class, Audio Class using BASS.DLL

    Remember to RATE the people who helped you and mark your forum RESOLVED when you're done!

    "Two things are infinite: the universe and human stupidity; and I'm not sure about the universe. "
    - Albert Einstein

  2. #2
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    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
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  3. #3
    Super Moderator Shaggy Hiker's Avatar
    Join Date
    Aug 2002
    Location
    Idaho
    Posts
    40,106

    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
  •  



Click Here to Expand Forum to Full Width