mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 05:27:21 +00:00
Remove unused func
This commit is contained in:
parent
50795b1afa
commit
4bb5516163
@ -167,16 +167,6 @@ func (t ErrorType) String() string {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// TooLongFail returns a *Error indicating "MaxLength exceed".
|
|
||||||
func TooLongFail(field *Path, value interface{}, detail string) *Error {
|
|
||||||
return &Error{ErrorTypeTooLong, field.String(), value, detail}
|
|
||||||
}
|
|
||||||
|
|
||||||
// TooManyFail returns a *Error indicating "MaxItems/MaxProperties exceed"
|
|
||||||
func TooManyFail(field *Path, value interface{}, detail string) *Error {
|
|
||||||
return &Error{ErrorTypeTooMany, field.String(), value, detail}
|
|
||||||
}
|
|
||||||
|
|
||||||
// TypeInvalid returns a *Error indicating "type is invalid"
|
// TypeInvalid returns a *Error indicating "type is invalid"
|
||||||
func TypeInvalid(field *Path, value interface{}, detail string) *Error {
|
func TypeInvalid(field *Path, value interface{}, detail string) *Error {
|
||||||
return &Error{ErrorTypeTypeInvalid, field.String(), value, detail}
|
return &Error{ErrorTypeTypeInvalid, field.String(), value, detail}
|
||||||
|
Loading…
Reference in New Issue
Block a user