ubf_th appears to be unused. (#11994)

This commit is contained in:
Samuel Williams 2024-11-07 15:28:47 +13:00 committed by GitHub
parent f9cd04aeac
commit 048bb1e176
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
Notes: git 2024-11-07 02:29:05 +00:00
Merged-By: ioquatix <samuel@codeotaku.com>

View File

@ -1529,7 +1529,6 @@ rb_nogvl(void *(*func)(void *), void *data1,
rb_vm_t *vm = rb_ec_vm_ptr(ec);
bool is_main_thread = vm->ractor.main_thread == th;
int saved_errno = 0;
VALUE ubf_th = Qfalse;
if ((ubf == RUBY_UBF_IO) || (ubf == RUBY_UBF_PROCESS)) {
ubf = ubf_select;
@ -1554,10 +1553,6 @@ rb_nogvl(void *(*func)(void *), void *data1,
RUBY_VM_CHECK_INTS_BLOCKING(ec);
}
if (ubf_th != Qfalse) {
thread_value(rb_thread_kill(ubf_th));
}
rb_errno_set(saved_errno);
return val;