From e2faa07f413b382c03f9aab37603609ae04e5ee8 Mon Sep 17 00:00:00 2001 From: Yonik Seeley Date: Wed, 5 Aug 2009 12:44:38 +0000 Subject: [PATCH] remove unused code from date faceting git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@801189 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/solr/request/SimpleFacets.java | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/java/org/apache/solr/request/SimpleFacets.java b/src/java/org/apache/solr/request/SimpleFacets.java index 58b0aef539e..33088478ccc 100644 --- a/src/java/org/apache/solr/request/SimpleFacets.java +++ b/src/java/org/apache/solr/request/SimpleFacets.java @@ -595,8 +595,6 @@ public class SimpleFacets { Date low = start; while (low.before(end)) { dmp.setNow(low); - final String lowI = ft.toInternal(low); - // final String label = ft.indexedToReadable(lowI); String label = ft.toExternal(low); Date high = dmp.parseMath(gap); @@ -612,8 +610,6 @@ public class SimpleFacets { (SolrException.ErrorCode.BAD_REQUEST, "date facet infinite loop (is gap negative?)"); } - final String highI = ft.toInternal(high); - // resInner.add(label, rangeCount(sf,lowI,highI,true,true)); resInner.add(label, rangeCount(sf,low,high,true,true)); low = high; } @@ -638,10 +634,7 @@ public class SimpleFacets { // no matter what other values are listed, we don't do // anything if "none" is specified. - if (! others.contains(FacetDateOther.NONE) ) { - final String startI = ft.toInternal(start); - final String endI = ft.toInternal(end); - + if (! others.contains(FacetDateOther.NONE) ) { boolean all = others.contains(FacetDateOther.ALL); if (all || others.contains(FacetDateOther.BEFORE)) {