From c7c173a6185f8fe3c9cf5116a2362af95247a5f7 Mon Sep 17 00:00:00 2001 From: ko1 Date: Sun, 29 Oct 2017 15:17:29 +0000 Subject: remove unused functions. * vm.c (rb_frame_method_id_and_class): removed because nobody use it. * vm.c (rb_thread_current_status): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60558 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- vm.c | 30 ------------------------------ 1 file changed, 30 deletions(-) (limited to 'vm.c') diff --git a/vm.c b/vm.c index 146a255e99..b15ea705c3 100644 --- a/vm.c +++ b/vm.c @@ -2068,36 +2068,6 @@ rb_ec_frame_method_id_and_class(const rb_execution_context_t *ec, ID *idp, ID *c return rb_vm_control_frame_id_and_class(ec->cfp, idp, called_idp, klassp); } -int -rb_frame_method_id_and_class(ID *idp, VALUE *klassp) -{ - return rb_ec_frame_method_id_and_class(GET_EC(), idp, 0, klassp); -} - -VALUE -rb_thread_current_status(const rb_thread_t *th) -{ - const rb_control_frame_t *cfp = th->ec->cfp; - const rb_callable_method_entry_t *me; - VALUE str = Qnil; - - if (cfp->iseq != 0) { - if (cfp->pc != 0) { - const rb_iseq_t *iseq = cfp->iseq; - int line_no = rb_vm_get_sourceline(cfp); - str = rb_sprintf("%"PRIsVALUE":%d:in `%"PRIsVALUE"'", - rb_iseq_path(iseq), line_no, iseq->body->location.label); - } - } - else if ((me = rb_vm_frame_method_entry(cfp)) && me->def->original_id) { - str = rb_sprintf("`%"PRIsVALUE"#%"PRIsVALUE"' (cfunc)", - rb_class_path(me->owner), - rb_id2str(me->def->original_id)); - } - - return str; -} - VALUE rb_vm_call_cfunc(VALUE recv, VALUE (*func)(VALUE), VALUE arg, VALUE block_handler, VALUE filename) -- cgit v1.2.3