From d1974f500f344ce23a5f77ea00ae6b9a4f143cd1 Mon Sep 17 00:00:00 2001 From: Enzo Date: Tue, 31 Aug 2021 22:55:37 +0200 Subject: [PATCH] cgen: cleanup `Gen.cc_type` (#11357) --- vlib/v/gen/c/cgen.v | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/vlib/v/gen/c/cgen.v b/vlib/v/gen/c/cgen.v index 152d84de82..35df5a93d3 100644 --- a/vlib/v/gen/c/cgen.v +++ b/vlib/v/gen/c/cgen.v @@ -794,18 +794,9 @@ fn (mut g Gen) cc_type(typ ast.Type, is_prefix_struct bool) string { styp += sgtyps } } - ast.MultiReturn { - // TODO: this doesn't belong here, but makes it working for now - mut cname := 'multi_return' - for mr_typ in sym.info.types { - mr_type_sym := g.table.get_type_symbol(g.unwrap_generic(mr_typ)) - cname += '_$mr_type_sym.cname' - } - return cname - } else {} } - if is_prefix_struct && styp.starts_with('C__') { + if is_prefix_struct && sym.language == .c { styp = styp[3..] if sym.kind == .struct_ { info := sym.info as ast.Struct