diff options
author | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-05-24 06:29:48 +0000 |
---|---|---|
committer | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-05-24 06:29:48 +0000 |
commit | 956dead48069a07eb1211283ae5b276ef45f6768 (patch) | |
tree | a674d5c63e71b3e1d0544c31786f1f0c52272d30 /vm_insnhelper.c | |
parent | f52d9a169ba5129554f02cbf0a68f48a3c288b1e (diff) |
* compile.c (iseq_set_exception_table, NODE_WHILE, NODE_NEXT): remove
special handling that decrements sp in CATCH_TYPE_NEXT for NODE_WHILE.
* vm.c (vm_eval_body), vm_insnhelper.c (vm_throw): remove unused code.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16568 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_insnhelper.c')
-rw-r--r-- | vm_insnhelper.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/vm_insnhelper.c b/vm_insnhelper.c index bf9ded1313..6fb867a9b9 100644 --- a/vm_insnhelper.c +++ b/vm_insnhelper.c @@ -1204,12 +1204,7 @@ vm_throw(rb_thread_t *th, rb_control_frame_t *reg_cfp, VALUE *pt = 0; int i; if (flag != 0) { - if (throw_state & 0x4000) { - pt = (void *)1; - } - else { - pt = 0; - } + pt = (void *) 1; } else { if (state == TAG_BREAK) { |