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:27 UTC

[1/2] lucene-solr:master: Remove dead code

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 <si...@apache.org>
Authored: Mon Apr 16 17:26:44 2018 +0200
Committer: Simon Willnauer <si...@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)) {


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

Posted by si...@apache.org.
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)) {