diff --git a/client/client.go b/client/client.go index e23917eae1..61b8a24a7f 100644 --- a/client/client.go +++ b/client/client.go @@ -381,12 +381,6 @@ func (cli *Client) DaemonHost() string { return cli.host } -// HTTPClient returns a copy of the HTTP client bound to the server -func (cli *Client) HTTPClient() *http.Client { - c := *cli.client - return &c -} - // ParseHostURL parses a url string, validates the string is a host url, and // returns the parsed URL func ParseHostURL(host string) (*url.URL, error) { diff --git a/client/client_interfaces.go b/client/client_interfaces.go index ae6e529cc8..2f2fd3ce3d 100644 --- a/client/client_interfaces.go +++ b/client/client_interfaces.go @@ -4,7 +4,6 @@ import ( "context" "io" "net" - "net/http" "github.com/moby/moby/api/types" "github.com/moby/moby/api/types/build" @@ -38,7 +37,6 @@ type stableAPIClient interface { VolumeAPIClient ClientVersion() string DaemonHost() string - HTTPClient() *http.Client ServerVersion(ctx context.Context) (types.Version, error) NegotiateAPIVersion(ctx context.Context) NegotiateAPIVersionPing(types.Ping) diff --git a/vendor/github.com/moby/moby/client/client.go b/vendor/github.com/moby/moby/client/client.go index e23917eae1..61b8a24a7f 100644 --- a/vendor/github.com/moby/moby/client/client.go +++ b/vendor/github.com/moby/moby/client/client.go @@ -381,12 +381,6 @@ func (cli *Client) DaemonHost() string { return cli.host } -// HTTPClient returns a copy of the HTTP client bound to the server -func (cli *Client) HTTPClient() *http.Client { - c := *cli.client - return &c -} - // ParseHostURL parses a url string, validates the string is a host url, and // returns the parsed URL func ParseHostURL(host string) (*url.URL, error) { diff --git a/vendor/github.com/moby/moby/client/client_interfaces.go b/vendor/github.com/moby/moby/client/client_interfaces.go index ae6e529cc8..2f2fd3ce3d 100644 --- a/vendor/github.com/moby/moby/client/client_interfaces.go +++ b/vendor/github.com/moby/moby/client/client_interfaces.go @@ -4,7 +4,6 @@ import ( "context" "io" "net" - "net/http" "github.com/moby/moby/api/types" "github.com/moby/moby/api/types/build" @@ -38,7 +37,6 @@ type stableAPIClient interface { VolumeAPIClient ClientVersion() string DaemonHost() string - HTTPClient() *http.Client ServerVersion(ctx context.Context) (types.Version, error) NegotiateAPIVersion(ctx context.Context) NegotiateAPIVersionPing(types.Ping)