summaryrefslogtreecommitdiff
path: root/constant.h
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 /constant.h
parent4d615a0c8f4759ce4f6b96b643ef957837bdf20e (diff)
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.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/2677
Diffstat (limited to 'constant.h')
-rw-r--r--constant.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/constant.h b/constant.h
index f1a13feedb..3f1418df17 100644
--- a/constant.h
+++ b/constant.h
@@ -39,16 +39,12 @@ VALUE rb_mod_private_constant(int argc, const VALUE *argv, VALUE obj);
VALUE rb_mod_public_constant(int argc, const VALUE *argv, VALUE obj);
VALUE rb_mod_deprecate_constant(int argc, const VALUE *argv, VALUE obj);
void rb_free_const_table(struct rb_id_table *tbl);
-VALUE rb_public_const_get(VALUE klass, ID id);
VALUE rb_public_const_get_at(VALUE klass, ID id);
VALUE rb_public_const_get_from(VALUE klass, ID id);
-int rb_public_const_defined(VALUE klass, ID id);
-int rb_public_const_defined_at(VALUE klass, ID id);
int rb_public_const_defined_from(VALUE klass, ID id);
rb_const_entry_t *rb_const_lookup(VALUE klass, ID id);
int rb_autoloading_value(VALUE mod, ID id, VALUE *value, rb_const_flag_t *flag);
VALUE rb_const_source_location(VALUE, ID);
-VALUE rb_const_source_location_from(VALUE, ID);
VALUE rb_const_source_location_at(VALUE, ID);
#endif /* CONSTANT_H */