aboutsummaryrefslogtreecommitdiffstats
path: root/proc.c
diff options
context:
space:
mode:
author卜部昌平 <shyouhei@ruby-lang.org>2019-11-13 12:41:39 +0900
committer卜部昌平 <shyouhei@ruby-lang.org>2019-11-14 20:35:48 +0900
commitc9ffe751d126a302d0e7e53e645e44084e339dde (patch)
tree0393401c6f11ee528ef30fdd1d51fc96b7837a9c /proc.c
parent4d615a0c8f4759ce4f6b96b643ef957837bdf20e (diff)
downloadruby-c9ffe751d126a302d0e7e53e645e44084e339dde.tar.gz
delete unused functions
Looking at the list of symbols inside of libruby-static.a, I found hundreds of functions that are defined, but used from nowhere. There can be reasons for each of them (e.g. some functions are specific to some platform, some are useful when debugging, etc). However it seems the functions deleted here exist for no reason. This changeset reduces the size of ruby binary from 26,671,456 bytes to 26,592,864 bytes on my machine.
Diffstat (limited to 'proc.c')
-rw-r--r--proc.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/proc.c b/proc.c
index 560b641557..762f704345 100644
--- a/proc.c
+++ b/proc.c
@@ -2736,19 +2736,6 @@ rb_method_entry_location(const rb_method_entry_t *me)
return method_def_location(me->def);
}
-VALUE
-rb_mod_method_location(VALUE mod, ID id)
-{
- const rb_method_entry_t *me = original_method_entry(mod, id);
- return rb_method_entry_location(me);
-}
-
-MJIT_FUNC_EXPORTED VALUE
-rb_obj_method_location(VALUE obj, ID id)
-{
- return rb_mod_method_location(CLASS_OF(obj), id);
-}
-
/*
* call-seq:
* meth.source_location -> [String, Integer]