Merge pull request #1514 from hashicorp/f-dead-evaltree-cbd-code

core: remove dead code from pre-deposed refactor
This commit is contained in:
Paul Hinze 2015-04-14 13:42:50 -05:00
commit d49933b0f8
1 changed files with 3 additions and 13 deletions

View File

@ -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{
Name: n.stateId(),
Output: &state,
Index: -1,
},
Else: &EvalReadState{
Name: n.stateId(),
Output: &state,
},
&EvalReadState{
Name: n.stateId(),
Output: &state,
},
&EvalRequireState{
State: &state,