remove useless function

This commit is contained in:
tocariimaa 2025-01-21 00:20:21 -03:00
parent 71fb88602f
commit 69f6509083

View file

@ -37,18 +37,6 @@ indent(CodegenC *cgc)
#undef INDENT #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 static void
emit_comment(CodegenC *cgc, Str comment, bool nl_after) emit_comment(CodegenC *cgc, Str comment, bool nl_after)
{ {