Author: mbrohl
Date: Sat Sep 17 20:36:38 2016
New Revision: 1761271
URL:
http://svn.apache.org/viewvc?rev=1761271&view=revLog:
Improved: AssetMaint : Remove unused imports from groovy files for code optimization.
(OFBIZ-8032)
Thanks: Ankit Joshi for reporting and providing the patch.
Modified:
ofbiz/trunk/specialpurpose/assetmaint/groovyScripts/assetmaint/EditMaint.groovy
ofbiz/trunk/specialpurpose/assetmaint/groovyScripts/assetmaint/PrintFixedAssetMaint.groovy
ofbiz/trunk/specialpurpose/assetmaint/groovyScripts/workeffort/EditWorkEfforts.groovy
Modified: ofbiz/trunk/specialpurpose/assetmaint/groovyScripts/assetmaint/EditMaint.groovy
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/assetmaint/groovyScripts/assetmaint/EditMaint.groovy?rev=1761271&r1=1761270&r2=1761271&view=diff==============================================================================
--- ofbiz/trunk/specialpurpose/assetmaint/groovyScripts/assetmaint/EditMaint.groovy (original)
+++ ofbiz/trunk/specialpurpose/assetmaint/groovyScripts/assetmaint/EditMaint.groovy Sat Sep 17 20:36:38 2016
@@ -17,10 +17,6 @@
* under the License.
*/
-import org.apache.ofbiz.entity.*;
-import org.apache.ofbiz.entity.condition.*;
-import org.apache.ofbiz.entity.util.*;
-
// This is a small script to set things up when the EditFixedAssetMaint
// screen is called from one of the WorkEffort calendar screens.
// The URL coming from WorkEffort does not contain the maintHistSeqId parameter,
Modified: ofbiz/trunk/specialpurpose/assetmaint/groovyScripts/assetmaint/PrintFixedAssetMaint.groovy
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/assetmaint/groovyScripts/assetmaint/PrintFixedAssetMaint.groovy?rev=1761271&r1=1761270&r2=1761271&view=diff==============================================================================
--- ofbiz/trunk/specialpurpose/assetmaint/groovyScripts/assetmaint/PrintFixedAssetMaint.groovy (original)
+++ ofbiz/trunk/specialpurpose/assetmaint/groovyScripts/assetmaint/PrintFixedAssetMaint.groovy Sat Sep 17 20:36:38 2016
@@ -17,9 +17,6 @@ specific language governing permissions
under the License.
**/
-import org.apache.ofbiz.entity.*;
-import org.apache.ofbiz.entity.condition.*;
-
facility = fixedAsset.getRelatedOne("LocatedAtFacility", false);
context.locatedAtFacility = facility;
Modified: ofbiz/trunk/specialpurpose/assetmaint/groovyScripts/workeffort/EditWorkEfforts.groovy
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/assetmaint/groovyScripts/workeffort/EditWorkEfforts.groovy?rev=1761271&r1=1761270&r2=1761271&view=diff==============================================================================
--- ofbiz/trunk/specialpurpose/assetmaint/groovyScripts/workeffort/EditWorkEfforts.groovy (original)
+++ ofbiz/trunk/specialpurpose/assetmaint/groovyScripts/workeffort/EditWorkEfforts.groovy Sat Sep 17 20:36:38 2016
@@ -17,13 +17,6 @@
under the License.
*/
-import java.util.*;
-
-import org.apache.ofbiz.base.util.*;
-import org.apache.ofbiz.entity.*;
-import org.apache.ofbiz.entity.condition.*;
-import org.apache.ofbiz.entity.util.*;
-
maintHistSeqId = context.maintHistSeqId;
fixedAssetId = context.fixedAssetId;
workEffortId = context.workEffortId;