From 9bac4f33dd3c9946d79496c17b350b256951e3dd Mon Sep 17 00:00:00 2001 From: Anderson Queiroz Date: Wed, 23 Aug 2023 14:33:50 +0200 Subject: [PATCH] remove unused code --- magefile.go | 5 ----- pkg/testing/fixture.go | 10 ---------- 2 files changed, 15 deletions(-) diff --git a/magefile.go b/magefile.go index 517b6f0a2dc..c64c40fea7e 100644 --- a/magefile.go +++ b/magefile.go @@ -1707,11 +1707,6 @@ func createTestRunner(matrix bool, singleTest string, goTestFlags string, batche agentStackVersion = agentVersion } - // agentStackVersion, err = featurefreeze.AdjustVersion(agentStackVersion) - // if err != nil { - // return nil, err - // } - agentBuildDir := os.Getenv("AGENT_BUILD_DIR") if agentBuildDir == "" { agentBuildDir = filepath.Join("build", "distributions") diff --git a/pkg/testing/fixture.go b/pkg/testing/fixture.go index d9e77df52d2..fc0e5ee3d54 100644 --- a/pkg/testing/fixture.go +++ b/pkg/testing/fixture.go @@ -23,7 +23,6 @@ import ( "gopkg.in/yaml.v2" "github.com/elastic/elastic-agent/internal/pkg/agent/application/paths" - "github.com/elastic/elastic-agent/pkg/component" "github.com/elastic/elastic-agent/pkg/control" "github.com/elastic/elastic-agent/pkg/control/v2/client" @@ -179,15 +178,6 @@ func (f *Fixture) Prepare(ctx context.Context, components ...UsableComponent) er f.workDir = finalDir - // version, err := featurefreeze.AdjustVersion(f.version) - // if err != nil { - // return fmt.Errorf("could not adjust version during feature freeze") - // } - // err = featurefreeze.ChangePackageVersion(workDir, version) - // if err != nil { - // return err - // } - return nil }