From 2b050a71e0bf2ac51ed2af9372ac2f046f6c92d2 Mon Sep 17 00:00:00 2001 From: Jerome Ju Date: Mon, 29 Aug 2022 19:26:19 +0000 Subject: [PATCH] remove unused func --- .../pipeline/v1/pipelineref_validation_test.go | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/pkg/apis/pipeline/v1/pipelineref_validation_test.go b/pkg/apis/pipeline/v1/pipelineref_validation_test.go index 32ec9e186f3..e97bd2fb603 100644 --- a/pkg/apis/pipeline/v1/pipelineref_validation_test.go +++ b/pkg/apis/pipeline/v1/pipelineref_validation_test.go @@ -24,10 +24,7 @@ import ( "github.com/tektoncd/pipeline/pkg/apis/config" v1 "github.com/tektoncd/pipeline/pkg/apis/pipeline/v1" "github.com/tektoncd/pipeline/test/diff" - corev1 "k8s.io/api/core/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "knative.dev/pkg/apis" - logtesting "knative.dev/pkg/logging/testing" ) func TestPipelineRef_Invalid(t *testing.T) { @@ -100,16 +97,3 @@ func TestPipelineRef_Valid(t *testing.T) { }) } } - -func enableTektonOCIBundles(t *testing.T) func(context.Context) context.Context { - return func(ctx context.Context) context.Context { - s := config.NewStore(logtesting.TestLogger(t)) - s.OnConfigChanged(&corev1.ConfigMap{ - ObjectMeta: metav1.ObjectMeta{Name: config.GetFeatureFlagsConfigName()}, - Data: map[string]string{ - "enable-tekton-oci-bundles": "true", - }, - }) - return s.ToContext(ctx) - } -}