diff options
author | 卜部昌平 <shyouhei@ruby-lang.org> | 2019-11-13 12:41:39 +0900 |
---|---|---|
committer | 卜部昌平 <shyouhei@ruby-lang.org> | 2019-11-14 20:35:48 +0900 |
commit | c9ffe751d126a302d0e7e53e645e44084e339dde (patch) | |
tree | 0393401c6f11ee528ef30fdd1d51fc96b7837a9c /hash.c | |
parent | 4d615a0c8f4759ce4f6b96b643ef957837bdf20e (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 'hash.c')
-rw-r--r-- | hash.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -544,7 +544,7 @@ RHASH_TABLE_EMPTY_P(VALUE hash) return RHASH_SIZE(hash) == 0; } -MJIT_FUNC_EXPORTED int +int rb_hash_ar_table_p(VALUE hash) { if (FL_TEST_RAW((hash), RHASH_ST_TABLE_FLAG)) { @@ -563,7 +563,7 @@ rb_hash_ar_table(VALUE hash) return RHASH(hash)->as.ar; } -MJIT_FUNC_EXPORTED st_table * +st_table * rb_hash_st_table(VALUE hash) { HASH_ASSERT(!RHASH_AR_TABLE_P(hash)); |