зеркало из https://github.com/github/ruby.git
* lib/irb/init.rb: removed unreachable code.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47102 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
47f8840e32
Коммит
9b9a9249f4
|
@ -1,3 +1,7 @@
|
|||
Fri Aug 8 16:40:59 2014 SHIBATA Hiroshi <shibata.hiroshi@gmail.com>
|
||||
|
||||
* lib/irb/init.rb: removed unreachable code.
|
||||
|
||||
Fri Aug 8 16:34:22 2014 SHIBATA Hiroshi <shibata.hiroshi@gmail.com>
|
||||
|
||||
* lib/drb/drb.rb: removed unreachable code.
|
||||
|
|
|
@ -122,8 +122,6 @@ module IRB # :nodoc:
|
|||
@CONF[:LC_MESSAGES].load("irb/error.rb")
|
||||
end
|
||||
|
||||
FEATURE_IOPT_CHANGE_VERSION = "1.9.0"
|
||||
|
||||
# option analyzing
|
||||
def IRB.parse_opts
|
||||
load_path = []
|
||||
|
@ -220,10 +218,8 @@ module IRB # :nodoc:
|
|||
break
|
||||
end
|
||||
end
|
||||
if RUBY_VERSION >= FEATURE_IOPT_CHANGE_VERSION
|
||||
load_path.collect! do |path|
|
||||
/\A\.\// =~ path ? path : File.expand_path(path)
|
||||
end
|
||||
load_path.collect! do |path|
|
||||
/\A\.\// =~ path ? path : File.expand_path(path)
|
||||
end
|
||||
$LOAD_PATH.unshift(*load_path)
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче