Removes unused methods (not in Java code, FTL templates and Groovy scripts) in GenericValue and EntityUtil classes + misc related comments or logs
Adds log warning to spot possible use cases in templates and scripts of getRelated() and getRelatedOne() methods

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1704769 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jacques Le Roux
2015-09-23 08:03:45 +00:00
parent 513c11fbaa
commit 8bfa151997
+1 -5
View File
@@ -130,10 +130,6 @@ public abstract class SolrUtil {
List<String> category = UtilGenerics.<String>checkList(context.get("category"));
Iterator<String> catIter = category.iterator();
while (catIter.hasNext()) {
/*
* GenericValue cat = (GenericValue) catIter.next(); GenericValue prodCategory = cat.getRelatedOneCache("ProductCategory"); if (prodCategory.get("description") != null) {
* doc1.addField("category", prodCategory.get("description")); } doc1.addField("cat", prodCategory.get("productCategoryId"));
*/
String cat = (String) catIter.next();
doc1.addField("cat", cat);
}
@@ -240,4 +236,4 @@ public abstract class SolrUtil {
return result;
}
}
}