mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user