Browse code

client: remove put()

Apparently it is not used anywhere

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>

Kir Kolyshkin authored on 2019/08/06 08:47:17
Showing 1 changed files
... ...
@@ -50,15 +50,6 @@ func (cli *Client) postRaw(ctx context.Context, path string, query url.Values, b
50 50
 	return cli.sendRequest(ctx, "POST", path, query, body, headers)
51 51
 }
52 52
 
53
-// put sends an http request to the docker API using the method PUT.
54
-func (cli *Client) put(ctx context.Context, path string, query url.Values, obj interface{}, headers map[string][]string) (serverResponse, error) {
55
-	body, headers, err := encodeBody(obj, headers)
56
-	if err != nil {
57
-		return serverResponse{}, err
58
-	}
59
-	return cli.sendRequest(ctx, "PUT", path, query, body, headers)
60
-}
61
-
62 53
 // putRaw sends an http request to the docker API using the method PUT.
63 54
 func (cli *Client) putRaw(ctx context.Context, path string, query url.Values, body io.Reader, headers map[string][]string) (serverResponse, error) {
64 55
 	return cli.sendRequest(ctx, "PUT", path, query, body, headers)