From fea8676a6c58ffb3b5aac6a835865e81d6c209e6 Mon Sep 17 00:00:00 2001 From: Simon Willnauer Date: Thu, 28 Jan 2016 17:14:52 +0100 Subject: [PATCH] remove dead code --- .../main/java/org/apache/lucene/store/SmbDirectoryWrapper.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/plugins/store-smb/src/main/java/org/apache/lucene/store/SmbDirectoryWrapper.java b/plugins/store-smb/src/main/java/org/apache/lucene/store/SmbDirectoryWrapper.java index 1e783fdd6c5..6cd3d2441af 100644 --- a/plugins/store-smb/src/main/java/org/apache/lucene/store/SmbDirectoryWrapper.java +++ b/plugins/store-smb/src/main/java/org/apache/lucene/store/SmbDirectoryWrapper.java @@ -58,8 +58,6 @@ public final class SmbDirectoryWrapper extends FilterDirectory { */ static final int CHUNK_SIZE = 8192; - private final String name; - public SmbFSIndexOutput(String name) throws IOException { super("SmbFSIndexOutput(path=\"" + fsDirectory.getDirectory().resolve(name) + "\")", new FilterOutputStream(Channels.newOutputStream(Files.newByteChannel(fsDirectory.getDirectory().resolve(name), StandardOpenOption.CREATE, StandardOpenOption.TRUNCATE_EXISTING, StandardOpenOption.READ, StandardOpenOption.WRITE))) { // This implementation ensures, that we never write more than CHUNK_SIZE bytes: @@ -73,7 +71,6 @@ public final class SmbDirectoryWrapper extends FilterDirectory { } } }, CHUNK_SIZE); - this.name = name; } } }