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

ruby-changes:38309

From: nobu <ko1@a...>
Date: Sun, 26 Apr 2015 07:20:07 +0900 (JST)
Subject: [ruby-changes:38309] nobu:r50390 (trunk): vm_trace.c: unnecessary method undef

nobu	2015-04-26 07:19:17 +0900 (Sun, 26 Apr 2015)

  New Revision: 50390

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

  Log:
    vm_trace.c: unnecessary method undef
    
    * vm_trace.c (Init_vm_trace): remove unnecessary method undef,
      that is overridden just after it.

  Modified files:
    trunk/vm_trace.c
Index: vm_trace.c
===================================================================
--- vm_trace.c	(revision 50389)
+++ vm_trace.c	(revision 50390)
@@ -1447,7 +1447,6 @@ Init_vm_trace(void) https://github.com/ruby/ruby/blob/trunk/vm_trace.c#L1447
      */
     rb_cTracePoint = rb_define_class("TracePoint", rb_cObject);
     rb_undef_alloc_func(rb_cTracePoint);
-    rb_undef_method(CLASS_OF(rb_cTracePoint), "new");
     rb_define_singleton_method(rb_cTracePoint, "new", tracepoint_new_s, -1);
     /*
      * Document-method: trace

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

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