Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
felipensp committed Dec 25, 2024
1 parent 4e62176 commit 32aa24a
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions vlib/v/gen/c/json.v
Original file line number Diff line number Diff line change
Expand Up @@ -75,18 +75,6 @@ fn (mut g Gen) gen_jsons() {
g.type_default_vars.clear()
}
init_styp += init_generated
// if utyp.is_ptr() {
// ptr_styp := g.styp(utyp.set_nr_muls(utyp.nr_muls() - 1))
// g.write('HEAP(${ptr_styp}, ')
// }
// g.expr(ast.Expr(ast.StructInit{
// typ: utyp.set_nr_muls(0)
// typ_str: styp
// }))
// if utyp.is_ptr() {
// g.write(')')
// }
// init_styp = g.out.cut_to(pos).trim_space()
} else if utyp.is_ptr() {
ptr_styp := g.styp(utyp.set_nr_muls(utyp.nr_muls() - 1))
init_styp += ' = HEAP(${ptr_styp}, {0})'
Expand Down

0 comments on commit 32aa24a

Please sign in to comment.