Skip to content

Commit fd3f342

Browse files
committed
Remove unused method
1 parent 3281efb commit fd3f342

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

client.go

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -74,16 +74,6 @@ func (client *Client) newRequest(ctx context.Context, method, uri string, body a
7474
return req, nil
7575
}
7676

77-
// addURLParams adds urls parameters to an *http.Request
78-
func (client *Client) addURLParams(request *http.Request, params map[string]string) *http.Request {
79-
q := request.URL.Query()
80-
for key, value := range params {
81-
q.Add(key, value)
82-
}
83-
request.URL.RawQuery = q.Encode()
84-
return request
85-
}
86-
8777
// do carries out an HTTP request and returns a Response
8878
func (client *Client) do(req *http.Request) (*Response, error) {
8979
if req == nil {

0 commit comments

Comments
 (0)