ruby-changes:48672
From: ko1 <ko1@a...>
Date: Thu, 16 Nov 2017 14:18:33 +0900 (JST)
Subject: [ruby-changes:48672] ko1:r60788 (trunk): remove an unused function.
ko1 2017-11-16 14:18:29 +0900 (Thu, 16 Nov 2017) New Revision: 60788 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=60788 Log: remove an unused function. * vm.c (rb_sourcefilename): removed because nobody use it. Modified files: trunk/internal.h trunk/vm.c Index: vm.c =================================================================== --- vm.c (revision 60787) +++ vm.c (revision 60788) @@ -1251,20 +1251,7 @@ rb_lastline_set(VALUE val) https://github.com/ruby/ruby/blob/trunk/vm.c#L1251 /* misc */ -VALUE -rb_sourcefilename(void) -{ - const rb_execution_context_t *ec = GET_EC(); - const rb_control_frame_t *cfp = rb_vm_get_ruby_level_next_cfp(ec, ec->cfp); - - if (cfp) { - return rb_iseq_path(cfp->iseq); - } - else { - return Qnil; - } -} - +/* in intern.h */ const char * rb_sourcefile(void) { @@ -1279,6 +1266,7 @@ rb_sourcefile(void) https://github.com/ruby/ruby/blob/trunk/vm.c#L1266 } } +/* in intern.h */ int rb_sourceline(void) { Index: internal.h =================================================================== --- internal.h (revision 60787) +++ internal.h (revision 60788) @@ -1766,7 +1766,6 @@ void rb_thread_recycle_stack_release(VAL https://github.com/ruby/ruby/blob/trunk/internal.h#L1766 void rb_vm_change_state(void); void rb_vm_inc_const_missing_count(void); const void **rb_vm_get_insns_address_table(void); -VALUE rb_sourcefilename(void); VALUE rb_source_location(int *pline); const char *rb_source_loc(int *pline); void rb_vm_pop_cfunc_frame(void); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/