From de38872c68f2510dbb71602f2b420ec133c82948 Mon Sep 17 00:00:00 2001 From: Mark Robert Miller Date: Thu, 20 Aug 2009 21:51:47 +0000 Subject: [PATCH] remove a few unnecessary dead stores from tests git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@806372 13f79535-47bb-0310-9956-ffa450edef68 --- src/test/org/apache/lucene/search/TestElevationComparator.java | 3 --- src/test/org/apache/lucene/search/TestPhraseQuery.java | 1 - src/test/org/apache/lucene/search/spans/TestPayloadSpans.java | 1 - 3 files changed, 5 deletions(-) diff --git a/src/test/org/apache/lucene/search/TestElevationComparator.java b/src/test/org/apache/lucene/search/TestElevationComparator.java index 036ff65a443..29502b102db 100644 --- a/src/test/org/apache/lucene/search/TestElevationComparator.java +++ b/src/test/org/apache/lucene/search/TestElevationComparator.java @@ -77,9 +77,6 @@ public class TestElevationComparator extends LuceneTestCase { TopDocs topDocs = topCollector.topDocs(0, 10); int nDocsReturned = topDocs.scoreDocs.length; - int[] ids = new int[nDocsReturned]; - float[] scores = new float[nDocsReturned]; - Document[] documents = new Document[nDocsReturned]; assertEquals(4, nDocsReturned); // 0 & 3 were elevated diff --git a/src/test/org/apache/lucene/search/TestPhraseQuery.java b/src/test/org/apache/lucene/search/TestPhraseQuery.java index 2b269fc0f3b..47bedf40552 100644 --- a/src/test/org/apache/lucene/search/TestPhraseQuery.java +++ b/src/test/org/apache/lucene/search/TestPhraseQuery.java @@ -558,7 +558,6 @@ public class TestPhraseQuery extends LuceneTestCase { // LUCENE-1280 public void testEmptyPhraseQuery() throws Throwable { - final PhraseQuery q1 = new PhraseQuery(); final BooleanQuery q2 = new BooleanQuery(); q2.add(new PhraseQuery(), BooleanClause.Occur.MUST); q2.toString(); diff --git a/src/test/org/apache/lucene/search/spans/TestPayloadSpans.java b/src/test/org/apache/lucene/search/spans/TestPayloadSpans.java index 957ab6a5b8c..d2f76118d84 100644 --- a/src/test/org/apache/lucene/search/spans/TestPayloadSpans.java +++ b/src/test/org/apache/lucene/search/spans/TestPayloadSpans.java @@ -362,7 +362,6 @@ public class TestPayloadSpans extends LuceneTestCase { public void testPayloadSpanUtil() throws Exception { RAMDirectory directory = new RAMDirectory(); PayloadAnalyzer analyzer = new PayloadAnalyzer(); - String[] docs = new String[]{}; IndexWriter writer = new IndexWriter(directory, analyzer, true); writer.setSimilarity(similarity); Document doc = new Document();