From c2c8aeb709363bd4fcd73b98c40f6f4dcdd8cae5 Mon Sep 17 00:00:00 2001 From: Cameron Rozean Date: Fri, 15 Sep 2023 09:00:28 -0700 Subject: [PATCH] remove used golang spec functions --- .../pkg/eksGoRelease/eksGoRelease.go | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/tools/eksDistroBuildToolingOpsTools/pkg/eksGoRelease/eksGoRelease.go b/tools/eksDistroBuildToolingOpsTools/pkg/eksGoRelease/eksGoRelease.go index bb8821fc6..4c86324ac 100644 --- a/tools/eksDistroBuildToolingOpsTools/pkg/eksGoRelease/eksGoRelease.go +++ b/tools/eksDistroBuildToolingOpsTools/pkg/eksGoRelease/eksGoRelease.go @@ -370,20 +370,9 @@ func GenerateReadme(readmeFmt string, r Release) string { return fmt.Sprintf(readmeFmt, title, curRelease, trackTag, artifactTable, armBuild, amdBuild, patch, fSpec, sSpec) } -func generateGoSpec() error { - return nil -} - func updateGoSpec(fc *string, r Release) string { gpO := fmt.Sprintf("%%global go_patch %d", r.GoPatchVersion()-1) gpN := fmt.Sprintf("%%global go_patch %d", r.GoPatchVersion()) return strings.Replace(*fc, gpO, gpN, 1) } - -func addPatchGoSpec(fc *string, r Release, patch string) string { - gpO := fmt.Sprintf("%%global go_patch %d", r.GoPatchVersion()-1) - gpN := fmt.Sprintf("%%global go_patch %d", r.GoPatchVersion()) - - return strings.Replace(*fc, gpO, gpN, 1) -}