Skip to content

Commit dd86371

Browse files
committed
Remove dead vm_cc_valid_p
1 parent 22e5d83 commit dd86371

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

vm_callinfo.h

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -472,19 +472,6 @@ vm_cc_invalidated_p(const struct rb_callcache *cc)
472472
}
473473
}
474474

475-
// For RJIT. cc_cme is supposed to have inlined `vm_cc_cme(cc)`.
476-
static inline bool
477-
vm_cc_valid_p(const struct rb_callcache *cc, const rb_callable_method_entry_t *cc_cme, VALUE klass)
478-
{
479-
VM_ASSERT(IMEMO_TYPE_P(cc, imemo_callcache));
480-
if (cc->klass == klass && !METHOD_ENTRY_INVALIDATED(cc_cme)) {
481-
return 1;
482-
}
483-
else {
484-
return 0;
485-
}
486-
}
487-
488475
/* callcache: mutate */
489476

490477
static inline void

0 commit comments

Comments
 (0)