diff --git a/core/src/main/java/org/elasticsearch/plugins/Plugin.java b/core/src/main/java/org/elasticsearch/plugins/Plugin.java index 7c98879953f..ce02de4fa83 100644 --- a/core/src/main/java/org/elasticsearch/plugins/Plugin.java +++ b/core/src/main/java/org/elasticsearch/plugins/Plugin.java @@ -70,12 +70,6 @@ public abstract class Plugin { return Settings.Builder.EMPTY_SETTINGS; } - /** - * Called once the given {@link IndexService} is fully constructed but not yet published. - * This is used to initialize plugin services that require acess to index level resources - */ - public void onIndexService(IndexService indexService) {} - /** * Called before a new index is created on a node. The given module can be used to regsiter index-leve * extensions. diff --git a/core/src/main/java/org/elasticsearch/plugins/PluginsService.java b/core/src/main/java/org/elasticsearch/plugins/PluginsService.java index 4fddf7ad838..1db54458cef 100644 --- a/core/src/main/java/org/elasticsearch/plugins/PluginsService.java +++ b/core/src/main/java/org/elasticsearch/plugins/PluginsService.java @@ -247,14 +247,6 @@ public class PluginsService extends AbstractComponent { for (Tuple plugin : plugins) { plugin.v2().onIndexModule(indexModule); } - indexModule.addIndexEventListener(new IndexEventListener() { - @Override - public void afterIndexCreated(IndexService indexService) { - for (Tuple plugin : plugins) { - plugin.v2().onIndexService(indexService); - } - } - }); } /** * Get information about plugins (jvm and site plugins).