diff options
Diffstat (limited to 'vm_trace.c')
-rw-r--r-- | vm_trace.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/vm_trace.c b/vm_trace.c index d0bcc3a498..48d4e340e0 100644 --- a/vm_trace.c +++ b/vm_trace.c @@ -449,7 +449,6 @@ static void call_trace_func(rb_event_flag_t, VALUE data, VALUE self, ID id, VALU static VALUE set_trace_func(VALUE obj, VALUE trace) { - rb_secure(4); rb_remove_event_hook(call_trace_func); @@ -489,7 +488,6 @@ thread_add_trace_func_m(VALUE obj, VALUE trace) { rb_thread_t *th; - rb_secure(4); GetThreadPtr(obj, th); thread_add_trace_func(th, trace); return trace; @@ -511,7 +509,6 @@ thread_set_trace_func_m(VALUE obj, VALUE trace) { rb_thread_t *th; - rb_secure(4); GetThreadPtr(obj, th); rb_threadptr_remove_event_hook(th, call_trace_func, Qundef); @@ -973,7 +970,6 @@ rb_tracepoint_enable(VALUE tpval) { rb_tp_t *tp; - rb_secure(4); tp = tpptr(tpval); if (tp->target_th) { @@ -993,7 +989,6 @@ rb_tracepoint_disable(VALUE tpval) { rb_tp_t *tp; - rb_secure(4); tp = tpptr(tpval); if (tp->target_th) { |