lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mikemcc...@apache.org
Subject svn commit: r907425 - /lucene/java/trunk/src/java/org/apache/lucene/index/DocInverterPerField.java
Date Sun, 07 Feb 2010 14:39:49 GMT
Author: mikemccand
Date: Sun Feb  7 14:39:48 2010
New Revision: 907425

URL: http://svn.apache.org/viewvc?rev=907425&view=rev
Log:
remove some dead code

Modified:
    lucene/java/trunk/src/java/org/apache/lucene/index/DocInverterPerField.java

Modified: lucene/java/trunk/src/java/org/apache/lucene/index/DocInverterPerField.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/java/org/apache/lucene/index/DocInverterPerField.java?rev=907425&r1=907424&r2=907425&view=diff
==============================================================================
--- lucene/java/trunk/src/java/org/apache/lucene/index/DocInverterPerField.java (original)
+++ lucene/java/trunk/src/java/org/apache/lucene/index/DocInverterPerField.java Sun Feb  7
14:39:48 2010
@@ -132,8 +132,6 @@
           final int startLength = fieldState.length;
           
           try {
-            int offsetEnd = fieldState.offset-1;
-            
             boolean hasMoreTokens = stream.incrementToken();
 
             fieldState.attributeSource = stream;
@@ -178,7 +176,6 @@
                   docState.docWriter.setAborting();
               }
               fieldState.position++;
-              offsetEnd = fieldState.offset + offsetAttribute.endOffset();
               if (++fieldState.length >= maxFieldLength) {
                 if (docState.infoStream != null)
                   docState.infoStream.println("maxFieldLength " +maxFieldLength+ " reached
for field " + fieldInfo.name + ", ignoring following tokens");



Mime
View raw message