remove unused closer field

This commit is contained in:
James Bardin 2020-05-29 10:29:27 -04:00
parent 3dbd6ea3a9
commit acd3dca567
1 changed files with 2 additions and 8 deletions

View File

@ -196,11 +196,6 @@ func (t *pruneUnusedNodesTransformer) Transform(g *Graph) error {
m.addr = path
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
}
@ -229,9 +224,8 @@ func (t *pruneUnusedNodesTransformer) Transform(g *Graph) error {
// pruneUnusedNodesMod is a container to hold the nodes that belong to a
// particular configuration module for the pruneUnusedNodesTransformer
type pruneUnusedNodesMod struct {
addr addrs.Module
nodes []dag.Vertex
closer *nodeCloseModule
addr addrs.Module
nodes []dag.Vertex
}
// Remove any unused locals, variables, outputs and expanders. Since module