summaryrefslogtreecommitdiff
path: root/lib/rubygems/remote_fetcher.rb
diff options
context:
space:
mode:
-rw-r--r--lib/rubygems/remote_fetcher.rb14
1 files changed, 0 insertions, 14 deletions
@@ -7,7 +7,6 @@ require 'rubygems/uri_formatter'
require 'rubygems/uri_parsing'
require 'rubygems/user_interaction'
require 'resolv'
-require 'rubygems/deprecate'
##
# RemoteFetcher handles the details of fetching gems and gem information from
@@ -16,8 +15,6 @@ require 'rubygems/deprecate'
class Gem::RemoteFetcher
include Gem::UserInteraction
- extend Gem::Deprecate
-
include Gem::UriParsing
##
@@ -310,17 +307,6 @@ class Gem::RemoteFetcher
end
##
- # Returns the size of +uri+ in bytes.
-
- def fetch_size(uri)
- response = fetch_path(uri, nil, true)
-
- response['content-length'].to_i
- end
-
- deprecate :fetch_size, :none, 2019, 12
-
- ##
# Performs a Net::HTTP request of type +request_class+ on +uri+ returning
# a Net::HTTP response object. request maintains a table of persistent
# connections to reduce connect overhead.