[rubygems/rubygems] Remove unused code

https://github.com/rubygems/rubygems/commit/b88c43a28c
This commit is contained in:
David Rodríguez 2022-12-15 12:22:48 +01:00 коммит произвёл Hiroshi SHIBATA
Родитель d1533f20f1
Коммит 16b36a5b0c
1 изменённых файлов: 0 добавлений и 14 удалений

Просмотреть файл

@ -16,7 +16,6 @@ module Bundler
:locked_deps,
:locked_gems,
:platforms,
:requires,
:ruby_version,
:lockfile,
:gemfiles
@ -145,8 +144,6 @@ module Bundler
@dependency_changes = converge_dependencies
@local_changes = converge_locals
@requires = compute_requires
end
def gem_version_promoter
@ -871,17 +868,6 @@ module Bundler
current == proposed
end
def compute_requires
dependencies.reduce({}) do |requires, dep|
next requires unless dep.should_include?
requires[dep.name] = Array(dep.autorequire || dep.name).map do |file|
# Allow `require: true` as an alias for `require: <name>`
file == true ? dep.name : file
end
requires
end
end
def additional_base_requirements_for_resolve(last_resolve)
return [] unless @locked_gems && unlocking? && !sources.expired_sources?(@locked_gems.sources)
converge_specs(@originally_locked_specs - last_resolve).map do |locked_spec|