Browse code

client: remove deprecated IsErrNotFound helper

This function was marked deprecated in 7aa7369f1fc35f544c1f0f49d2c594fdc072b05a,
and is no longer used.

Now that the client is in a new module, we can remove the old.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>

Sebastiaan van Stijn authored on 2025/07/23 18:57:53
Showing 2 changed files
... ...
@@ -42,14 +42,6 @@ func connectionFailed(host string) error {
42 42
 	return errConnectionFailed{error: err}
43 43
 }
44 44
 
45
-// IsErrNotFound returns true if the error is a NotFound error, which is returned
46
-// by the API when some object is not found. It is an alias for [cerrdefs.IsNotFound].
47
-//
48
-// Deprecated: use [cerrdefs.IsNotFound] instead.
49
-func IsErrNotFound(err error) bool {
50
-	return cerrdefs.IsNotFound(err)
51
-}
52
-
53 45
 type objectNotFoundError struct {
54 46
 	object string
55 47
 	id     string
... ...
@@ -42,14 +42,6 @@ func connectionFailed(host string) error {
42 42
 	return errConnectionFailed{error: err}
43 43
 }
44 44
 
45
-// IsErrNotFound returns true if the error is a NotFound error, which is returned
46
-// by the API when some object is not found. It is an alias for [cerrdefs.IsNotFound].
47
-//
48
-// Deprecated: use [cerrdefs.IsNotFound] instead.
49
-func IsErrNotFound(err error) bool {
50
-	return cerrdefs.IsNotFound(err)
51
-}
52
-
53 45
 type objectNotFoundError struct {
54 46
 	object string
55 47
 	id     string