Permalink
Browse files

Remove references to source_index and unused code

  • Loading branch information...
1 parent ac1aff3 commit 163a115446595e5dd08d00cca62da57c5b9468da @drbrain drbrain committed May 4, 2011
@@ -1,5 +1,4 @@
require 'rubygems/command'
-require 'rubygems/source_index'
require 'rubygems/dependency_list'
require 'rubygems/uninstaller'
@@ -155,17 +155,5 @@ def find_reverse_dependencies(spec)
result
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
View
@@ -195,8 +195,8 @@ def build_modern_index(index, file, name)
Gem.time "Generated #{name} index" do
open(file, 'wb') do |io|
specs = index.map do |*spec|
- # We have to splat here because latest_specs is an array,
- # while the others are hashes. See the TODO in source_index.rb
+ # We have to splat here because latest_specs is an array, while the
+ # others are hashes.
spec = spec.flatten.last
platform = spec.original_platform

0 comments on commit 163a115

Please sign in to comment.