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. --- error.c | 7 ------- 1 file changed, 7 deletions(-) (limited to 'error.c') diff --git a/error.c b/error.c index b7aec28940..7a88ccbfd1 100644 --- a/error.c +++ b/error.c @@ -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 -- cgit v1.2.3