Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused loader argument from Plugin initializer #2095

Merged
merged 1 commit into from Dec 25, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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