core: remove dead code from pre-deposed refactor
CBD used to "borrow" the last slot of of the Tainted list in the State, but as of #1078 it uses its own list. This seems like just a block of old code that didn't get cleaned up from the refactor. Deposed resources get their own destroy nodes, so they don't have to mess with the main destroy node.
This commit is contained in:
parent
0bd7856942
commit
d5f6942755
|
@ -560,19 +560,9 @@ func (n *graphNodeExpandedResourceDestroy) EvalTree() EvalNode {
|
|||
Name: n.ProvidedBy()[0],
|
||||
Output: &provider,
|
||||
},
|
||||
&EvalIf{
|
||||
If: func(ctx EvalContext) (bool, error) {
|
||||
return n.Resource.Lifecycle.CreateBeforeDestroy, nil
|
||||
},
|
||||
Then: &EvalReadStateTainted{
|
||||
&EvalReadState{
|
||||
Name: n.stateId(),
|
||||
Output: &state,
|
||||
Index: -1,
|
||||
},
|
||||
Else: &EvalReadState{
|
||||
Name: n.stateId(),
|
||||
Output: &state,
|
||||
},
|
||||
},
|
||||
&EvalRequireState{
|
||||
State: &state,
|
||||
|
|
Loading…
Reference in New Issue