diff --git a/src/main/java/org/elasticsearch/index/store/Store.java b/src/main/java/org/elasticsearch/index/store/Store.java index 683a0ba28b8..75e8c95edf5 100644 --- a/src/main/java/org/elasticsearch/index/store/Store.java +++ b/src/main/java/org/elasticsearch/index/store/Store.java @@ -500,27 +500,6 @@ public class Store extends AbstractIndexShardComponent implements CloseableIndex return Store.this.codecService; } - @Override - public IndexInput openInput(String name, IOContext context) throws IOException { - IndexInput in = super.openInput(name, context); - boolean success = false; - try { - // Only for backward comp. since we now use Lucene codec compression - if (name.endsWith(".fdt") || name.endsWith(".tvf")) { - Compressor compressor = CompressorFactory.compressor(in); - if (compressor != null) { - in = compressor.indexInput(in); - } - } - success = true; - } finally { - if (!success) { - IOUtils.closeWhileHandlingException(in); - } - } - return in; - } - @Override public void close() throws IOException { assert false : "Nobody should close this directory except of the Store itself";