From c9ffe751d126a302d0e7e53e645e44084e339dde Mon Sep 17 00:00:00 2001 From: 卜部昌平 Date: Wed, 13 Nov 2019 12:41:39 +0900 Subject: 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. --- method.h | 3 --- 1 file changed, 3 deletions(-) (limited to 'method.h') diff --git a/method.h b/method.h index 1cfa9e1f3d..806790ffb8 100644 --- a/method.h +++ b/method.h @@ -215,11 +215,8 @@ int rb_method_entry_eq(const rb_method_entry_t *m1, const rb_method_entry_t *m2) st_index_t rb_hash_method_entry(st_index_t hash, const rb_method_entry_t *me); VALUE rb_method_entry_location(const rb_method_entry_t *me); -VALUE rb_mod_method_location(VALUE mod, ID id); -VALUE rb_obj_method_location(VALUE obj, ID id); void rb_free_method_entry(const rb_method_entry_t *me); -void rb_sweep_method_entry(void *vm); const rb_method_entry_t *rb_method_entry_clone(const rb_method_entry_t *me); const rb_callable_method_entry_t *rb_method_entry_complement_defined_class(const rb_method_entry_t *src_me, ID called_id, VALUE defined_class); -- cgit v1.2.3