Return-Path: Delivered-To: apmail-ofbiz-commits-archive@www.apache.org Received: (qmail 75993 invoked from network); 28 Feb 2011 19:14:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 28 Feb 2011 19:14:50 -0000 Received: (qmail 97269 invoked by uid 500); 28 Feb 2011 19:14:49 -0000 Delivered-To: apmail-ofbiz-commits-archive@ofbiz.apache.org Received: (qmail 97074 invoked by uid 500); 28 Feb 2011 19:14:47 -0000 Mailing-List: contact commits-help@ofbiz.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ofbiz.apache.org Delivered-To: mailing list commits@ofbiz.apache.org Received: (qmail 97066 invoked by uid 99); 28 Feb 2011 19:14:47 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Feb 2011 19:14:47 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Feb 2011 19:14:45 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id DD3BE23888CF; Mon, 28 Feb 2011 19:14:23 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1075491 - /ofbiz/trunk/applications/product/src/org/ofbiz/product/imagemanagement/ImageManagementServices.java Date: Mon, 28 Feb 2011 19:14:23 -0000 To: commits@ofbiz.apache.org From: mrisaliti@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20110228191423.DD3BE23888CF@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: mrisaliti Date: Mon Feb 28 19:14:23 2011 New Revision: 1075491 URL: http://svn.apache.org/viewvc?rev=1075491&view=rev Log: Remove an unused variable in ImageManagementServices (OFBIZ-4102) Modified: ofbiz/trunk/applications/product/src/org/ofbiz/product/imagemanagement/ImageManagementServices.java Modified: ofbiz/trunk/applications/product/src/org/ofbiz/product/imagemanagement/ImageManagementServices.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/src/org/ofbiz/product/imagemanagement/ImageManagementServices.java?rev=1075491&r1=1075490&r2=1075491&view=diff ============================================================================== --- ofbiz/trunk/applications/product/src/org/ofbiz/product/imagemanagement/ImageManagementServices.java (original) +++ ofbiz/trunk/applications/product/src/org/ofbiz/product/imagemanagement/ImageManagementServices.java Mon Feb 28 19:14:23 2011 @@ -309,7 +309,6 @@ public class ImageManagementServices { public static Map removeImageFileForImageManagement(DispatchContext dctx, Map context){ String productId = (String) context.get("productId"); String contentId = (String) context.get("contentId"); - String objectInfo = (String) context.get("objectInfo"); String dataResourceName = (String) context.get("dataResourceName"); try { @@ -361,14 +360,11 @@ public class ImageManagementServices { /* IMAGE */ // get Name and Extension index = filenameToUse.lastIndexOf("."); - String imgName = filenameToUse.substring(0, index - 1); String imgExtension = filenameToUse.substring(index + 1); // paths - String mainFilenameFormat = UtilProperties.getPropertyValue("catalog", "image.filename.format"); String imageServerPath = FlexibleStringExpander.expandString(UtilProperties.getPropertyValue("catalog", "image.management.path"), context); String imageServerUrl = FlexibleStringExpander.expandString(UtilProperties.getPropertyValue("catalog", "image.management.url"), context); - String id = imgName; /* get original BUFFERED IMAGE */ resultBufImgMap.putAll(ImageTransform.getBufferedImage(imageServerPath + "/" + productId + "/" + filenameToUse, locale)); @@ -924,14 +920,12 @@ public class ImageManagementServices { public static Map resizeImageOfProduct(DispatchContext dctx, Map context) { LocalDispatcher dispatcher = dctx.getDispatcher(); - Delegator delegator = dctx.getDelegator(); GenericValue userLogin = (GenericValue) context.get("userLogin"); String imageServerPath = FlexibleStringExpander.expandString(UtilProperties.getPropertyValue("catalog", "image.management.path"), context); String imageServerUrl = FlexibleStringExpander.expandString(UtilProperties.getPropertyValue("catalog", "image.management.url"), context); String productId = (String) context.get("productId"); String contentId = (String) context.get("contentId"); String dataResourceName = (String) context.get("dataResourceName"); - String drObjectInfo = (String) context.get("drObjectInfo"); String width = (String) context.get("resizeWidth"); int resizeWidth = Integer.parseInt(width); int resizeHeight = resizeWidth;