delete unused functions in pkg/kubelet directory

This commit is contained in:
HirazawaUi
2023-01-16 15:58:20 +08:00
parent 4c4d4ad0a4
commit a8173eded3
9 changed files with 2 additions and 261 deletions

View File

@@ -24,11 +24,6 @@ import (
grpcstatus "google.golang.org/grpc/status"
)
// NewErrorStreamingDisabled creates an error for disabled streaming method.
func NewErrorStreamingDisabled(method string) error {
return grpcstatus.Errorf(codes.NotFound, "streaming method %s disabled", method)
}
// NewErrorTooManyInFlight creates an error for exceeding the maximum number of in-flight requests.
func NewErrorTooManyInFlight() error {
return grpcstatus.Error(codes.ResourceExhausted, "maximum number of in-flight requests exceeded")