port rev 1241965 to trunk (remove dead code from SearcherManager).

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1241966 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Shai Erera 2012-02-08 16:42:19 +00:00
parent c0319d5928
commit 9c7fbf58e9
1 changed files with 0 additions and 4 deletions

View File

@ -238,10 +238,6 @@ public final class SearcherManager implements Closeable {
private synchronized void swapSearcher(IndexSearcher newSearcher) throws IOException {
ensureOpen();
// Don't allow un-closing!
if (currentSearcher == null && newSearcher != null) {
throw new AlreadyClosedException("this SearcherManager is closed");
}
final IndexSearcher oldSearcher = currentSearcher;
currentSearcher = newSearcher;
release(oldSearcher);