Skip to content

Commit a1d2cdc

Browse files
committed
Remove appengine.IsCapabilityDisabled.
Change-Id: I39918199e71e92b46da1487ebf50647ee23f1a76
1 parent cd1d2dd commit a1d2cdc

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

errors.go

-8
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,6 @@ func IsOverQuota(err error) bool {
1919
return ok && callErr.Code == 4
2020
}
2121

22-
// IsCapabilityDisabled reports whether err represents an API call failure
23-
// due to the API being disabled. See the appengine/capability package for
24-
// a way to detect this condition in advance.
25-
func IsCapabilityDisabled(err error) bool {
26-
callErr, ok := err.(*internal.CallError)
27-
return ok && callErr.Code == 6
28-
}
29-
3022
// MultiError is returned by batch operations when there are errors with
3123
// particular elements. Errors will be in a one-to-one correspondence with
3224
// the input elements; successful elements will have a nil entry.

0 commit comments

Comments
 (0)