LUCENE-4055: remove dead code

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene4055@1338962 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Muir 2012-05-16 00:47:38 +00:00
parent da340f6516
commit bfd15f8b10
3 changed files with 0 additions and 65 deletions

View File

@ -203,18 +203,6 @@ public final class FieldInfos implements Iterable<FieldInfo> {
return false;
}
/**
* Adds or updates fields that are indexed. Whether they have termvectors has to be specified.
*
* @param names The names of the fields
* @param storeTermVectors Whether the fields store term vectors or not
*/
synchronized public void addOrUpdateIndexed(Collection<String> names, boolean storeTermVectors) {
for (String name : names) {
addOrUpdate(name, true, storeTermVectors);
}
}
/**
* Assumes the fields are not storing term vectors.
*
@ -346,17 +334,6 @@ public final class FieldInfos implements Iterable<FieldInfo> {
return fi;
}
/**
* lookup the number of a field by name.
*
* @param fieldName field's name
* @return number of field, or -1 if it does not exist.
*/
public int fieldNumber(String fieldName) {
FieldInfo fi = fieldInfo(fieldName);
return (fi != null) ? fi.number : -1;
}
public FieldInfo fieldInfo(String fieldName) {
return byName.get(fieldName);
}

View File

@ -337,16 +337,6 @@ public final class SegmentInfo implements Cloneable {
return docStoreIsCompoundFile;
}
/**
* @deprecated shared doc stores are not supported in >= 4.0
*/
@Deprecated
public void setDocStoreIsCompoundFile(boolean docStoreIsCompoundFile) {
// TODO: LUCENE-2555: remove once we don't need to support shared doc stores (pre 4.0)
this.docStoreIsCompoundFile = docStoreIsCompoundFile;
clearFilesCache();
}
/**
* @deprecated shared doc stores are not supported in >= 4.0
*/
@ -368,25 +358,6 @@ public final class SegmentInfo implements Cloneable {
return docStoreSegment;
}
/**
* @deprecated shared doc stores are not supported in >= 4.0
*/
@Deprecated
void setDocStoreOffset(int offset) {
// TODO: LUCENE-2555: remove once we don't need to support shared doc stores (pre 4.0)
docStoreOffset = offset;
clearFilesCache();
}
/**
* @deprecated shared doc stores are not supported in 4.0
*/
@Deprecated
public void setDocStoreSegment(String docStoreSegment) {
// TODO: LUCENE-2555: remove once we don't need to support shared doc stores (pre 4.0)
this.docStoreSegment = docStoreSegment;
}
public boolean getHasProx() throws IOException {
return hasProx == CHECK_FIELDINFO ? getFieldInfos().hasProx() : hasProx == YES;
}

View File

@ -375,19 +375,6 @@ public final class SegmentInfos implements Cloneable, Iterable<SegmentInfo> {
}
}
/** Prunes any segment whose docs are all deleted. */
public void pruneDeletedSegments() {
for(final Iterator<SegmentInfo> it = segments.iterator(); it.hasNext();) {
final SegmentInfo info = it.next();
if (info.getDelCount() == info.docCount) {
it.remove();
final boolean didRemove = segmentSet.remove(info);
assert didRemove;
}
}
assert segmentSet.size() == segments.size();
}
/**
* Returns a copy of this instance, also copying each
* SegmentInfo.