Skip to content

Commit

Permalink
pkg/apis: remove duplicate MergeStepsWithStepTemplate function
Browse files Browse the repository at this point in the history
Signed-off-by: Vincent Demeester <vdemeest@redhat.com>
  • Loading branch information
vdemeester authored and tekton-robot committed Dec 1, 2020
1 parent 6901140 commit ba2d2e7
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 231 deletions.
92 changes: 0 additions & 92 deletions pkg/apis/pipeline/v1alpha1/merge.go

This file was deleted.

138 changes: 0 additions & 138 deletions pkg/apis/pipeline/v1alpha1/merge_test.go

This file was deleted.

2 changes: 1 addition & 1 deletion pkg/apis/pipeline/v1alpha1/task_validation.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func (ts *TaskSpec) Validate(ctx context.Context) *apis.FieldError {
if err := validateDeclaredWorkspaces(ts.Workspaces, ts.Steps, ts.StepTemplate); err != nil {
return err
}
mergedSteps, err := MergeStepsWithStepTemplate(ts.StepTemplate, ts.Steps)
mergedSteps, err := v1beta1.MergeStepsWithStepTemplate(ts.StepTemplate, ts.Steps)
if err != nil {
return &apis.FieldError{
Message: fmt.Sprintf("error merging step template and steps: %s", err),
Expand Down

0 comments on commit ba2d2e7

Please sign in to comment.