You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by si...@apache.org on 2018/04/16 15:28:28 UTC

[2/2] lucene-solr:branch_7x: Remove dead code

Remove dead code


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/d9ef3a3d
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/d9ef3a3d
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/d9ef3a3d

Branch: refs/heads/branch_7x
Commit: d9ef3a3d02870af55d7ee7447852fbdf374bf238
Parents: aeac55a
Author: Simon Willnauer <si...@apache.org>
Authored: Mon Apr 16 17:26:44 2018 +0200
Committer: Simon Willnauer <si...@apache.org>
Committed: Mon Apr 16 17:28:16 2018 +0200

----------------------------------------------------------------------
 .../apache/lucene/codecs/lucene50/Lucene50CompoundFormat.java    | 4 ----
 1 file changed, 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/d9ef3a3d/lucene/core/src/java/org/apache/lucene/codecs/lucene50/Lucene50CompoundFormat.java
----------------------------------------------------------------------
diff --git a/lucene/core/src/java/org/apache/lucene/codecs/lucene50/Lucene50CompoundFormat.java b/lucene/core/src/java/org/apache/lucene/codecs/lucene50/Lucene50CompoundFormat.java
index da2b93fc..8fc314e 100644
--- a/lucene/core/src/java/org/apache/lucene/codecs/lucene50/Lucene50CompoundFormat.java
+++ b/lucene/core/src/java/org/apache/lucene/codecs/lucene50/Lucene50CompoundFormat.java
@@ -28,7 +28,6 @@ import org.apache.lucene.store.DataOutput;
 import org.apache.lucene.store.Directory;
 import org.apache.lucene.store.IOContext;
 import org.apache.lucene.store.IndexOutput;
-import org.apache.lucene.util.StringHelper;
 
 /**
  * Lucene 5.0 compound file format
@@ -75,9 +74,6 @@ public final class Lucene50CompoundFormat extends CompoundFormat {
   public void write(Directory dir, SegmentInfo si, IOContext context) throws IOException {
     String dataFile = IndexFileNames.segmentFileName(si.name, "", DATA_EXTENSION);
     String entriesFile = IndexFileNames.segmentFileName(si.name, "", ENTRIES_EXTENSION);
-    
-    byte[] expectedID = si.getId();
-    byte[] id = new byte[StringHelper.ID_LENGTH];
 
     try (IndexOutput data =    dir.createOutput(dataFile, context);
          IndexOutput entries = dir.createOutput(entriesFile, context)) {