Skip to content

Commit 6cf3c10

Browse files
committed
remove unused code
1 parent b20a5bc commit 6cf3c10

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

types/parameter.go

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -76,16 +76,6 @@ type ParameterValidation struct {
7676
Monotonic *string `json:"validation_monotonic"`
7777
}
7878

79-
// Valid takes the type of the value and the value itself and returns an error
80-
// if the value is invalid.
81-
func (v *ParameterValidation) Valid(typ string, value string) error {
82-
// TODO: Validate typ is the enum?
83-
// Use the provider.Validation struct to validate the value to be
84-
// consistent with the provider.
85-
pv := providerValidation(v)
86-
return (&pv).Valid(provider.OptionType(typ), value)
87-
}
88-
8979
type ParameterOption struct {
9080
Name string `json:"name"`
9181
Description string `json:"description"`

0 commit comments

Comments
 (0)