From 06ed41ecaedeaf220e7da83287b8ded48d8552bd Mon Sep 17 00:00:00 2001 From: Alexander Wang Date: Thu, 13 Jul 2023 08:36:28 -0700 Subject: [PATCH] remove dead code --- d2ir/compile.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/d2ir/compile.go b/d2ir/compile.go index f4fc7775b..fb9ca598e 100644 --- a/d2ir/compile.go +++ b/d2ir/compile.go @@ -308,12 +308,6 @@ func (c *compiler) compileMap(dst *Map, ast, scopeAST *d2ast.Map) { ScopeAST: scopeAST, }) case n.Substitution != nil: - if !n.Substitution.Spread { - // TODO parser parses ${x} as a field with name "$" and map of child x - // So this is never reached. But that parser behavior could change - c.errorf(n.Substitution, "invalid non-spread substitution in map") - continue - } // placeholder field to be resolved at the end f := &Field{ parent: dst,