Skip to content

Commit d97c01f

Browse files
Update version.go
1 parent 26b2bc8 commit d97c01f

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

tools/cli/internal/apiversion/version.go

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -75,25 +75,6 @@ func WithDate(date time.Time) Option {
7575
}
7676
}
7777

78-
// WithStabilityLevel sets the version and stability level on the APIVersion.
79-
func WithStabilityLevel(version, stabilityLevel string) Option {
80-
return func(v *APIVersion) error {
81-
v.stabilityVersion = stabilityLevel
82-
v.version = version
83-
if stabilityLevel != StableStabilityLevel {
84-
return nil
85-
}
86-
87-
versionDate, err := DateFromVersion(version)
88-
if err != nil {
89-
return err
90-
}
91-
92-
v.versionDate = versionDate
93-
return nil
94-
}
95-
}
96-
9778
// WithContent returns an Option to generate a new APIVersion given the contentType.
9879
func WithContent(contentType string) Option {
9980
return func(v *APIVersion) error {

0 commit comments

Comments
 (0)