<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: Can i check what libraries were imported but not used it ivy scriplet?</title><link>https://answers.axonivy.com/questions/762/can-i-check-what-libraries-were-imported-but-not-used-it-ivy-scriplet</link><description>&lt;p&gt;Hello all
Currently we take over a big project from other team and it had a large logic already. So our team found that in some scriptlet the old team imported some strange lib in scriplet but not used at any places. So my team really want to remove it as we can do in eclipse with Ctrl+O. How can we do that in ivy scriplet?
Thanks in advance&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/762/can-i-check-what-libraries-were-imported-but-not-used-it-ivy-scriplet" rel="self"></atom:link><language>en</language><lastBuildDate>Fri, 20 Jun 2014 14:29:58 -0400</lastBuildDate><item><title>Answer by Reguel Wermelinger</title><link>https://answers.axonivy.com/questions/762/can-i-check-what-libraries-were-imported-but-not-used-it-ivy-scriplet/804</link><description>&lt;p&gt;The ivyScript editor has no feature to detect unused code. 
However the fastest way to reveal unused third party libraries in your project is to simply remove the library from your classpath and run the full validation against the local project and all the dependent projects. (Right click -&amp;gt; Validate)&lt;/p&gt;
&lt;p&gt;Then the ivyScript validator will show errors for ivyScripts that have used the library. So you can navigate quickly to the places where the library has been used with the "Problems" view. ...and delete script parts if they are just unused imports.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Reguel Wermelinger</dc:creator><pubDate>Fri, 20 Jun 2014 14:29:58 -0400</pubDate><guid>https://answers.axonivy.com/questions/762/can-i-check-what-libraries-were-imported-but-not-used-it-ivy-scriplet/804</guid></item><item><title>Answer by Daniel Oechslin</title><link>https://answers.axonivy.com/questions/762/can-i-check-what-libraries-were-imported-but-not-used-it-ivy-scriplet/764</link><description>&lt;p&gt;Run a filesearch and delete it there, so you can be sure it is not used anywhere. If the project is to large to do it in a filesearch, use a unix-regex on your workspace for deletion.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Daniel Oechslin</dc:creator><pubDate>Tue, 10 Jun 2014 13:27:11 -0400</pubDate><guid>https://answers.axonivy.com/questions/762/can-i-check-what-libraries-were-imported-but-not-used-it-ivy-scriplet/764</guid></item></channel></rss>