From 4f4a94f9f575733485ad69267e5fdc74a7bc36ab Mon Sep 17 00:00:00 2001 From: Robert Gogolok Date: Mon, 25 Nov 2024 23:24:17 +0100 Subject: [PATCH] Remove obsolete function `builtWithBuildpacks` Signed-off-by: Robert Gogolok --- pkg/apis/build/v1alpha2/build.go | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/pkg/apis/build/v1alpha2/build.go b/pkg/apis/build/v1alpha2/build.go index cdd24cd0b..03a3c9d73 100644 --- a/pkg/apis/build/v1alpha2/build.go +++ b/pkg/apis/build/v1alpha2/build.go @@ -199,16 +199,6 @@ func (b *Build) builtWithStack(runImage string) bool { return lastBuildRunImageRef.Identifier() == builderRunImageRef.Identifier() } -func (b *Build) builtWithBuildpacks(buildpacks corev1alpha1.BuildpackMetadataList) bool { - for _, bp := range b.Status.BuildMetadata { - if !buildpacks.Include(bp) { - return false - } - } - - return true -} - func (b *Build) additionalBuildNeeded() bool { _, ok := b.Annotations[BuildNeededAnnotation] return ok