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) {