From fe1b290e40577ce300d6c0b2cdae62a72050a795 Mon Sep 17 00:00:00 2001 From: Christine Poerschke Date: Wed, 28 Sep 2016 18:43:15 +0100 Subject: [PATCH] Removes some unused locals in solr/core request and response packages. --- solr/core/src/java/org/apache/solr/request/NumericFacets.java | 1 - .../src/java/org/apache/solr/request/macro/MacroExpander.java | 1 - .../apache/solr/response/transform/SubQueryAugmenterFactory.java | 1 - 3 files changed, 3 deletions(-) diff --git a/solr/core/src/java/org/apache/solr/request/NumericFacets.java b/solr/core/src/java/org/apache/solr/request/NumericFacets.java index 9df0ca62faa..1d915600ec5 100644 --- a/solr/core/src/java/org/apache/solr/request/NumericFacets.java +++ b/solr/core/src/java/org/apache/solr/request/NumericFacets.java @@ -145,7 +145,6 @@ final class NumericFacets { final Iterator ctxIt = leaves.iterator(); LeafReaderContext ctx = null; NumericDocValues longs = null; - Bits docsWithField = null; int missingCount = 0; for (DocIterator docsIt = docs.iterator(); docsIt.hasNext(); ) { final int doc = docsIt.nextDoc(); diff --git a/solr/core/src/java/org/apache/solr/request/macro/MacroExpander.java b/solr/core/src/java/org/apache/solr/request/macro/MacroExpander.java index 7db4cb02e2f..305a9759f7c 100644 --- a/solr/core/src/java/org/apache/solr/request/macro/MacroExpander.java +++ b/solr/core/src/java/org/apache/solr/request/macro/MacroExpander.java @@ -108,7 +108,6 @@ public class MacroExpander { if (idx < 0) return val; int start = 0; // start of the unprocessed part of the string - int end = 0; StringBuilder sb = null; for (;;) { idx = val.indexOf(macroStart, idx); diff --git a/solr/core/src/java/org/apache/solr/response/transform/SubQueryAugmenterFactory.java b/solr/core/src/java/org/apache/solr/response/transform/SubQueryAugmenterFactory.java index cbe69985bca..2d36e75f2c9 100644 --- a/solr/core/src/java/org/apache/solr/response/transform/SubQueryAugmenterFactory.java +++ b/solr/core/src/java/org/apache/solr/response/transform/SubQueryAugmenterFactory.java @@ -217,7 +217,6 @@ class SubQueryAugmenter extends DocTransformer { if (vals != null) { StringBuilder rez = new StringBuilder(); - int i = 0; for (Iterator iterator = vals.iterator(); iterator.hasNext();) { Object object = (Object) iterator.next(); rez.append(convertFieldValue(object));