summaryrefslogtreecommitdiff
path: root/registry/registry.go
diff options
context:
space:
mode:
authorSebastiaan van Stijn <github@gone.nl>2021-10-05 14:15:32 +0200
committerSebastiaan van Stijn <github@gone.nl>2021-10-05 14:15:32 +0200
commit9f874e53b9a386c58d6d54dca658945998d83a28 (patch)
treee3a1854735fbcd548895fa83295f3334b0fd49d9 /registry/registry.go
parent306fa44b7ca59282dc8695e6d169c5b25698d0cb (diff)
downloaddocker-9f874e53b9a386c58d6d54dca658945998d83a28.tar.gz
registry: remove unused registry.ErrAlreadyExists
This error was no longer in use after the v1 push code was removed in 53dad9f0274fcc1ec742f9411142382c83d08ff9. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Diffstat (limited to 'registry/registry.go')
-rw-r--r--registry/registry.go7
1 files changed, 0 insertions, 7 deletions
diff --git a/registry/registry.go b/registry/registry.go
index bcf2509f24..55fc117c82 100644
--- a/registry/registry.go
+++ b/registry/registry.go
@@ -3,7 +3,6 @@ package registry // import "github.com/docker/docker/registry"
import (
"crypto/tls"
- "errors"
"fmt"
"net"
"net/http"
@@ -17,12 +16,6 @@ import (
"github.com/sirupsen/logrus"
)
-var (
- // ErrAlreadyExists is an error returned if an image being pushed
- // already exists on the remote side
- ErrAlreadyExists = errors.New("Image already exists")
-)
-
// HostCertsDir returns the config directory for a specific host
func HostCertsDir(hostname string) (string, error) {
certsDir := CertsDir()