From 7553fc4bcd80d103096f2e8f662b7fb3c65b5249 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Tue, 3 Oct 2017 12:07:49 +0200 Subject: [PATCH] Remove deprecated IsErr...NotFound() functions Signed-off-by: Sebastiaan van Stijn --- client/errors.go | 80 ------------------------------------------------ 1 file changed, 80 deletions(-) diff --git a/client/errors.go b/client/errors.go index ba29bce679..e41b728d3a 100644 --- a/client/errors.go +++ b/client/errors.go @@ -71,38 +71,6 @@ func wrapResponseError(err error, resp serverResponse, object, id string) error } } -// IsErrImageNotFound returns true if the error is caused -// when an image is not found in the docker host. -// -// Deprecated: Use IsErrNotFound -func IsErrImageNotFound(err error) bool { - return IsErrNotFound(err) -} - -// IsErrContainerNotFound returns true if the error is caused -// when a container is not found in the docker host. -// -// Deprecated: Use IsErrNotFound -func IsErrContainerNotFound(err error) bool { - return IsErrNotFound(err) -} - -// IsErrNetworkNotFound returns true if the error is caused -// when a network is not found in the docker host. -// -// Deprecated: Use IsErrNotFound -func IsErrNetworkNotFound(err error) bool { - return IsErrNotFound(err) -} - -// IsErrVolumeNotFound returns true if the error is caused -// when a volume is not found in the docker host. -// -// Deprecated: Use IsErrNotFound -func IsErrVolumeNotFound(err error) bool { - return IsErrNotFound(err) -} - // unauthorizedError represents an authorization error in a remote registry. type unauthorizedError struct { cause error @@ -120,30 +88,6 @@ func IsErrUnauthorized(err error) bool { return ok } -// IsErrNodeNotFound returns true if the error is caused -// when a node is not found. -// -// Deprecated: Use IsErrNotFound -func IsErrNodeNotFound(err error) bool { - return IsErrNotFound(err) -} - -// IsErrServiceNotFound returns true if the error is caused -// when a service is not found. -// -// Deprecated: Use IsErrNotFound -func IsErrServiceNotFound(err error) bool { - return IsErrNotFound(err) -} - -// IsErrTaskNotFound returns true if the error is caused -// when a task is not found. -// -// Deprecated: Use IsErrNotFound -func IsErrTaskNotFound(err error) bool { - return IsErrNotFound(err) -} - type pluginPermissionDenied struct { name string } @@ -187,27 +131,3 @@ func (cli *Client) NewVersionError(APIrequired, feature string) error { } return nil } - -// IsErrSecretNotFound returns true if the error is caused -// when a secret is not found. -// -// Deprecated: Use IsErrNotFound -func IsErrSecretNotFound(err error) bool { - return IsErrNotFound(err) -} - -// IsErrConfigNotFound returns true if the error is caused -// when a config is not found. -// -// Deprecated: Use IsErrNotFound -func IsErrConfigNotFound(err error) bool { - return IsErrNotFound(err) -} - -// IsErrPluginNotFound returns true if the error is caused -// when a plugin is not found in the docker host. -// -// Deprecated: Use IsErrNotFound -func IsErrPluginNotFound(err error) bool { - return IsErrNotFound(err) -}