Remove dead code in engine persist

This commit is contained in:
lash 2023-04-14 09:16:09 +01:00
parent b0d0fde3e0
commit 6f68d8de57
Signed by untrusted user who does not match committer: lash
GPG Key ID: 21D2E7BB88C2A746
1 changed files with 0 additions and 6 deletions

View File

@ -23,11 +23,6 @@ func RunPersisted(cfg Config, rs resource.Resource, pr persist.Persister, input
if err != nil {
return err
}
st := pr.GetState()
location, idx := st.Where()
if location != "" {
cfg.Root = location
}
en := NewEngine(cfg, pr.GetState(), rs, pr.GetMemory(), ctx)
@ -42,7 +37,6 @@ func RunPersisted(cfg Config, rs resource.Resource, pr persist.Persister, input
if c > 0 {
return err
}
_ = idx
_, err = en.Exec(input, ctx)
if err != nil {