diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-11-16 05:18:29 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-11-16 05:18:29 +0000 |
commit | b3cab0dc74da4349a4b478ed0de2b4578da542bc (patch) | |
tree | 6d8c18bec084b6ae9f08817b042cbfaf3c482365 /vm.c | |
parent | ea665dcd8cb817c859f7f87a7d1a457cc823b4e7 (diff) |
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
Diffstat (limited to 'vm.c')
-rw-r--r-- | vm.c | 16 |
1 files changed, 2 insertions, 14 deletions
@@ -1251,20 +1251,7 @@ rb_lastline_set(VALUE val) /* 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) } } +/* in intern.h */ int rb_sourceline(void) { |