Skip to content

Commit

Permalink
Remove unused LoadError::REGEXPS constant
Browse files Browse the repository at this point in the history
since 4ad1a52, `LoadError::REGEXPS` is no longer needed.
  • Loading branch information
y-yagi committed Aug 3, 2017
1 parent 7d69903 commit 23106de
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions activesupport/lib/active_support/core_ext/load_error.rb
@@ -1,13 +1,6 @@
# frozen_string_literal: true

class LoadError
REGEXPS = [
/^no such file to load -- (.+)$/i,
/^Missing \w+ (?:file\s*)?([^\s]+.rb)$/i,
/^Missing API definition file in (.+)$/i,
/^cannot load such file -- (.+)$/i,
]

# Returns true if the given path name (except perhaps for the ".rb"
# extension) is the missing file which caused the exception to be raised.
def is_missing?(location)
Expand Down

0 comments on commit 23106de

Please sign in to comment.