From c279d2f495f9821c4bbb1f5f690134920173260c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Charles-Edouard=20Br=C3=A9t=C3=A9ch=C3=A9?= Date: Fri, 24 Feb 2023 13:33:57 +0100 Subject: [PATCH] chore: remove dead code (#6395) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Charles-Edouard Brétéché --- pkg/engine/context/utils.go | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/pkg/engine/context/utils.go b/pkg/engine/context/utils.go index 8b51daa83e..a07d9c07f0 100644 --- a/pkg/engine/context/utils.go +++ b/pkg/engine/context/utils.go @@ -22,13 +22,6 @@ func AddResource(ctx Interface, dataRaw []byte) error { return ctx.AddResource(data) } -func ReplaceResource(ctx Interface, data map[string]interface{}) error { - if err := ctx.AddResource(nil); err != nil { - return err - } - return ctx.AddResource(data) -} - func AddOldResource(ctx Interface, dataRaw []byte) error { var data map[string]interface{} if err := json.Unmarshal(dataRaw, &data); err != nil { @@ -38,13 +31,6 @@ func AddOldResource(ctx Interface, dataRaw []byte) error { return ctx.AddOldResource(data) } -func ReplaceOldResource(ctx Interface, data map[string]interface{}) error { - if err := ctx.AddOldResource(nil); err != nil { - return err - } - return ctx.AddOldResource(data) -} - func addToContext(ctx *context, data interface{}, tags ...string) error { dataRaw, err := json.Marshal(push(data, tags...)) if err != nil {