Skip to content

Commit 334cb55

Browse files
committed
remove orphan method
1 parent b6fd030 commit 334cb55

1 file changed

Lines changed: 0 additions & 11 deletions

File tree

lib/pluginmanager/bundler/logstash_uninstall.rb

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -34,17 +34,6 @@ def initialize(gemfile_path, lockfile_path)
3434
@lockfile_path = lockfile_path
3535
end
3636

37-
# To be uninstalled the candidate gems need to be standalone.
38-
def dependants_gems(gem_name)
39-
builder = Dsl.new
40-
builder.eval_gemfile(::File.join(::File.dirname(gemfile_path), "original gemfile"), File.read(gemfile_path))
41-
definition = builder.to_definition(lockfile_path, {})
42-
43-
definition.specs
44-
.select { |spec| spec.dependencies.collect(&:name).include?(gem_name) }
45-
.collect(&:name).sort.uniq
46-
end
47-
4837
def uninstall!(gems_to_remove)
4938
gems_to_remove = Array(gems_to_remove)
5039

0 commit comments

Comments
 (0)