diff --git a/bignum.c b/bignum.c index d95444a5637..1c4fc094c2f 100644 --- a/bignum.c +++ b/bignum.c @@ -6371,11 +6371,6 @@ rb_big_fdiv_double(VALUE x, VALUE y) return NUM2DBL(v); } -VALUE -rb_big_fdiv(VALUE x, VALUE y) -{ - return DBL2NUM(rb_big_fdiv_double(x, y)); -} VALUE rb_big_pow(VALUE x, VALUE y) diff --git a/io.c b/io.c index 522c8da0484..d446991c281 100644 --- a/io.c +++ b/io.c @@ -7428,11 +7428,6 @@ rb_io_synchronized(rb_io_t *fptr) fptr->mode |= FMODE_SYNC; } -void -rb_io_unbuffered(rb_io_t *fptr) -{ - rb_io_synchronized(fptr); -} int rb_pipe(int *pipes) diff --git a/ractor.c b/ractor.c index 4714ad94a2f..3c2b54425ce 100644 --- a/ractor.c +++ b/ractor.c @@ -1452,11 +1452,6 @@ rb_ractor_stderr_set(VALUE err) } } -rb_hook_list_t * -rb_ractor_hooks(rb_ractor_t *cr) -{ - return &cr->pub.hooks; -} st_table * rb_ractor_targeted_hooks(rb_ractor_t *cr) diff --git a/thread_pthread.c b/thread_pthread.c index 0aaaf5de6f8..a1057031791 100644 --- a/thread_pthread.c +++ b/thread_pthread.c @@ -1226,21 +1226,6 @@ static int timer_thread_set_timeout(rb_vm_t *vm); #include "thread_sched_mn.c" - -void -rb_assert_sig(void) -{ - sigset_t oldmask; - pthread_sigmask(0, NULL, &oldmask); - if (sigismember(&oldmask, SIGVTALRM)) { - rb_bug("!!!"); - } - else { - RUBY_DEBUG_LOG("ok"); - } -} - - /* only use signal-safe system calls here */ static void signal_communication_pipe(int fd) diff --git a/variable.c b/variable.c index 8e7c528aec7..2d4659637e0 100644 --- a/variable.c +++ b/variable.c @@ -2790,15 +2790,6 @@ get_autoload_data(VALUE autoload_const_value, struct autoload_const **autoload_c return autoload_data; } -void -rb_autoload(VALUE module, ID name, const char *feature) -{ - if (!feature || !*feature) { - rb_raise(rb_eArgError, "empty feature name"); - } - - rb_autoload_str(module, name, rb_fstring_cstr(feature)); -} static void const_set(VALUE klass, ID id, VALUE val); static void const_added(VALUE klass, ID const_name); diff --git a/vm_insnhelper.c b/vm_insnhelper.c index 4cf24f13c89..1f9d8acc805 100644 --- a/vm_insnhelper.c +++ b/vm_insnhelper.c @@ -6656,11 +6656,6 @@ rb_vm_opt_newarray_pack_buffer(rb_execution_context_t *ec, rb_num_t array_len, c return vm_opt_newarray_pack_buffer(ec, array_len, ptr, fmt, buffer); } -VALUE -rb_vm_opt_newarray_pack(rb_execution_context_t *ec, rb_num_t array_len, const VALUE *ptr, VALUE fmt) -{ - return vm_opt_newarray_pack_buffer(ec, array_len, ptr, fmt, Qundef); -} #undef id_cmp