Author: lektran
Date: Sat Oct 3 03:41:43 2009
New Revision: 821234
URL:
http://svn.apache.org/viewvc?rev=821234&view=revLog:
Removed the deprecated method getImageType(GenericDelegator, GenericValue)
Modified:
ofbiz/trunk/applications/content/src/org/ofbiz/content/data/DataResourceWorker.java
Modified: ofbiz/trunk/applications/content/src/org/ofbiz/content/data/DataResourceWorker.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/content/src/org/ofbiz/content/data/DataResourceWorker.java?rev=821234&r1=821233&r2=821234&view=diff==============================================================================
--- ofbiz/trunk/applications/content/src/org/ofbiz/content/data/DataResourceWorker.java (original)
+++ ofbiz/trunk/applications/content/src/org/ofbiz/content/data/DataResourceWorker.java Sat Oct 3 03:41:43 2009
@@ -417,26 +417,6 @@
return mimeTypeId;
}
- /** @deprecated */
- @Deprecated
- public static String getImageType(GenericDelegator delegator, GenericValue dataResource) {
- String imageType = null;
- if (dataResource != null) {
- imageType = (String) dataResource.get("mimeTypeId");
- if (UtilValidate.isEmpty(imageType)) {
- String imageFileNameExt = null;
- String imageFileName = (String)dataResource.get("objectInfo");
- if (UtilValidate.isNotEmpty(imageFileName)) {
- int pos = imageFileName.lastIndexOf(".");
- if (pos >= 0)
- imageFileNameExt = imageFileName.substring(pos + 1);
- }
- imageType = "image/" + imageFileNameExt;
- }
- }
- return imageType;
- }
-
public static String buildRequestPrefix(GenericDelegator delegator, Locale locale, String webSiteId, String https) {
Map prefixValues = FastMap.newInstance();
String prefix;