Permalink
Browse files

Remove deprecated Gem.all_partials

It is described that "will be removed on or after 2011-10".
  • Loading branch information...
kou committed Sep 16, 2012
1 parent 617e83d commit dfad988af2b69b571912d6122daaeaf04c30ef4a
Showing with 0 additions and 31 deletions.
  1. +0 −31 lib/rubygems.rb
View
@@ -210,15 +210,6 @@ def self.detect_gemdeps
end
end
- ##
- # Return all the partial paths in +gemdir+.
-
- def self.all_partials(gemdir)
- Dir[File.join(gemdir, "gems/*")]
- end
-
- private_class_method :all_partials
-
##
# See if a given gem is available.
@@ -543,27 +534,6 @@ def self.host= host
@host = host
end
- ##
- # Return only the latest partial paths in the given +gemdir+.
-
- def self.latest_partials(gemdir)
- latest = {}
- all_partials(gemdir).each do |gp|
- base = File.basename gp
-
- if base.to_s =~ /(.*)-((\d+\.)*\d+)/ then
- name, version = $1, $2
- ver = Gem::Version.new(version)
- if latest[name].nil? || ver > latest[name][0]
- latest[name] = [ver, gp]
- end
- end
- end
- latest.collect { |k,v| v[1] }
- end
-
- private_class_method :latest_partials
-
##
# The index to insert activated gem paths into the $LOAD_PATH.
#
@@ -1251,7 +1221,6 @@ def RbConfig.datadir(package_name) # :nodoc:
module Gem
class << self
extend Gem::Deprecate
- deprecate :all_partials, :none, 2011, 10
deprecate :promote_load_path, :none, 2011, 10
deprecate :available?, "Specification::find_by_name", 2011, 11
deprecate :cache_dir, "Specification#cache_dir", 2011, 11

0 comments on commit dfad988

Please sign in to comment.