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. --- iseq.c | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'iseq.c') diff --git a/iseq.c b/iseq.c index 6c2d2256ff..c2f241284e 100644 --- a/iseq.c +++ b/iseq.c @@ -1012,12 +1012,6 @@ rb_iseq_compile_with_option(VALUE src, VALUE file, VALUE realpath, VALUE line, V return iseq; } -rb_iseq_t * -rb_iseq_compile(VALUE src, VALUE file, VALUE line) -{ - return rb_iseq_compile_with_option(src, file, Qnil, line, Qnil); -} - VALUE rb_iseq_path(const rb_iseq_t *iseq) { @@ -3308,14 +3302,6 @@ rb_iseq_trace_set_all(rb_event_flag_t turnon_events) rb_objspace_each_objects(trace_set_i, &turnon_events); } -/* This is exported since Ruby 2.5 but not internally used for now. If you're going to use this, please - update `ruby_vm_event_enabled_global_flags` and set `mjit_call_p = FALSE` as well to cancel MJIT code. */ -void -rb_iseq_trace_on_all(void) -{ - rb_iseq_trace_set_all(RUBY_EVENT_TRACEPOINT_ALL); -} - VALUE rb_iseqw_local_variables(VALUE iseqval) { -- cgit v1.2.3