Author: lektran
Date: Tue Apr 6 16:28:34 2010
New Revision: 931212
URL:
http://svn.apache.org/viewvc?rev=931212&view=revLog:
Removed commented and ununsed code
Modified:
ofbiz/trunk/applications/content/src/org/ofbiz/content/data/DataEvents.java
Modified: ofbiz/trunk/applications/content/src/org/ofbiz/content/data/DataEvents.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/content/src/org/ofbiz/content/data/DataEvents.java?rev=931212&r1=931211&r2=931212&view=diff==============================================================================
--- ofbiz/trunk/applications/content/src/org/ofbiz/content/data/DataEvents.java (original)
+++ ofbiz/trunk/applications/content/src/org/ofbiz/content/data/DataEvents.java Tue Apr 6 16:28:34 2010
@@ -67,7 +67,6 @@ public class DataEvents {
Map<String, Object> httpParams = UtilHttp.getParameterMap(request);
String contentId = (String) httpParams.get("contentId");
- //String contentId = request.getParameter("contentId");
if (UtilValidate.isEmpty(contentId)) {
String errorMsg = "Required parameter contentId not found!";
Debug.logError(errorMsg, module);
@@ -267,7 +266,6 @@ public class DataEvents {
}
String mimeType = DataResourceWorker.getMimeType(dataResource);
- //if (Debug.infoOn()) Debug.logInfo("in serveImage, imageType:" + imageType, module);
// hack for IE and mime types
String userAgent = request.getHeader("User-Agent");
@@ -346,12 +344,6 @@ public class DataEvents {
dataResource.set("dataResourceId", dataResourceId);
}
-
- // Save the primary key so that it can be used in a "quick pick" list later
- GenericPK pk = dataResource.getPrimaryKey();
- HttpSession session = request.getSession();
- //ContentManagementWorker.mruAdd(session, pk);
-
String returnStr = "success";
if (mode.equals("CREATE")) {
// Set up return message to guide selection of follow on view