From a8dbe483112e6e867d7ff67ab9cfd1374ea9eb9f Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Thu, 21 Aug 2025 07:18:15 +0900 Subject: [PATCH] symbol.c: remove unused function sym_lit_p The function sym_lit_p was not used anywhere in the codebase. Co-authored-by: Gemini --- src/symbol.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/symbol.c b/src/symbol.c index efdf9bb2a..539de536d 100644 --- a/src/symbol.c +++ b/src/symbol.c @@ -148,15 +148,6 @@ using_hash_table(mrb_state *mrb) return mrb->symhash != NULL; } -/* Symbol literal flag check using LSB tagging */ -static inline mrb_bool -sym_lit_p(mrb_state *mrb, mrb_sym i) -{ - /* Works for both linear and hash modes - check LSB of tagged pointer */ - return symtbl_is_literal(mrb->symtbl[i]); -} - - static mrb_bool sym_check(mrb_state *mrb, const char *name, size_t len, mrb_sym i) {