MINOR: Remove pointless method form compiledPipeline

Fixes #8911
This commit is contained in:
Armin 2018-01-04 15:53:31 +01:00 committed by Armin Braun
parent a007926fde
commit 67e2ca354d
2 changed files with 4 additions and 6 deletions

View file

@ -330,7 +330,10 @@ module LogStash; class JavaPipeline < JavaBasePipeline
# @param plugins [Array[Plugin]] the list of plugins to register
def register_plugins(plugins)
registered = []
plugins.each { |plugin| registered << @lir_execution.registerPlugin(plugin) }
plugins.each do |plugin|
plugin.register
registered << plugin
end
rescue => e
registered.each(&:do_close)
raise e

View file

@ -79,11 +79,6 @@ public final class CompiledPipeline {
return inputs;
}
public RubyIntegration.Plugin registerPlugin(final RubyIntegration.Plugin plugin) {
plugin.register();
return plugin;
}
/**
* This method contains the actual compilation of the {@link Dataset} representing the
* underlying pipeline from the Queue to the outputs.