Skip to content

Commit 2abe27e

Browse files
authored
remove unused declarations (#94610)
1 parent f3efc2d commit 2abe27e

File tree

6 files changed

+0
-20
lines changed

6 files changed

+0
-20
lines changed

server/src/main/java/org/elasticsearch/common/settings/KeyStoreWrapper.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,6 @@ public class KeyStoreWrapper implements SecureSettings {
7676

7777
public static final String PROMPT = "Enter password for the elasticsearch keystore : ";
7878

79-
/** An identifier for the type of data that may be stored in a keystore entry. */
80-
private enum EntryType {
81-
STRING,
82-
FILE
83-
}
84-
8579
/** An entry in the keystore. The bytes are opaque and interpreted based on the entry type. */
8680
private static class Entry implements Writeable {
8781
final byte[] bytes;

server/src/main/java/org/elasticsearch/common/util/concurrent/PrioritizedEsThreadPoolExecutor.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
*/
3333
public class PrioritizedEsThreadPoolExecutor extends EsThreadPoolExecutor {
3434

35-
private static final TimeValue NO_WAIT_TIME_VALUE = TimeValue.timeValueMillis(0);
3635
private final AtomicLong insertionOrder = new AtomicLong();
3736
private final Queue<Runnable> current = ConcurrentCollections.newQueue();
3837
private final ScheduledExecutorService timer;

server/src/main/java/org/elasticsearch/index/shard/ShardSplittingQuery.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,6 @@ private final class Visitor extends StoredFieldVisitor {
230230
final LeafReader leafReader;
231231
final StoredFields storedFields;
232232
private int leftToVisit = 2;
233-
private final BytesRef spare = new BytesRef();
234233
private String routing;
235234
private String id;
236235

server/src/main/java/org/elasticsearch/index/translog/TruncateTranslogAction.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
import org.elasticsearch.index.seqno.SequenceNumbers;
2828
import org.elasticsearch.index.shard.RemoveCorruptedShardDataCommand;
2929
import org.elasticsearch.index.shard.ShardPath;
30-
import org.elasticsearch.xcontent.NamedXContentRegistry;
3130

3231
import java.io.IOException;
3332
import java.nio.channels.FileChannel;
@@ -46,11 +45,6 @@
4645
public class TruncateTranslogAction {
4746

4847
protected static final Logger logger = LogManager.getLogger(TruncateTranslogAction.class);
49-
private final NamedXContentRegistry namedXContentRegistry;
50-
51-
public TruncateTranslogAction(NamedXContentRegistry namedXContentRegistry) {
52-
this.namedXContentRegistry = namedXContentRegistry;
53-
}
5448

5549
public static Tuple<RemoveCorruptedShardDataCommand.CleanStatus, String> getCleanStatus(
5650
ShardPath shardPath,

server/src/main/java/org/elasticsearch/tasks/TaskManager.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
import org.elasticsearch.core.Nullable;
3131
import org.elasticsearch.core.Releasable;
3232
import org.elasticsearch.core.Releasables;
33-
import org.elasticsearch.core.TimeValue;
3433
import org.elasticsearch.threadpool.ThreadPool;
3534
import org.elasticsearch.tracing.Tracer;
3635
import org.elasticsearch.transport.TaskTransportChannel;
@@ -58,7 +57,6 @@
5857
import java.util.function.Consumer;
5958

6059
import static org.elasticsearch.core.Strings.format;
61-
import static org.elasticsearch.core.TimeValue.timeValueMillis;
6260
import static org.elasticsearch.http.HttpTransportSettings.SETTING_HTTP_MAX_HEADER_SIZE;
6361

6462
/**
@@ -68,8 +66,6 @@ public class TaskManager implements ClusterStateApplier {
6866

6967
private static final Logger logger = LogManager.getLogger(TaskManager.class);
7068

71-
private static final TimeValue WAIT_FOR_COMPLETION_POLL = timeValueMillis(100);
72-
7369
/** Rest headers that are copied to the task */
7470
private final String[] taskHeaders;
7571
private final ThreadPool threadPool;

server/src/main/java/org/elasticsearch/transport/RemoteClusterAware.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ public abstract class RemoteClusterAware {
3333
public static final String LOCAL_CLUSTER_GROUP_KEY = "";
3434

3535
protected final Settings settings;
36-
private final ClusterNameExpressionResolver clusterNameResolver;
3736
private final String nodeName;
3837
private final boolean isRemoteClusterClientEnabled;
3938

@@ -43,7 +42,6 @@ public abstract class RemoteClusterAware {
4342
*/
4443
protected RemoteClusterAware(Settings settings) {
4544
this.settings = settings;
46-
this.clusterNameResolver = new ClusterNameExpressionResolver();
4745
this.nodeName = Node.NODE_NAME_SETTING.get(settings);
4846
this.isRemoteClusterClientEnabled = DiscoveryNode.isRemoteClusterClient(settings);
4947
}

0 commit comments

Comments
 (0)