X-Received: by 10.66.72.232 with SMTP id g8mr4560615pav.23.1356635263340; Thu, 27 Dec 2012 11:07:43 -0800 (PST) Received: by 10.50.37.242 with SMTP id b18mr10828948igk.6.1356635263299; Thu, 27 Dec 2012 11:07:43 -0800 (PST) Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!f6no6616458pbd.1!news-out.google.com!6ni65509pbd.1!nntp.google.com!kr7no16572588pbb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.java.programmer Date: Thu, 27 Dec 2012 11:07:42 -0800 (PST) In-Reply-To: <7180f798-396e-4b03-b628-2a57cc0a8bd7@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=173.164.137.214; posting-account=CP-lKQoAAAAGtB5diOuGlDQk0jIwmH0T NNTP-Posting-Host: 173.164.137.214 References: <7180f798-396e-4b03-b628-2a57cc0a8bd7@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <5cab4b6f-3d21-41ec-bfb9-42102c2cabce@googlegroups.com> Subject: Re: how to clean up unused java file in eclipse From: Lew Injection-Date: Thu, 27 Dec 2012 19:07:43 +0000 Content-Type: text/plain; charset=ISO-8859-1 Xref: csiph.com comp.lang.java.programmer:20734 mche... > I have a project in eclipse, it has many java [sic] files, they are taken > from an open source project. I will call one single function from one class, > how can i [sic] clear out all unused classes? By not copying them into your project. However, this is both not the right way to do it nearly always, and risks your violation of license terms. Check with a lawyer to ensure that you comply with the open-source license. Your question is rather odd. What one function from what one class is so valuable that you'd lift it, and what open-source project has such a gem yet none of its other functionality will serve? Why not just add the JAR to your libraries? What's the big deal? -- Lew