Remove unused non-exported function so we can eliminate a dependency

This commit is contained in:
Andrew Ayer 2019-02-03 12:06:30 -08:00
parent 2b8286756e
commit 0168bd6520
1 changed files with 0 additions and 20 deletions

20
godo.go
View File

@ -14,7 +14,6 @@ import (
"time"
"github.com/google/go-querystring/query"
headerLink "github.com/tent/http-link-go"
)
const (
@ -263,25 +262,6 @@ func newResponse(r *http.Response) *Response {
return &response
}
func (r *Response) links() (map[string]headerLink.Link, error) {
if linkText, ok := r.Response.Header["Link"]; ok {
links, err := headerLink.Parse(linkText[0])
if err != nil {
return nil, err
}
linkMap := map[string]headerLink.Link{}
for _, link := range links {
linkMap[link.Rel] = link
}
return linkMap, nil
}
return map[string]headerLink.Link{}, nil
}
// populateRate parses the rate related headers and populates the response Rate.
func (r *Response) populateRate() {
if limit := r.Header.Get(headerRateLimit); limit != "" {