From 62eae2683debd5cacb271b54dac7645e3490a582 Mon Sep 17 00:00:00 2001 From: Bart de Water Date: Tue, 24 Dec 2019 16:25:40 -0500 Subject: [PATCH] Remove unused loader argument from Plugin initializer --- History.md | 3 +++ lib/puma/plugin.rb | 6 +----- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/History.md b/History.md index 8d14b0da..566ef9c5 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 9400c94d..7c60be97 100644 --- a/lib/puma/plugin.rb +++ b/lib/puma/plugin.rb @@ -10,7 +10,7 @@ module Puma def create(name) if cls = Plugins.find(name) - plugin = cls.new(Plugin) + plugin = cls.new @instances << plugin return plugin end @@ -104,10 +104,6 @@ module Puma Plugins.register name, cls end - def initialize(loader) - @loader = loader - end - def in_background(&blk) Plugins.add_background blk end