diff options
author | 卜部昌平 <[email protected]> | 2019-11-13 12:41:39 +0900 |
---|---|---|
committer | 卜部昌平 <[email protected]> | 2019-11-14 20:35:48 +0900 |
commit | c9ffe751d126a302d0e7e53e645e44084e339dde (patch) | |
tree | 0393401c6f11ee528ef30fdd1d51fc96b7837a9c /error.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 'error.c')
-rw-r--r-- | error.c | 7 |
1 files changed, 0 insertions, 7 deletions
@@ -127,13 +127,6 @@ rb_syntax_error_append(VALUE exc, VALUE file, int line, int column, return exc; } -void -ruby_deprecated_internal_feature(const char *func) -{ - rb_print_backtrace(); - rb_fatal("%s is only for internal use and deprecated; do not use", func); -} - /* * call-seq: * warn(msg) -> nil |