summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-03-09 04:57:51 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-03-09 04:57:51 (GMT)
commitdbbccb3cff9dd95a7678ff6661ff4cc30fc7af1c (patch)
tree1f54888e4375a57dd6d021963f74ec5d232ec80c /io.c
parent140d7fd95d82d7156bbb798ad9732ff9f7e4f14c (diff)
io.c: duplicate code
* io.c (rb_io_close_m): remove duplicate check. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49901 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r--io.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/io.c b/io.c
index 5d2f4b6..4287d96 100644
--- a/io.c
+++ b/io.c
@@ -4427,7 +4427,6 @@ rb_io_close_m(VALUE io)
if (fptr->fd < 0) {
return Qnil;
}
- rb_io_check_closed(RFILE(io)->fptr);
rb_io_close(io);
return Qnil;
}