From e8ec99015f16f1f3ba1d9e3c0894847165d86c7b Mon Sep 17 00:00:00 2001 From: Christine Poerschke Date: Wed, 28 Sep 2016 18:44:41 +0100 Subject: [PATCH] In AddUpdateCommand remove one unused local and the getSchema.getUniqueKeyField method call that initialises it. --- solr/core/src/java/org/apache/solr/update/AddUpdateCommand.java | 1 - 1 file changed, 1 deletion(-) diff --git a/solr/core/src/java/org/apache/solr/update/AddUpdateCommand.java b/solr/core/src/java/org/apache/solr/update/AddUpdateCommand.java index 407ad30f2a7..377cb6b92b3 100644 --- a/solr/core/src/java/org/apache/solr/update/AddUpdateCommand.java +++ b/solr/core/src/java/org/apache/solr/update/AddUpdateCommand.java @@ -168,7 +168,6 @@ public class AddUpdateCommand extends UpdateCommand implements Iterable all = flatten(solrDoc); - SchemaField uniq = req.getSchema().getUniqueKeyField(); String idField = getHashableId(); for (SolrInputDocument sdoc : all) {