Skip to content

Commit b77ef1f

Browse files
Cleanup some Dead Code in o.e.index.store (#52045) (#52084)
One obviously unused method and an incorrect Javadoc that referenced an otherwise unused class.
1 parent e541ca7 commit b77ef1f

File tree

3 files changed

+2
-50
lines changed

3 files changed

+2
-50
lines changed

server/src/main/java/org/elasticsearch/index/IndexModule.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@
5353
import org.elasticsearch.index.shard.IndexingOperationListener;
5454
import org.elasticsearch.index.shard.SearchOperationListener;
5555
import org.elasticsearch.index.similarity.SimilarityService;
56-
import org.elasticsearch.index.store.DirectoryService;
5756
import org.elasticsearch.index.store.FsDirectoryFactory;
5857
import org.elasticsearch.indices.IndicesQueryCache;
5958
import org.elasticsearch.indices.breaker.CircuitBreakerService;
@@ -85,7 +84,8 @@
8584
* {@link #addSimilarity(String, TriFunction)} while existing Providers can be referenced through Settings under the
8685
* {@link IndexModule#SIMILARITY_SETTINGS_PREFIX} prefix along with the "type" value. For example, to reference the
8786
* {@link BM25Similarity}, the configuration {@code "index.similarity.my_similarity.type : "BM25"} can be used.</li>
88-
* <li>{@link DirectoryService} - Custom {@link DirectoryService} instances can be registered via {@link IndexStorePlugin}</li>
87+
* <li>{@link IndexStorePlugin.DirectoryFactory} - Custom {@link IndexStorePlugin.DirectoryFactory} instances can be registered
88+
* via {@link IndexStorePlugin}</li>
8989
* <li>{@link IndexEventListener} - Custom {@link IndexEventListener} instances can be registered via
9090
* {@link #addIndexEventListener(IndexEventListener)}</li>
9191
* <li>Settings update listener - Custom settings update listener can be registered via

server/src/main/java/org/elasticsearch/index/store/DirectoryService.java

-36
This file was deleted.

server/src/main/java/org/elasticsearch/index/store/Store.java

-12
Original file line numberDiff line numberDiff line change
@@ -217,18 +217,6 @@ private static SegmentInfos readSegmentsInfo(IndexCommit commit, Directory direc
217217

218218
}
219219

220-
/**
221-
* Loads the maximum sequence number and local checkpoint from the given Lucene commit point or the latest if not provided.
222-
*
223-
* @param commit the commit point to load seqno stats, or the last commit in the store if the parameter is null
224-
* @return {@link SequenceNumbers.CommitInfo} containing information about the last commit
225-
* @throws IOException if an I/O exception occurred reading the latest Lucene commit point from disk
226-
*/
227-
public static SequenceNumbers.CommitInfo loadSeqNoInfo(final IndexCommit commit) throws IOException {
228-
final Map<String, String> userData = commit.getUserData();
229-
return SequenceNumbers.loadSeqNoInfoFromLuceneCommit(userData.entrySet());
230-
}
231-
232220
final void ensureOpen() {
233221
if (this.refCounter.refCount() <= 0) {
234222
throw new AlreadyClosedException("store is already closed");

0 commit comments

Comments
 (0)