lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sim...@apache.org
Subject [1/2] lucene-solr:master: Remove dead code
Date Mon, 16 Apr 2018 15:28:27 GMT
Repository: lucene-solr
Updated Branches:
  refs/heads/branch_7x aeac55a60 -> d9ef3a3d0
  refs/heads/master 0b753c34f -> 449ecb601


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/449ecb60
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/449ecb60
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/449ecb60

Branch: refs/heads/master
Commit: 449ecb601cac8644700c053df145a92c989e0e15
Parents: 0b753c3
Author: Simon Willnauer <simonw@apache.org>
Authored: Mon Apr 16 17:26:44 2018 +0200
Committer: Simon Willnauer <simonw@apache.org>
Committed: Mon Apr 16 17:27:19 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/449ecb60/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)) {


Mime
View raw message