开发者

Find Non Used Functions?

开发者 https://www.devze.com 2022-12-08 10:42 出处:网络
I know you can perform a \'Find All References\' on a function and you can determine if it is being used anywhere, but is there a tool that will go through all of my functions and highlight any that a

I know you can perform a 'Find All References' on a function and you can determine if it is being used anywhere, but is there a tool that will go through all of my functions and highlight any that are not called any开发者_Go百科where in the code?


I believe ReSharper can do what you want. More specifically, the Safe Delete command should at least faciliate the job. Although I haven't tried it, the Code Cleanup tool may well do the whole thing automatically.


I prefer ReSharper for this, but if you're looking for a free product, Microsoft FxCop will identity unused public methods.

0

精彩评论

暂无评论...
验证码 换一张
取 消