ofbiz-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mrisal...@apache.org
Subject svn commit: r1075491 - /ofbiz/trunk/applications/product/src/org/ofbiz/product/imagemanagement/ImageManagementServices.java
Date Mon, 28 Feb 2011 19:14:23 GMT
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<String, Object> removeImageFileForImageManagement(DispatchContext
dctx, Map<String, ? extends Object> 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<String, Object> resizeImageOfProduct(DispatchContext dctx, Map<String,
? extends Object> 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;



Mime
View raw message