Skip to content

Commit

Permalink
registry: remove unused ToV1Endpoint()
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastiaan van Stijn <[email protected]>
  • Loading branch information
thaJeztah committed Oct 5, 2021
1 parent afbeec8 commit c8754f4
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions registry/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit c8754f4

Please sign in to comment.