summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
authorglass <glass@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-06-23 04:19:53 +0000
committerglass <glass@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-06-23 04:19:53 +0000
commit2fd3a2e2f7481bc2e93326835d173af594854b5e (patch)
treedf2ff84e9714cb5e4577524ba307ee32ef7719d4 /io.c
parent02fa3456cee3f424230ff29cbf8f0415c381c9ba (diff)
Revert "Allow IO#reopen to take a block"
This reverts r59142. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59150 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r--io.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/io.c b/io.c
index 8b0064b2dc..3482602326 100644
--- a/io.c
+++ b/io.c
@@ -7058,10 +7058,6 @@ rb_io_reopen(int argc, VALUE *argv, VALUE file)
}
}
- if (rb_block_given_p()) {
- return rb_ensure(rb_yield, file, io_close, file);
- }
-
return file;
}