Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 29402

Summary: Refactoring support for removing unreferenced code [refactoring]
Product: [Eclipse Project] JDT Reporter: Oyvind Harboe <oyvind.harboe>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: RESOLVED WONTFIX QA Contact:
Severity: enhancement    
Priority: P3 CC: akiezun
Version: 2.1Keywords: helpwanted
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Oyvind Harboe CLA 2003-01-13 12:11:43 EST
Over time classes accumulate obsolete code. In particular, I'd like to have 
refactoring that removes:

- unused fields
- unused methods

I suppose these sort of refactorings would have to operate on the entire 
workspace.
Comment 1 Adam Kiezun CLA 2003-01-13 12:25:19 EST
this would need to take a set of 'entry point' as an input and
then could try 'mark and sweep' to find clusters of stuff that is not used 
anymore

if foo calls bar and bar calls foo and nobody references them, then both can be 
removed

but things like 'main' methods or plugin extension point are entry points - 
they're referenced by something else than java code

moving the suggestion (for sure useful) to later
Comment 2 Dirk Baeumer CLA 2003-04-25 05:11:02 EDT
Exists for private members (compile error and quick assist). No further action 
planned for 3.0.
Comment 3 Denis Roy CLA 2009-08-30 02:21:19 EDT
As of now 'LATER' and 'REMIND' resolutions are no longer supported.
Please reopen this bug if it is still valid for you.