From 0ac96f4d45663e3f26b3ab26f723e2ef84230782 Mon Sep 17 00:00:00 2001 From: kaiyan-sheng Date: Wed, 15 May 2024 08:46:10 -0600 Subject: [PATCH] Remove unused function newV2Context from input_test.go (#39538) --- x-pack/filebeat/input/awss3/input_test.go | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/x-pack/filebeat/input/awss3/input_test.go b/x-pack/filebeat/input/awss3/input_test.go index 83015c1661b..432bd360bfc 100644 --- a/x-pack/filebeat/input/awss3/input_test.go +++ b/x-pack/filebeat/input/awss3/input_test.go @@ -5,7 +5,6 @@ package awss3 import ( - "context" "errors" "testing" @@ -155,12 +154,3 @@ func TestRegionSelection(t *testing.T) { }) } } - -func newV2Context() (v2.Context, func()) { - ctx, cancel := context.WithCancel(context.Background()) - return v2.Context{ - Logger: logp.NewLogger("awss3_test"), - ID: "test_id", - Cancelation: ctx, - }, cancel -}