On Wed, 26 Dec 2012 20:44:51 -0800 (PST),
wrote:
> Dear All
> I have a project in eclipse, it has many java files, they are taken from an open source project. I will call one single function from one class, how can i clear out all unused classes?
> thanks
Select the files you don't want and press the Delete key. There is no
automatic way to do what you want. An optimizer/shrinker such as ProGuard
can be used to clean away unused classes from your compiled output, but its
use is not trivial.
Also, just because you only call one function doesn't mean no other classes
are needed - the function or the class holding the function itself might
reference a multitude of classes, possibly even all of them.
Liebe Gruesse,
Joerg
--
Ich lese meine Emails nicht, replies to Email bleiben also leider
ungelesen.