From 69f650908312f9dadbd4a4cb46ce41c9c59ddb3e Mon Sep 17 00:00:00 2001 From: tocariimaa Date: Tue, 21 Jan 2025 00:20:21 -0300 Subject: [PATCH] remove useless function --- compiler/cgC.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/compiler/cgC.c b/compiler/cgC.c index aac892c..03cb6b6 100644 --- a/compiler/cgC.c +++ b/compiler/cgC.c @@ -37,18 +37,6 @@ indent(CodegenC *cgc) #undef INDENT } -/* Interns a string literal into the string table, returning its ID */ -static i64 -intern_strlit(CodegenC *cgc, const Str *str) -{ - const i64 strno = shget(cgc->cgctx->strings, str->s); - if (strno != -1) /* string already exists, return its index number */ - return strno; - - shput(cgc->cgctx->strings, str->s, cgc->cgctx->strlit_no); - return cgc->cgctx->strlit_no++; -} - static void emit_comment(CodegenC *cgc, Str comment, bool nl_after) {