From 6d9e1a1fc37b6412008d3afc3ea8f4a3bf4b47df Mon Sep 17 00:00:00 2001 From: kaiyan-sheng Date: Mon, 13 May 2024 16:12:25 -0600 Subject: [PATCH] Remove unused function newV2Context from input_test.go --- 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 83015c1661be..432bd360bfc6 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 -}