Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jdt-core-dev] Finding dead code


I have had several emails asking for a pointer to the tool that finds dead code.  It is located in the org.eclipse.core.tools plugin, available via anonymous CVS connection to dev.eclipse.org.  Simply install that plugin, and a new action is added to the package explorer context menu (Find Unreferenced Members).  For a peek at the implementation, look at FindUnusedMembersAction.java.  Again, for anyone using it, be wary of false hits - it will report a method as unreferenced even if it overrides a supertype method that is referenced.  Validate any results carefully before deleting code.

Back to the top