remove unused code from date faceting

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@801189 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Yonik Seeley 2009-08-05 12:44:38 +00:00
parent e918778c48
commit e2faa07f41
1 changed files with 1 additions and 8 deletions

View File

@ -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;
}
@ -639,9 +635,6 @@ 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);
boolean all = others.contains(FacetDateOther.ALL);
if (all || others.contains(FacetDateOther.BEFORE)) {