aboutsummaryrefslogtreecommitdiff
path: root/registry
diff options
context:
space:
mode:
authorSebastiaan van Stijn <github@gone.nl>2021-10-05 14:43:58 +0200
committerSebastiaan van Stijn <github@gone.nl>2021-10-05 14:43:58 +0200
commitc8754f44d7031de4d0d0b0e1a69626e8540d2575 (patch)
treea065a063d92985ff130754cdf40e3e3296114a31 /registry
parentafbeec8bda4255595356b08f82d7b1f966b6f588 (diff)
registry: remove unused ToV1Endpoint()
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Diffstat (limited to 'registry')
-rw-r--r--registry/service.go6
1 files changed, 0 insertions, 6 deletions
diff --git a/registry/service.go b/registry/service.go
index da96682302..276b04724a 100644
--- a/registry/service.go
+++ b/registry/service.go
@@ -246,12 +246,6 @@ type APIEndpoint struct {
TLSConfig *tls.Config
}
-// ToV1Endpoint returns a V1 API endpoint based on the APIEndpoint
-// Deprecated: this function is deprecated and will be removed in a future update
-func (e APIEndpoint) ToV1Endpoint(userAgent string, metaHeaders http.Header) *V1Endpoint {
- return newV1Endpoint(*e.URL, e.TLSConfig, userAgent, metaHeaders)
-}
-
// TLSConfig constructs a client TLS configuration based on server defaults
func (s *DefaultService) TLSConfig(hostname string) (*tls.Config, error) {
s.mu.Lock()