You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by mr...@apache.org on 2016/10/15 08:03:10 UTC

svn commit: r1765022 - in /ofbiz/trunk/specialpurpose/webpos/groovyScripts: Login.groovy WebPosSetup.groovy cart/ShowCart.groovy catalog/Category.groovy catalog/SideDeepCategory.groovy manager/PaidOutAndIn.groovy search/SearchSalesReps.groovy

Author: mridulpathak
Date: Sat Oct 15 08:03:10 2016
New Revision: 1765022

URL: http://svn.apache.org/viewvc?rev=1765022&view=rev
Log:
Improved: WebPos - Remove unused imports from groovy files for code optimization.
(OFBIZ-8442)

Thanks: Gopal Yadav for contribution.

Modified:
    ofbiz/trunk/specialpurpose/webpos/groovyScripts/Login.groovy
    ofbiz/trunk/specialpurpose/webpos/groovyScripts/WebPosSetup.groovy
    ofbiz/trunk/specialpurpose/webpos/groovyScripts/cart/ShowCart.groovy
    ofbiz/trunk/specialpurpose/webpos/groovyScripts/catalog/Category.groovy
    ofbiz/trunk/specialpurpose/webpos/groovyScripts/catalog/SideDeepCategory.groovy
    ofbiz/trunk/specialpurpose/webpos/groovyScripts/manager/PaidOutAndIn.groovy
    ofbiz/trunk/specialpurpose/webpos/groovyScripts/search/SearchSalesReps.groovy

Modified: ofbiz/trunk/specialpurpose/webpos/groovyScripts/Login.groovy
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/webpos/groovyScripts/Login.groovy?rev=1765022&r1=1765021&r2=1765022&view=diff
==============================================================================
--- ofbiz/trunk/specialpurpose/webpos/groovyScripts/Login.groovy (original)
+++ ofbiz/trunk/specialpurpose/webpos/groovyScripts/Login.groovy Sat Oct 15 08:03:10 2016
@@ -17,11 +17,8 @@
  * under the License.
  */
 
-import org.apache.ofbiz.base.util.*;
-import org.apache.ofbiz.common.CommonWorkers;
-import org.apache.ofbiz.entity.condition.*;
 import org.apache.ofbiz.product.store.ProductStoreWorker;
-import org.apache.ofbiz.webapp.control.*;
+import org.apache.ofbiz.webapp.control.LoginWorker;
 
 context.autoUserLogin = session.getAttribute("autoUserLogin");
 context.autoLogoutUrl = LoginWorker.makeLoginUrl(request, "autoLogout");

Modified: ofbiz/trunk/specialpurpose/webpos/groovyScripts/WebPosSetup.groovy
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/webpos/groovyScripts/WebPosSetup.groovy?rev=1765022&r1=1765021&r2=1765022&view=diff
==============================================================================
--- ofbiz/trunk/specialpurpose/webpos/groovyScripts/WebPosSetup.groovy (original)
+++ ofbiz/trunk/specialpurpose/webpos/groovyScripts/WebPosSetup.groovy Sat Oct 15 08:03:10 2016
@@ -17,14 +17,9 @@
  * under the License.
  */
 
-import java.util.*;
-import org.apache.ofbiz.base.util.*;
-import org.apache.ofbiz.entity.*;
 import org.apache.ofbiz.product.catalog.CatalogWorker;
 import org.apache.ofbiz.product.store.ProductStoreWorker;
-import org.apache.ofbiz.common.CommonWorkers;
-import org.apache.ofbiz.order.shoppingcart.*;
-import org.apache.ofbiz.webapp.control.*;
+import org.apache.ofbiz.webapp.control.LoginWorker;
 
 productStore = ProductStoreWorker.getProductStore(request);
 

Modified: ofbiz/trunk/specialpurpose/webpos/groovyScripts/cart/ShowCart.groovy
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/webpos/groovyScripts/cart/ShowCart.groovy?rev=1765022&r1=1765021&r2=1765022&view=diff
==============================================================================
--- ofbiz/trunk/specialpurpose/webpos/groovyScripts/cart/ShowCart.groovy (original)
+++ ofbiz/trunk/specialpurpose/webpos/groovyScripts/cart/ShowCart.groovy Sat Oct 15 08:03:10 2016
@@ -16,11 +16,9 @@
  * specific language governing permissions and limitations
  * under the License.
  */
-import org.apache.ofbiz.base.util.UtilProperties;
 import org.apache.ofbiz.base.util.UtilValidate;
 import org.apache.ofbiz.webpos.WebPosEvents;
 import org.apache.ofbiz.webpos.session.WebPosSession;
