From e457bedaa7a687b0ace0390cf4c029b4b1766914 Mon Sep 17 00:00:00 2001 From: Joe Conigliaro Date: Thu, 19 Mar 2020 21:21:08 +1100 Subject: [PATCH] gen: remove enum value typedefs :D --- vlib/v/gen/cgen.v | 7 ------- 1 file changed, 7 deletions(-) diff --git a/vlib/v/gen/cgen.v b/vlib/v/gen/cgen.v index a297a7adc8..caf5cb833f 100644 --- a/vlib/v/gen/cgen.v +++ b/vlib/v/gen/cgen.v @@ -689,13 +689,6 @@ fn (g mut Gen) expr(node ast.Expr) { ast.EnumVal { // g.write('/*EnumVal*/${it.mod}${it.enum_name}_$it.val') styp := g.typ(it.typ) - if table.type_is_optional(it.typ) { - ostyp := styp + '_$it.val' - if !(ostyp in g.optionals) { - g.definitions.writeln('typedef Option $ostyp;') - g.optionals << ostyp - } - } g.write(styp) g.write('_$it.val') }