From 8b418be6d001f02ce5fad91363b99f40505c189f Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Fri, 31 Mar 2023 02:35:10 +0200 Subject: [PATCH] cli/context/store: remove deprecated error-utilities These were deprecated in de6020a240ff95c97150f07d7a0dd59981143868, which is part of docker 23.0, so users should have had a chance to migrate. This removes IsErrContextDoesNotExist() and IsErrTLSDataDoesNotExist() Signed-off-by: Sebastiaan van Stijn --- cli/context/store/store.go | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/cli/context/store/store.go b/cli/context/store/store.go index 037464bb14..7101252303 100644 --- a/cli/context/store/store.go +++ b/cli/context/store/store.go @@ -494,20 +494,6 @@ func importEndpointTLS(tlsData *ContextTLSData, path string, data []byte) error return nil } -// IsErrContextDoesNotExist checks if the given error is a "context does not exist" condition. -// -// Deprecated: use github.com/docker/docker/errdefs.IsNotFound() -func IsErrContextDoesNotExist(err error) bool { - return errdefs.IsNotFound(err) -} - -// IsErrTLSDataDoesNotExist checks if the given error is a "context does not exist" condition -// -// Deprecated: use github.com/docker/docker/errdefs.IsNotFound() -func IsErrTLSDataDoesNotExist(err error) bool { - return errdefs.IsNotFound(err) -} - type contextdir string func contextdirOf(name string) contextdir {