remove unused subs/func and code automaticly

  • Thread starter Thread starter AussieRules
  • Start date Start date
A

AussieRules

Hi,

There use to be some 3rd party tools that would remove unused subs and
function and unused code from vb projects.

Is there are a way to do this in vb.net 03
 
For the life of me I don't understand why VB.NET lets you even have such
stuff in your code. In C#, if code isn't used, you get compiler warnings.
Anyway, if there's a way to do it by default in VB.NET, I don't know how but
would love to see how.

Here's a tool that can do it for you though...
http://www.aivosto.com/project/project.html
 
* "William Ryan said:
For the life of me I don't understand why VB.NET lets you even have such
stuff in your code.

Why not? Maybe the code will be used in a future release. What does
"unused" mean? Maybe somebody wants to call these procedures using
reflection. But you are right, a warning (or "information") would be nice.
 
Back
Top