diff options
author | Homu <homu@barosl.com> | 2016-05-16 12:13:01 +0900 |
---|---|---|
committer | Homu <homu@barosl.com> | 2016-05-16 12:13:01 +0900 |
commit | 495dc7e0631cfb5cdac685250fcb41c090dfa610 (patch) | |
tree | 34dad839fc03aac051c2abd4576bb1b0149053f8 | |
parent | c6a5a1cadd4241f3c3665f59e206a2aef5b153dc (diff) | |
parent | 24f2c4b59fd1332e29c69459417f565d42948a5b (diff) | |
download | bundler-495dc7e0631cfb5cdac685250fcb41c090dfa610.tar.gz |
Auto merge of #4471 - grzuy:remove_unused_method, r=indirect
Cleans up unused Runtime#dependencies_for method
Hi!
I was checking out things in the code and couldn't find any existent usage of this method. I might be missing something but opening the PR just in case.
The method seems to be publicly accessible if someone goes `Bundler.load.dependencies_for(...)` e.g., but i am assuming that's not something "officially supported" anyways?
-rw-r--r-- | lib/bundler/runtime.rb | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/lib/bundler/runtime.rb b/lib/bundler/runtime.rb index 41f3481931..6f02ad8512 100644 --- a/lib/bundler/runtime.rb +++ b/lib/bundler/runtime.rb @@ -107,14 +107,6 @@ module Bundler end end - def dependencies_for(*groups) - if groups.empty? - dependencies - else - dependencies.select {|d| (groups & d.groups).any? } - end - end - alias_method :gems, :specs def cache(custom_path = nil) |