From acd3dca567dda83d656b58e53de5c762e5ba320a Mon Sep 17 00:00:00 2001 From: James Bardin Date: Fri, 29 May 2020 10:29:27 -0400 Subject: [PATCH] remove unused closer field --- terraform/transform_destroy_edge.go | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/terraform/transform_destroy_edge.go b/terraform/transform_destroy_edge.go index ed03fe05c..acf804db2 100644 --- a/terraform/transform_destroy_edge.go +++ b/terraform/transform_destroy_edge.go @@ -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