diff options
Diffstat (limited to 'lib/rubygems/command.rb')
-rw-r--r-- | lib/rubygems/command.rb | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/lib/rubygems/command.rb b/lib/rubygems/command.rb index c3a448bc21..1320d9f49f 100644 --- a/lib/rubygems/command.rb +++ b/lib/rubygems/command.rb @@ -23,15 +23,6 @@ class Gem::Command Gem::OptionParser.accept Symbol, &:to_sym ## - # Names of commands that should print "Defaulting to user installation" - # warning. - - COMMANDS_WITH_AUTO_INSTALL_DIR_WARNING = [ - "install", - "update", - ].freeze - - ## # The name of the command. attr_reader :command @@ -332,11 +323,6 @@ class Gem::Command elsif @when_invoked @when_invoked.call options else - if COMMANDS_WITH_AUTO_INSTALL_DIR_WARNING.include?(@command) && \ - Gem.paths.auto_user_install && !options[:install_dir] && !options[:user_install] - self.ui.say "Defaulting to user installation because default installation directory (#{Gem.default_dir}) is not writable." - end - execute end ensure |