Skip to content

Commit 2d1ab2e

Browse files
authored
Remove unused method from AutoCreateIndex (#124176)
The method AutoCreateIndex.shouldAutoCreate(String, ClusterState) is deprecated and not used. This commit removes it.
1 parent 473c4da commit 2d1ab2e

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

server/src/main/java/org/elasticsearch/action/support/AutoCreateIndex.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99

1010
package org.elasticsearch.action.support;
1111

12-
import org.elasticsearch.cluster.ClusterState;
1312
import org.elasticsearch.cluster.metadata.ComposableIndexTemplate;
1413
import org.elasticsearch.cluster.metadata.IndexNameExpressionResolver;
1514
import org.elasticsearch.cluster.metadata.MetadataIndexTemplateService;
@@ -21,7 +20,6 @@
2120
import org.elasticsearch.common.settings.Setting.Property;
2221
import org.elasticsearch.common.settings.Settings;
2322
import org.elasticsearch.core.Booleans;
24-
import org.elasticsearch.core.FixForMultiProject;
2523
import org.elasticsearch.core.Tuple;
2624
import org.elasticsearch.index.IndexNotFoundException;
2725
import org.elasticsearch.indices.SystemIndices;
@@ -58,12 +56,6 @@ public AutoCreateIndex(
5856
clusterSettings.addSettingsUpdateConsumer(AUTO_CREATE_INDEX_SETTING, this::setAutoCreate);
5957
}
6058

61-
@FixForMultiProject
62-
@Deprecated
63-
public boolean shouldAutoCreate(String index, ClusterState state) {
64-
return shouldAutoCreate(index, state.metadata().getProject());
65-
}
66-
6759
/**
6860
* Should the index be auto created?
6961
* @throws IndexNotFoundException if the index doesn't exist and shouldn't be auto created

0 commit comments

Comments
 (0)