remove unused closer field
This commit is contained in:
parent
3dbd6ea3a9
commit
acd3dca567
|
@ -196,11 +196,6 @@ func (t *pruneUnusedNodesTransformer) Transform(g *Graph) error {
|
||||||
m.addr = path
|
m.addr = path
|
||||||
m.nodes = append(m.nodes, v)
|
m.nodes = append(m.nodes, v)
|
||||||
|
|
||||||
// We need to keep track of the closers, to make sure they don't look
|
|
||||||
// for an expansion if there's nothing being expanded.
|
|
||||||
if c, ok := v.(*nodeCloseModule); ok {
|
|
||||||
m.closer = c
|
|
||||||
}
|
|
||||||
moduleMap[path.String()] = m
|
moduleMap[path.String()] = m
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -231,7 +226,6 @@ func (t *pruneUnusedNodesTransformer) Transform(g *Graph) error {
|
||||||
type pruneUnusedNodesMod struct {
|
type pruneUnusedNodesMod struct {
|
||||||
addr addrs.Module
|
addr addrs.Module
|
||||||
nodes []dag.Vertex
|
nodes []dag.Vertex
|
||||||
closer *nodeCloseModule
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Remove any unused locals, variables, outputs and expanders. Since module
|
// Remove any unused locals, variables, outputs and expanders. Since module
|
||||||
|
|
Loading…
Reference in New Issue