Todd,
In addition to the other comments.
I don't know of a quick report that tells you if a function is used or not.
(other then the FxCop one).
When I have a function I suspect is not used or one that I want to get ride
of, I put the Obsolete attribute on it, if any errors or warnings are
produced I remove the attribute. If no errors & warnings are produced I go
ahead & remove the function.
Be mindful of public functions in class libraries, as users consuming your
class library may use the function. The Obsolete attribute has overloaded
parameters for error or warning along with what message to display.
Something like:
' cause an error with a specific message
<Obsolete("This function should not be used any more", True)> _
Public Function SomeOldFunction() As Boolean
Return False
End Function
' cause warning with a specific message
<Obsolete("This function should not be used any more")> _
Public Function SomeOldFunction() As Boolean
Return False
End Function
' cause an obsolete warning
<Obsolete()> _
Public Function SomeOldFunction() As Boolean
Return False
End Function
--
Hope this helps
Jay [MVP - Outlook]
..NET Application Architect, Enthusiast, & Evangelist
T.S. Bradley -
http://www.tsbradley.net
<to********@hotmail.com> wrote in message
news:11*********************@g14g2000cwa.googlegro ups.com...
| This question might be for another group, but since I use vb.net, I
| thought I'd ask here....
|
| I'm looking to clean up some code. Is there a development tool to tell
| me which functions are not being used? I know that in C#, the compiler
| will tell you which variables are not being used. However, I need this
| for functions/methods/properties in VB.NET.
|
| thanks,
| Todd
|