registry: remove unused registry.ErrAlreadyExists
This error was no longer in use after the v1 push code was removed
in
@@ -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()
