summaryrefslogtreecommitdiff
path: root/lib/rubygems/name_tuple.rb
diff options
context:
space:
mode:
authorKarol Bucek <kares@users.noreply.github.com>2020-06-22 23:15:45 +0200
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2020-07-31 21:07:19 +0900
commite7b6e0ff5823c422cd3e508d2b7104a91a2e36f6 (patch)
tree7fa2e7037eeaee1a7fc79225c61fecbbc2fd4b35 /lib/rubygems/name_tuple.rb
parentc3b480b7764e7854b42c212e77a0ffe402dba6cb (diff)
[rubygems/rubygems] remove explicit require(s) for auto-loaded constant(s)
the Gem module's auto-loads will handle loading these as needed, this started as a redundancy found in *rubygems.rb* which had: `autoload :Specification, 'rubygems/specification'` as well as `require 'rubygems/specification'` https://github.com/rubygems/rubygems/commit/43ceae7ac0
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3379
Diffstat (limited to 'lib/rubygems/name_tuple.rb')
-rw-r--r--lib/rubygems/name_tuple.rb2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/rubygems/name_tuple.rb b/lib/rubygems/name_tuple.rb
index a3fbe950a5..cb5604e8dd 100644
--- a/lib/rubygems/name_tuple.rb
+++ b/lib/rubygems/name_tuple.rb
@@ -4,8 +4,6 @@
# Represents a gem of name +name+ at +version+ of +platform+. These
# wrap the data returned from the indexes.
-require 'rubygems/platform'
-
class Gem::NameTuple
def initialize(name, version, platform="ruby")
@name = name