You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by rm...@apache.org on 2012/01/30 19:16:54 UTC
svn commit: r1237885 -
/lucene/dev/branches/lucene3661/lucene/src/java/org/apache/lucene/codecs/lucene3x/Lucene3xStoredFieldsReader.java
Author: rmuir
Date: Mon Jan 30 18:16:54 2012
New Revision: 1237885
URL: http://svn.apache.org/viewvc?rev=1237885&view=rev
Log:
LUCENE-3728: remove dead code
Modified:
lucene/dev/branches/lucene3661/lucene/src/java/org/apache/lucene/codecs/lucene3x/Lucene3xStoredFieldsReader.java
Modified: lucene/dev/branches/lucene3661/lucene/src/java/org/apache/lucene/codecs/lucene3x/Lucene3xStoredFieldsReader.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/lucene3661/lucene/src/java/org/apache/lucene/codecs/lucene3x/Lucene3xStoredFieldsReader.java?rev=1237885&r1=1237884&r2=1237885&view=diff
==============================================================================
--- lucene/dev/branches/lucene3661/lucene/src/java/org/apache/lucene/codecs/lucene3x/Lucene3xStoredFieldsReader.java (original)
+++ lucene/dev/branches/lucene3661/lucene/src/java/org/apache/lucene/codecs/lucene3x/Lucene3xStoredFieldsReader.java Mon Jan 30 18:16:54 2012
@@ -216,10 +216,6 @@ public final class Lucene3xStoredFieldsR
}
}
- public final int size() {
- return size;
- }
-
private void seekIndex(int docID) throws IOException {
indexStream.seek(FORMAT_SIZE + (docID + docStoreOffset) * 8L);
}
@@ -301,32 +297,6 @@ public final class Lucene3xStoredFieldsR
}
}
- /** Returns the length in bytes of each raw document in a
- * contiguous range of length numDocs starting with
- * startDocID. Returns the IndexInput (the fieldStream),
- * already seeked to the starting point for startDocID.*/
- public final IndexInput rawDocs(int[] lengths, int startDocID, int numDocs) throws IOException {
- seekIndex(startDocID);
- long startOffset = indexStream.readLong();
- long lastOffset = startOffset;
- int count = 0;
- while (count < numDocs) {
- final long offset;
- final int docID = docStoreOffset + startDocID + count + 1;
- assert docID <= numTotalDocs;
- if (docID < numTotalDocs)
- offset = indexStream.readLong();
- else
- offset = fieldsStream.length();
- lengths[count++] = (int) (offset-lastOffset);
- lastOffset = offset;
- }
-
- fieldsStream.seek(startOffset);
-
- return fieldsStream;
- }
-
// note: if there are shared docstores, we are also called by Lucene3xCodec even in
// the CFS case. so logic here must handle this.
public static void files(SegmentInfo info, Set<String> files) throws IOException {