From d5a97da1504bbc02477f7f69e879d27c5d88f2bd Mon Sep 17 00:00:00 2001 From: Jacques Le Roux Date: Sat, 26 Oct 2013 08:32:46 +0000 Subject: [PATCH] No functional changes, removes an useless variable git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1535945 13f79535-47bb-0310-9956-ffa450edef68 --- .../product/src/org/ofbiz/product/price/PriceServices.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/applications/product/src/org/ofbiz/product/price/PriceServices.java b/applications/product/src/org/ofbiz/product/price/PriceServices.java index 560840e760..2fe124751b 100644 --- a/applications/product/src/org/ofbiz/product/price/PriceServices.java +++ b/applications/product/src/org/ofbiz/product/price/PriceServices.java @@ -268,7 +268,6 @@ public class PriceServices { List variantAssocList = EntityUtil.filterByDate(delegator.findByAnd("ProductAssoc", UtilMisc.toMap("productId", product.get("productId"), "productAssocTypeId", "PRODUCT_VARIANT"), UtilMisc.toList("-fromDate"), true)); BigDecimal minDefaultPrice = null; List variantProductPrices = null; - String variantProductId = null; for (GenericValue variantAssoc: variantAssocList) { String curVariantProductId = variantAssoc.getString("productIdTo"); List curVariantPriceList = EntityUtil.filterByDate(delegator.findByAnd("ProductPrice", UtilMisc.toMap("productId", curVariantProductId), UtilMisc.toList("-fromDate"), true), nowTimestamp); @@ -284,7 +283,6 @@ public class PriceServices { if (salesDiscontinuationDate == null || salesDiscontinuationDate.after(nowTimestamp)) { minDefaultPrice = curDefaultPrice; variantProductPrices = curVariantPriceList; - variantProductId = curVariantProductId; // Debug.logInfo("Found new lowest price " + minDefaultPrice + " for variant with ID " + variantProductId, module); } }