瀏覽代碼

Merge pull request #42908 from thaJeztah/remove_unused_error

registry: remove unused registry.ErrAlreadyExists
Tianon Gravi 3 年之前
父節點
當前提交
9dd248a9e6
共有 1 個文件被更改,包括 0 次插入7 次删除
  1. 0 7
      registry/registry.go

+ 0 - 7
registry/registry.go

@@ -3,7 +3,6 @@ package registry // import "github.com/docker/docker/registry"
 
 
 import (
 import (
 	"crypto/tls"
 	"crypto/tls"
-	"errors"
 	"fmt"
 	"fmt"
 	"net"
 	"net"
 	"net/http"
 	"net/http"
@@ -17,12 +16,6 @@ import (
 	"github.com/sirupsen/logrus"
 	"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
 // HostCertsDir returns the config directory for a specific host
 func HostCertsDir(hostname string) (string, error) {
 func HostCertsDir(hostname string) (string, error) {
 	certsDir := CertsDir()
 	certsDir := CertsDir()