diff options
author | Peter Zhu <[email protected]> | 2025-01-22 11:01:15 -0500 |
---|---|---|
committer | Peter Zhu <[email protected]> | 2025-01-24 11:07:20 -0500 |
commit | dd863714bf377b044645ea12b4db48920d49694e () | |
tree | 0bd2e5048d8802bd4d1d32da3f1053258d29b033 /vm_callinfo.h | |
parent | 22e5d83cd1149b8f2a91ed489993ba952d35a9d8 (diff) |
Remove dead vm_cc_valid_p
Notes: Merged: https://.com/ruby/ruby/pull/12614
-rw-r--r-- | vm_callinfo.h | 13 |
1 files changed, 0 insertions, 13 deletions
@@ -472,19 +472,6 @@ vm_cc_invalidated_p(const struct rb_callcache *cc) } } -// For RJIT. cc_cme is supposed to have inlined `vm_cc_cme(cc)`. -static inline bool -vm_cc_valid_p(const struct rb_callcache *cc, const rb_callable_method_entry_t *cc_cme, VALUE klass) -{ - VM_ASSERT(IMEMO_TYPE_P(cc, imemo_callcache)); - if (cc->klass == klass && !METHOD_ENTRY_INVALIDATED(cc_cme)) { - return 1; - } - else { - return 0; - } -} - /* callcache: mutate */ static inline void |