class.c: Remove MRB_INLINE_METHOD_CACHE support from mt_tbl

The sorted array binary search implementation no longer uses the inline
cache array, so remove all MRB_INLINE_METHOD_CACHE definitions and
related code.
This commit is contained in:
Yukihiro "Matz" Matsumoto
2025-05-28 08:33:21 +09:00
parent e8ebeb151d
commit eb5fbfbb40
2 changed files with 0 additions and 11 deletions
-5
View File
@@ -50,11 +50,6 @@ typedef struct mt_tbl {
union mt_ptr *ptr; /* block: [ ptr[0...alloc] | keys[0...alloc] ] */
} mt_tbl;
#ifdef MRB_USE_INLINE_METHOD_CACHE
#define MT_INLINE_CACHE_SIZE 256
static uint8_t mt_cache[MT_INLINE_CACHE_SIZE];
#endif
/* helper to get keys array */
static inline mrb_sym*
mt_keys(mt_tbl *t) {