File tree Expand file tree Collapse file tree 1 file changed +0
-19
lines changed
tools/cli/internal/apiversion Expand file tree Collapse file tree 1 file changed +0
-19
lines changed Original file line number Diff line number Diff 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.
9879func WithContent (contentType string ) Option {
9980 return func (v * APIVersion ) error {
You can’t perform that action at this time.
0 commit comments