[rubygems/rubygems] Removed unused variable

https://github.com/rubygems/rubygems/commit/68cc941bed
This commit is contained in:
Hiroshi SHIBATA 2023-06-22 15:25:22 +09:00 committed by git
parent 65c2179336
commit a99d0c1555

View File

@ -38,8 +38,6 @@ class Gem::Resolver
## ##
# List of dependencies that could not be found in the configured sources. # List of dependencies that could not be found in the configured sources.
attr_reader :missing
attr_reader :stats attr_reader :stats
## ##
@ -106,7 +104,6 @@ class Gem::Resolver
@development = false @development = false
@development_shallow = false @development_shallow = false
@ignore_dependencies = false @ignore_dependencies = false
@missing = []
@skip_gems = {} @skip_gems = {}
@soft_missing = false @soft_missing = false
@stats = Gem::Resolver::Stats.new @stats = Gem::Resolver::Stats.new
@ -227,7 +224,6 @@ class Gem::Resolver
def search_for(dependency) def search_for(dependency)
possibles, all = find_possible(dependency) possibles, all = find_possible(dependency)
if !@soft_missing && possibles.empty? if !@soft_missing && possibles.empty?
@missing << dependency
exc = Gem::UnsatisfiableDependencyError.new dependency, all exc = Gem::UnsatisfiableDependencyError.new dependency, all
exc.errors = @set.errors exc.errors = @set.errors
raise exc raise exc
@ -274,7 +270,6 @@ class Gem::Resolver
end end
def allow_missing?(dependency) def allow_missing?(dependency)
@missing << dependency
@soft_missing @soft_missing
end end