aboutsummaryrefslogtreecommitdiffstats
path: root/io.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-08-20 09:43:24 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-08-20 09:43:24 +0000
commit76a3923c99ed79a52ca4d04c694da079625d4180 (patch)
tree08c3a232bfbd282a50171080a2fb3938b783d034 /io.c
parenta5c0ee40b1bf98201d45f12aa040b2be1ec0405a (diff)
downloadruby-76a3923c99ed79a52ca4d04c694da079625d4180.tar.gz
* io.c (rb_open_file): don't lookup :mode and :perm in opt. it is
useless because vmode and perm is overwritten by rb_scan_args anyway. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18722 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r--io.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/io.c b/io.c
index 3f67d8093c..f2c78397c9 100644
--- a/io.c
+++ b/io.c
@@ -4462,11 +4462,6 @@ rb_open_file(int argc, VALUE *argv, VALUE io)
if (0 < argc) {
opt = rb_check_convert_type(argv[argc-1], T_HASH, "Hash", "to_hash");
if (!NIL_P(opt)) {
- VALUE v;
- v = rb_hash_aref(opt, sym_mode);
- if (!NIL_P(v)) vmode = v;
- v = rb_hash_aref(opt, sym_perm);
- if (!NIL_P(v)) perm = v;
argc -= 1;
}
}