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

ruby-changes:28508

From: nobu <ko1@a...>
Date: Thu, 2 May 2013 22:12:17 +0900 (JST)
Subject: [ruby-changes:28508] nobu:r40560 (trunk): irb: dead code

nobu	2013-05-02 22:11:55 +0900 (Thu, 02 May 2013)

  New Revision: 40560

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

  Log:
    irb: dead code
    
    * bin/irb: remove dead code from sample/irb.rb.

  Modified files:
    trunk/ChangeLog
    trunk/bin/irb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 40559)
+++ ChangeLog	(revision 40560)
@@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Thu May  2 22:11:47 2013  Nobuyoshi Nakada  <nobu@r...>
+
+	* bin/irb: remove dead code from sample/irb.rb.
+
 Thu May  2 17:32:45 2013  Nobuyoshi Nakada  <nobu@r...>
 
 	* marshal.c (copy_ivar_i): get rid of overwriting already copied
Index: bin/irb
===================================================================
--- bin/irb	(revision 40559)
+++ bin/irb	(revision 40560)
@@ -8,13 +8,4 @@ https://github.com/ruby/ruby/blob/trunk/bin/irb#L8
 
 require "irb"
 
-if __FILE__ == $0
-  IRB.start(__FILE__)
-else
-  # check -e option
-  if /^-e$/ =~ $0
-    IRB.start(__FILE__)
-  else
-    IRB.setup(__FILE__)
-  end
-end
+IRB.start(__FILE__)

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

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