summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Zhu <peter@peterzhu.ca>2025-01-22 11:01:15 -0500
committerPeter Zhu <peter@peterzhu.ca>2025-01-24 11:07:20 -0500
commitdd863714bf377b044645ea12b4db48920d49694e (patch)
tree0bd2e5048d8802bd4d1d32da3f1053258d29b033
parent22e5d83cd1149b8f2a91ed489993ba952d35a9d8 (diff)
Remove dead vm_cc_valid_p
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/12614
-rw-r--r--vm_callinfo.h13
1 files changed, 0 insertions, 13 deletions
diff --git a/vm_callinfo.h b/vm_callinfo.h
index d85261aaf9..399cd8d746 100644
--- a/vm_callinfo.h
+++ b/vm_callinfo.h
@@ -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