remove an unused function.
* vm.c (rb_sourcefilename): removed because nobody use it. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60788 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
ea665dcd8c
commit
b3cab0dc74
@ -1766,7 +1766,6 @@ void rb_thread_recycle_stack_release(VALUE *);
|
|||||||
void rb_vm_change_state(void);
|
void rb_vm_change_state(void);
|
||||||
void rb_vm_inc_const_missing_count(void);
|
void rb_vm_inc_const_missing_count(void);
|
||||||
const void **rb_vm_get_insns_address_table(void);
|
const void **rb_vm_get_insns_address_table(void);
|
||||||
VALUE rb_sourcefilename(void);
|
|
||||||
VALUE rb_source_location(int *pline);
|
VALUE rb_source_location(int *pline);
|
||||||
const char *rb_source_loc(int *pline);
|
const char *rb_source_loc(int *pline);
|
||||||
void rb_vm_pop_cfunc_frame(void);
|
void rb_vm_pop_cfunc_frame(void);
|
||||||
|
16
vm.c
16
vm.c
@ -1251,20 +1251,7 @@ rb_lastline_set(VALUE val)
|
|||||||
|
|
||||||
/* misc */
|
/* misc */
|
||||||
|
|
||||||
VALUE
|
/* in intern.h */
|
||||||
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;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const char *
|
const char *
|
||||||
rb_sourcefile(void)
|
rb_sourcefile(void)
|
||||||
{
|
{
|
||||||
@ -1279,6 +1266,7 @@ rb_sourcefile(void)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* in intern.h */
|
||||||
int
|
int
|
||||||
rb_sourceline(void)
|
rb_sourceline(void)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user