summaryrefslogtreecommitdiff
path: root/vm_eval.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-10-06 09:49:53 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-10-06 09:49:53 +0000
commit72cf24c813aa788366ef4a6fc0be0491cdcaaf95 (patch)
tree2d6ed7860828db1dc997109bacd77bc0cb661cba /vm_eval.c
parentaa4de7328d3126288282c76a56b49a544de5e9a3 (diff)
* method.h: remove METHOD_ENTRY_SAFE(me) and related code
because $SAFE = 3 and 4 is not available. Now, $SAFE is not checked on method dispatch at all. * vm_eval.c, vm_insnhelper.c, vm_method.c: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52058 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_eval.c')
-rw-r--r--vm_eval.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/vm_eval.c b/vm_eval.c
index 3461966..305455e 100644
--- a/vm_eval.c
+++ b/vm_eval.c
@@ -601,10 +601,6 @@ rb_method_call_status(rb_thread_t *th, const rb_callable_method_entry_t *me, cal
return MISSING_PROTECTED;
}
}
-
- if (METHOD_ENTRY_SAFE(me) > th->safe_level) {
- rb_raise(rb_eSecurityError, "calling insecure method: %"PRIsVALUE, rb_id2str(me->called_id));
- }
}
}