From 179062dd808c0a48e16269a2c42b10235cbbacd8 Mon Sep 17 00:00:00 2001 From: Koichi Sasada Date: Thu, 14 Nov 2019 04:18:41 +0900 Subject: move rb_vm_lvar_exposed() correctly. rb_vm_lvar_exposed() is prepared for __builtin_inline!(), needed for mini_builtin.c and builtin.c. However, it's only on builtin.c. So move it to make it as a part of VM. --- builtin.c | 8 -------- 1 file changed, 8 deletions(-) (limited to 'builtin.c') diff --git a/builtin.c b/builtin.c index d0d998da49..5ad7f23d5a 100644 --- a/builtin.c +++ b/builtin.c @@ -41,11 +41,3 @@ Init_builtin(void) { // } - -// inline -VALUE -rb_vm_lvar_exposed(rb_execution_context_t *ec, int index) -{ - const rb_control_frame_t *cfp = ec->cfp; - return cfp->ep[index]; -} -- cgit v1.2.3