aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2020-05-05 11:49:35 +0200
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2020-05-08 14:13:29 +0900
commit15a4b7d7693891831cd956def7108481aa86ddb2 (patch)
tree3e2cd50287cc034c598c51865fe81bb81db16821
parentc832e3faa48d8673af80391b2b6bec4a461455b0 (diff)
downloadruby-15a4b7d7693891831cd956def7108481aa86ddb2.tar.gz
[rubygems/rubygems] Remove unnecessary code
This list of exceptions is no longer rescued since 1f03275ff3faa1c808d3a3b89ef5db62dc2eb2ba. https://github.com/rubygems/rubygems/commit/6e71e7be67
-rw-r--r--lib/rubygems/indexer.rb8
1 files changed, 0 insertions, 8 deletions
diff --git a/lib/rubygems/indexer.rb b/lib/rubygems/indexer.rb
index 75bd824c9e..262836a7b3 100644
--- a/lib/rubygems/indexer.rb
+++ b/lib/rubygems/indexer.rb
@@ -4,14 +4,6 @@ require 'rubygems/package'
require 'time'
require 'tmpdir'
-rescue_exceptions = [LoadError]
-begin
- require 'bundler/errors'
-rescue LoadError # this rubygems + old ruby
-else # this rubygems + ruby trunk with bundler
- rescue_exceptions << Bundler::GemfileNotFound
-end
-
##
# Top level class for building the gem repository index.