diff --git a/lib/bundler/multilock.rb b/lib/bundler/multilock.rb index b5cfa59..40f689d 100644 --- a/lib/bundler/multilock.rb +++ b/lib/bundler/multilock.rb @@ -202,7 +202,6 @@ def after_install_all(install: true) Bundler.ui.info("Syncing to #{relative_lockfile}...") if attempts == 1 synced_any = true - specs = lockfile_name.exist? ? cache.specs(lockfile_name) : {} parent_lockfile_name = lockfile_definition[:parent] parent_root = parent_lockfile_name.dirname parent_specs = cache.specs(parent_lockfile_name) @@ -253,19 +252,6 @@ def after_install_all(install: true) spec, parent_spec) - # look through all reverse dependencies; if any of them say it - # has to come from self, due to conflicts, then this gem has - # to come from self as well - [cache.reverse_dependencies(lockfile_name), - cache.reverse_dependencies(parent_lockfile_name)].each do |reverse_dependencies| - break if precedence == :self - - reverse_dependencies[spec.name].each do |dep_name| - precedence = check_precedence.call(specs[dep_name], parent_specs[dep_name]) - break if precedence == :self - end - end - spec_precedences[spec.name] = precedence || :parent end