From 2ffbd0eb4e29cebe5ce2a146094a0983e9a70b75 Mon Sep 17 00:00:00 2001 From: James Bardin Date: Thu, 22 Aug 2024 09:28:00 -0400 Subject: [PATCH] remove old refactoring comments --- internal/command/graph.go | 2 +- internal/stacks/stackplan/component.go | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/internal/command/graph.go b/internal/command/graph.go index 86cd1eb336..24ee3e4054 100644 --- a/internal/command/graph.go +++ b/internal/command/graph.go @@ -154,7 +154,7 @@ func (c *GraphCommand) Run(args []string) int { // here, though perhaps one day this should be an error. if lr.Plan == nil { plan = &plans.Plan{ - Changes: &plans.ChangesSrc{}, //plans.NewChanges(), + Changes: plans.NewChangesSrc(), UIMode: plans.NormalMode, PriorState: lr.InputState, PrevRunState: lr.InputState, diff --git a/internal/stacks/stackplan/component.go b/internal/stacks/stackplan/component.go index 496ef55ee8..8d4d335e8d 100644 --- a/internal/stacks/stackplan/component.go +++ b/internal/stacks/stackplan/component.go @@ -107,12 +107,10 @@ func (c *Component) ForModulesRuntime() (*plans.Plan, error) { ProviderFunctionResults: c.PlannedFunctionResults, } - // sc := changes.SyncWrapper() for _, elem := range c.ResourceInstancePlanned.Elems { changeSrc := elem.Value if changeSrc != nil { changes.Resources = append(changes.Resources, changeSrc) - // sc.AppendResourceInstanceChange(changeSrc) } }