From c8754f44d7031de4d0d0b0e1a69626e8540d2575 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Tue, 5 Oct 2021 14:43:58 +0200 Subject: [PATCH] registry: remove unused ToV1Endpoint() Signed-off-by: Sebastiaan van Stijn --- registry/service.go | 6 ------ 1 file changed, 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()