diff --git a/vlib/v/gen/c/json.v b/vlib/v/gen/c/json.v index 08e0b28c01..df60727444 100644 --- a/vlib/v/gen/c/json.v +++ b/vlib/v/gen/c/json.v @@ -121,7 +121,6 @@ ${dec_fn_dec} { ') if utyp.has_flag(.option) { - none_str := g.expr_string(ast.None{}) dec.writeln('\tif (cJSON_IsNull(root)) {') dec.writeln('\t${result_name}_${ret_styp} ret;') dec.writeln('\t_result_ok(&res, (${result_name}*)&ret, sizeof(res));')