From 8bfa151997a8cb2a2124ea6769846f00a2a8027a Mon Sep 17 00:00:00 2001 From: Jacques Le Roux Date: Wed, 23 Sep 2015 08:03:45 +0000 Subject: [PATCH] No functional changes for https://issues.apache.org/jira/browse/OFBIZ-6651 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 --- solr/src/org/ofbiz/solr/SolrUtil.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/solr/src/org/ofbiz/solr/SolrUtil.java b/solr/src/org/ofbiz/solr/SolrUtil.java index e0a49e002..d7ec480b4 100644 --- a/solr/src/org/ofbiz/solr/SolrUtil.java +++ b/solr/src/org/ofbiz/solr/SolrUtil.java @@ -130,10 +130,6 @@ public abstract class SolrUtil { List category = UtilGenerics.checkList(context.get("category")); Iterator 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; } -} \ No newline at end of file +}