go-vise

Constrained Size Output Virtual Machine
Info | Log | Files | Refs | README | LICENSE

commit 6f68d8de57d49525c889176a7d7094f8390a0281
parent b0d0fde3e0f0060f96e40e80b931282a0cdbde3f
Author: lash <dev@holbrook.no>
Date:   Fri, 14 Apr 2023 09:16:09 +0100

Remove dead code in engine persist

Diffstat:
Mengine/persist.go | 6------
1 file changed, 0 insertions(+), 6 deletions(-)

diff --git a/engine/persist.go b/engine/persist.go @@ -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 {