From b59f07cb2da99c8d78959777e120b9f17586b7dc Mon Sep 17 00:00:00 2001 From: Alexey Igrychev Date: Thu, 17 Feb 2022 13:53:55 +0000 Subject: [PATCH] refactor: remove unused code Signed-off-by: Alexey Igrychev --- pkg/storage/stages_storage.go | 8 -------- 1 file changed, 8 deletions(-) diff --git a/pkg/storage/stages_storage.go b/pkg/storage/stages_storage.go index 36892f186d..6ce1d77e9e 100644 --- a/pkg/storage/stages_storage.go +++ b/pkg/storage/stages_storage.go @@ -4,7 +4,6 @@ import ( "context" "errors" "fmt" - "strings" "github.com/werf/werf/pkg/container_runtime" "github.com/werf/werf/pkg/image" @@ -19,13 +18,6 @@ const ( var ErrBrokenImage = errors.New("broken image") -func BrokenImageErr(err error) bool { - if err != nil { - return strings.HasSuffix(err.Error(), ErrBrokenImage.Error()) - } - return false -} - type StagesStorage interface { GetStagesIDs(ctx context.Context, projectName string) ([]image.StageID, error) GetStagesIDsByDigest(ctx context.Context, projectName, digest string) ([]image.StageID, error)