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.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