Skip to content

Commit

Permalink
Remove unused loader argument from Plugin initializer
Browse files Browse the repository at this point in the history
  • Loading branch information
bdewater committed Dec 24, 2019
1 parent b646fc5 commit 62eae26
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 3 additions & 0 deletions History.md
Expand Up @@ -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
Expand Down
6 changes: 1 addition & 5 deletions lib/puma/plugin.rb
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 62eae26

Please sign in to comment.