ruby-changes:37820
From: nobu <ko1@a...>
Date: Mon, 9 Mar 2015 13:58:05 +0900 (JST)
Subject: [ruby-changes:37820] nobu:r49901 (trunk): io.c: duplicate code
nobu 2015-03-09 13:57:51 +0900 (Mon, 09 Mar 2015) New Revision: 49901 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=49901 Log: io.c: duplicate code * io.c (rb_io_close_m): remove duplicate check. Modified files: trunk/io.c Index: io.c =================================================================== --- io.c (revision 49900) +++ io.c (revision 49901) @@ -4427,7 +4427,6 @@ rb_io_close_m(VALUE io) https://github.com/ruby/ruby/blob/trunk/io.c#L4427 if (fptr->fd < 0) { return Qnil; } - rb_io_check_closed(RFILE(io)->fptr); rb_io_close(io); return Qnil; } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/