d2graph: Actually remove board keyword check

d2ir change alone is enough.
This commit is contained in:
Anmol Sethi 2023-02-27 12:09:07 -08:00
parent be09118633
commit bc3942fa7e
No known key found for this signature in database
GPG key ID: 25BC68888A99A8BA

View file

@ -575,16 +575,6 @@ func (obj *Object) EnsureChildIDVal(ids []string) *Object {
id := ids[0]
ids = ids[1:]
// Any IDA with layers.layer or whatever is an IR IDA.
// Such IDA's are resolved from our board root.
// See https://github.com/terrastruct/d2/pull/876
if _, ok := BoardKeywords[id]; ok {
if len(ids) == 0 {
return nil
}
return obj.EnsureChildIDVal(ids[1:])
}
var child *Object
for _, ch2 := range obj.ChildrenArray {
if ch2.IDVal == id {