-import org.apache.ofbiz.webpos.transaction.WebPosTransaction;
 
 webPosSession = WebPosEvents.getWebPosSession(request, null);
 if (webPosSession) {

Modified: ofbiz/trunk/specialpurpose/webpos/groovyScripts/catalog/Category.groovy
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/webpos/groovyScripts/catalog/Category.groovy?rev=1765022&r1=1765021&r2=1765022&view=diff
==============================================================================
--- ofbiz/trunk/specialpurpose/webpos/groovyScripts/catalog/Category.groovy (original)
+++ ofbiz/trunk/specialpurpose/webpos/groovyScripts/catalog/Category.groovy Sat Oct 15 08:03:10 2016
@@ -22,10 +22,7 @@
  * should not contain order component's specific code.
  */
 
-import org.apache.ofbiz.base.util.*;
-import org.apache.ofbiz.entity.*;
-import org.apache.ofbiz.product.catalog.*;
-import org.apache.ofbiz.product.category.CategoryWorker;
+import org.apache.ofbiz.product.catalog.CatalogWorker;
 import org.apache.ofbiz.product.category.CategoryContentWrapper;
 
 detailScreen = "categorydetail";

Modified: ofbiz/trunk/specialpurpose/webpos/groovyScripts/catalog/SideDeepCategory.groovy
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/webpos/groovyScripts/catalog/SideDeepCategory.groovy?rev=1765022&r1=1765021&r2=1765022&view=diff
==============================================================================
--- ofbiz/trunk/specialpurpose/webpos/groovyScripts/catalog/SideDeepCategory.groovy (original)
+++ ofbiz/trunk/specialpurpose/webpos/groovyScripts/catalog/SideDeepCategory.groovy Sat Oct 15 08:03:10 2016
@@ -16,9 +16,8 @@
  * specific language governing permissions and limitations
  * under the License.
  */
-import org.apache.ofbiz.base.util.*;
-import org.apache.ofbiz.product.catalog.*;
-import org.apache.ofbiz.product.category.*;
+import org.apache.ofbiz.product.catalog.CatalogWorker;
+import org.apache.ofbiz.product.category.CategoryWorker;
 
 CategoryWorker.getRelatedCategories(request, "topLevelList", CatalogWorker.getCatalogTopCategoryId(request, CatalogWorker.getCurrentCatalogId(request)), true);
 curCategoryId = parameters.category_id ?: parameters.CATEGORY_ID ?: "";

Modified: ofbiz/trunk/specialpurpose/webpos/groovyScripts/manager/PaidOutAndIn.groovy
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/webpos/groovyScripts/manager/PaidOutAndIn.groovy?rev=1765022&r1=1765021&r2=1765022&view=diff
==============================================================================
--- ofbiz/trunk/specialpurpose/webpos/groovyScripts/manager/PaidOutAndIn.groovy (original)
+++ ofbiz/trunk/specialpurpose/webpos/groovyScripts/manager/PaidOutAndIn.groovy Sat Oct 15 08:03:10 2016
@@ -17,7 +17,5 @@
  * under the License.
  */
 
-import org.apache.ofbiz.entity.condition.*;
-
 context.paidReasonIn  = from("Enumeration").where("enumTypeId", "POS_PAID_REASON_IN").orderBy("sequenceId").queryList();
 context.paidReasonOut = from("Enumeration").where("enumTypeId", "POS_PAID_REASON_OUT").orderBy("sequenceId").queryList();

Modified: ofbiz/trunk/specialpurpose/webpos/groovyScripts/search/SearchSalesReps.groovy
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/webpos/groovyScripts/search/SearchSalesReps.groovy?rev=1765022&r1=1765021&r2=1765022&view=diff
==============================================================================
--- ofbiz/trunk/specialpurpose/webpos/groovyScripts/search/SearchSalesReps.groovy (original)
+++ ofbiz/trunk/specialpurpose/webpos/groovyScripts/search/SearchSalesReps.groovy Sat Oct 15 08:03:10 2016
@@ -17,9 +17,6 @@
  * under the License.
  */
 
-import org.apache.ofbiz.entity.condition.EntityCondition;
-import org.apache.ofbiz.entity.condition.EntityOperator;
-
 context.salesReps = from("PartyRoleNameDetail").where("roleTypeId", "SALES_REP").orderBy("lastName", "firstName").queryList();
 
 shoppingCart = session.getAttribute("shoppingCart");