Skip to content

Commit

Permalink
Remove references to source_index and unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
drbrain committed May 4, 2011
1 parent ac1aff3 commit 163a115
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 15 deletions.
1 change: 0 additions & 1 deletion lib/rubygems/commands/cleanup_command.rb
@@ -1,5 +1,4 @@
require 'rubygems/command' require 'rubygems/command'
require 'rubygems/source_index'
require 'rubygems/dependency_list' require 'rubygems/dependency_list'
require 'rubygems/uninstaller' require 'rubygems/uninstaller'


Expand Down
12 changes: 0 additions & 12 deletions lib/rubygems/commands/dependency_command.rb
Expand Up @@ -155,17 +155,5 @@ def find_reverse_dependencies(spec)
result result
end end


def find_gems(name, source_index)
specs = {}

spec_list = source_index.search name, options[:version]

spec_list.each do |spec|
specs[spec.full_name] = [source_index, spec]
end

specs
end

end end


4 changes: 2 additions & 2 deletions lib/rubygems/indexer.rb
Expand Up @@ -195,8 +195,8 @@ def build_modern_index(index, file, name)
Gem.time "Generated #{name} index" do Gem.time "Generated #{name} index" do
open(file, 'wb') do |io| open(file, 'wb') do |io|
specs = index.map do |*spec| specs = index.map do |*spec|
# We have to splat here because latest_specs is an array, # We have to splat here because latest_specs is an array, while the
# while the others are hashes. See the TODO in source_index.rb # others are hashes.
spec = spec.flatten.last spec = spec.flatten.last
platform = spec.original_platform platform = spec.original_platform


Expand Down

0 comments on commit 163a115

Please sign in to comment.