[前][次][番号順一覧][スレッド一覧]

ruby-changes:35020

From: hsbt <ko1@a...>
Date: Fri, 8 Aug 2014 16:41:43 +0900 (JST)
Subject: [ruby-changes:35020] hsbt:r47102 (trunk): * lib/irb/init.rb: removed unreachable code.

hsbt	2014-08-08 16:41:33 +0900 (Fri, 08 Aug 2014)

  New Revision: 47102

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=47102

  Log:
    * lib/irb/init.rb: removed unreachable code.

  Modified files:
    trunk/ChangeLog
    trunk/lib/irb/init.rb
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 47101)
+++ ChangeLog	(revision 47102)
@@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Fri Aug  8 16:40:59 2014  SHIBATA Hiroshi  <shibata.hiroshi@g...>
+
+	* lib/irb/init.rb: removed unreachable code.
+
 Fri Aug  8 16:34:22 2014  SHIBATA Hiroshi  <shibata.hiroshi@g...>
 
 	* lib/drb/drb.rb: removed unreachable code.
Index: lib/irb/init.rb
===================================================================
--- lib/irb/init.rb	(revision 47101)
+++ lib/irb/init.rb	(revision 47102)
@@ -122,8 +122,6 @@ module IRB # :nodoc: https://github.com/ruby/ruby/blob/trunk/lib/irb/init.rb#L122
     @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: https://github.com/ruby/ruby/blob/trunk/lib/irb/init.rb#L218
 	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)
 

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]