[前][次][番号順一覧][スレッド一覧]

ruby-changes:48444

From: ko1 <ko1@a...>
Date: Mon, 30 Oct 2017 00:17:34 +0900 (JST)
Subject: [ruby-changes:48444] ko1:r60558 (trunk): remove unused functions.

ko1	2017-10-30 00:17:29 +0900 (Mon, 30 Oct 2017)

  New Revision: 60558

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=60558

  Log:
    remove unused functions.
    
    * vm.c (rb_frame_method_id_and_class): removed because nobody use it.
    
    * vm.c (rb_thread_current_status): ditto.

  Modified files:
    trunk/vm.c
Index: vm.c
===================================================================
--- vm.c	(revision 60557)
+++ vm.c	(revision 60558)
@@ -2068,36 +2068,6 @@ rb_ec_frame_method_id_and_class(const rb https://github.com/ruby/ruby/blob/trunk/vm.c#L2068
     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)

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]