Remove unused static variables

These variables are used only when `VM_COLLECT_USAGE_DETAILS` is true.
This commit is contained in:
Nobuyoshi Nakada 2026-07-06 01:21:38 +09:00
parent 2052f213e9
commit 09f5bff7be
No known key found for this signature in database
GPG Key ID: 3582D74E1FEE4465
Notes: git 2026-07-13 02:32:19 +00:00

9
vm.c
View File

@ -5194,15 +5194,6 @@ usage_analysis_register_clear(VALUE self)
return usage_analysis_clear(self, usage_hash);
}
#else
MAYBE_UNUSED(static void (*ruby_vm_collect_usage_func_insn)(int insn)) = 0;
MAYBE_UNUSED(static void (*ruby_vm_collect_usage_func_operand)(int insn, int n, VALUE op)) = 0;
MAYBE_UNUSED(static void (*ruby_vm_collect_usage_func_register)(int reg, int isset)) = 0;
#endif
#if VM_COLLECT_USAGE_DETAILS
/* @param insn instruction number */
static void
vm_collect_usage_insn(int insn)