From 9ad065d8040bd19af97ec49a248e4428e0ef2152 Mon Sep 17 00:00:00 2001 From: Zhou Peng Date: Tue, 24 Mar 2020 09:00:30 +0800 Subject: [PATCH] [apimachinery]: cleanup deprecated const StatusTooManyRequests `make all` goes happy Signed-off-by: Zhou Peng --- staging/src/k8s.io/apimachinery/pkg/api/errors/errors.go | 8 -------- 1 file changed, 8 deletions(-) diff --git a/staging/src/k8s.io/apimachinery/pkg/api/errors/errors.go b/staging/src/k8s.io/apimachinery/pkg/api/errors/errors.go index 363b8152b0c..d3927d81738 100644 --- a/staging/src/k8s.io/apimachinery/pkg/api/errors/errors.go +++ b/staging/src/k8s.io/apimachinery/pkg/api/errors/errors.go @@ -30,14 +30,6 @@ import ( "k8s.io/apimachinery/pkg/util/validation/field" ) -const ( - // StatusTooManyRequests means the server experienced too many requests within a - // given window and that the client must wait to perform the action again. - // DEPRECATED: please use http.StatusTooManyRequests, this will be removed in - // the future version. - StatusTooManyRequests = http.StatusTooManyRequests -) - // StatusError is an error intended for consumption by a REST API server; it can also be // reconstructed by clients from a REST response. Public to allow easy type switches. type StatusError struct {