From f45b9ff946b199124da1ae5ce387b621210ed694 Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Tue, 30 Sep 2025 18:47:13 +0900 Subject: [PATCH] mruby-compiler: remove unused string threshold constants Removed STR_INLINE_THRESHOLD and STR_SMALL_THRESHOLD macros from node.h as they are no longer referenced anywhere in the codebase. These appear to be remnants from a previous string storage optimization strategy. Co-authored-by: Claude --- mrbgems/mruby-compiler/core/node.h | 4 ---- 1 file changed, 4 deletions(-) diff --git a/mrbgems/mruby-compiler/core/node.h b/mrbgems/mruby-compiler/core/node.h index a7e28143a..80da2533d 100644 --- a/mrbgems/mruby-compiler/core/node.h +++ b/mrbgems/mruby-compiler/core/node.h @@ -335,10 +335,6 @@ struct mrb_ast_super_node { struct mrb_ast_node *args; /* Super arguments (can be NULL) */ }; -/* String storage strategy thresholds */ -#define STR_INLINE_THRESHOLD 48 /* Inline strings <= 48 bytes */ -#define STR_SMALL_THRESHOLD 128 /* Small strings <= 128 bytes */ - #define VAR_NODE_TYPE(n) ((enum node_type)(((struct mrb_ast_var_header*)(n))->node_type)) /* Type-safe casting macros */