From d5d26482e78569268bb83c790f994d1686bf2e64 Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Fri, 29 Mar 2024 15:00:19 +0100 Subject: [PATCH] :art: emit.c qoc --- src/emit/emit.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/emit/emit.c b/src/emit/emit.c index 892576d5..20e18472 100644 --- a/src/emit/emit.c +++ b/src/emit/emit.c @@ -2917,10 +2917,6 @@ ANN static bool emit_class_tmpl(const Emitter emit, const Tmpl *tmpl, const Nspc return true; } -ANN static bool emit_section_b(const Emitter emit, Section *b) { - return emit_section(emit, b) > 0; -} - ANN static bool _emit_class_def(const Emitter emit, const Class_Def cdef) { const Type t = cdef->base.type; set_tflag(t, tflag_emit); @@ -2930,7 +2926,7 @@ ANN static bool _emit_class_def(const Emitter emit, const Class_Def cdef) { CHECK_B(cdef_parent(emit, c)); if (c->base.tmpl) CHECK_B(emit_class_tmpl(emit, c->base.tmpl, c->base.type->nspc)); if (c->body) - return scanx_body(emit->env, c, (_envset_func)emit_section_b, emit); + return scanx_body(emit->env, c, (_envset_func)emit_section, emit); return true; } -- 2.43.0