diff --git a/History.md b/History.md index 8d14b0daed..566ef9c57e 100644 --- a/History.md +++ b/History.md @@ -10,6 +10,9 @@ * Your bugfix goes here (#Github Number) * Windows update extconf.rb for use with ssp and varied Ruby/MSYS2 combinations (#2069) +* Refactor + * Remove unused loader argument from Plugin initializer (#2095) + ## 4.3.1 and 3.12.2 / 2019-12-05 * Security diff --git a/lib/puma/plugin.rb b/lib/puma/plugin.rb index 9400c94d00..7c60be97de 100644 --- a/lib/puma/plugin.rb +++ b/lib/puma/plugin.rb @@ -10,7 +10,7 @@ def initialize def create(name) if cls = Plugins.find(name) - plugin = cls.new(Plugin) + plugin = cls.new @instances << plugin return plugin end @@ -104,10 +104,6 @@ def self.create(&blk) Plugins.register name, cls end - def initialize(loader) - @loader = loader - end - def in_background(&blk) Plugins.add_background blk end