From 7195cc8c05ccff45d729a24ba1647f94ef2bb8f5 Mon Sep 17 00:00:00 2001 From: Shinnosuke Sawada-Dazai Date: Fri, 27 Sep 2024 10:45:42 +0900 Subject: [PATCH] Remove mistakenly commited changes Signed-off-by: Shinnosuke Sawada-Dazai --- pkg/config/application.go | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/pkg/config/application.go b/pkg/config/application.go index 7c10afabca..3492219e5a 100644 --- a/pkg/config/application.go +++ b/pkg/config/application.go @@ -21,7 +21,6 @@ import ( "path/filepath" "strings" - "github.com/creasty/defaults" "github.com/pipe-cd/pipecd/pkg/model" ) @@ -61,22 +60,6 @@ type GenericApplicationSpec struct { DriftDetection *DriftDetection `json:"driftDetection"` } -func (s *GenericApplicationSpec) UnmarshalJSON(data []byte) error { - type Alias GenericApplicationSpec - var aux Alias - - if err := json.Unmarshal(data, &aux); err != nil { - return err - } - - if err := defaults.Set(&aux); err != nil { - return err - } - - *s = GenericApplicationSpec(aux) - return nil -} - type DeploymentPlanner struct { // Disable auto-detecting to use QUICK_SYNC or PROGRESSIVE_SYNC. // Always use the speficied pipeline for all deployments.