diff --git a/provider/http.go b/provider/http.go index 440482a52d..a8c1a190fa 100644 --- a/provider/http.go +++ b/provider/http.go @@ -156,29 +156,6 @@ func (p *HTTP) WithAuth(typ, user, password string) (*HTTP, error) { return p, nil } -/* -// request executes the configured request or returns the cached value -func (p *HTTP) request(url string, body ...string) ([]byte, error) { - if time.Since(p.updated) >= p.cache { - var b io.Reader - if len(body) == 1 { - b = strings.NewReader(body[0]) - } - - // empty method becomes GET - req, err := request.New(strings.ToUpper(p.method), url, b, p.headers) - if err != nil { - return []byte{}, err - } - - p.val, p.err = p.DoBody(req) - p.updated = time.Now() - } - - return p.val, p.err -} -*/ - // request executes the configured request or returns the cached value func (p *HTTP) request(url string, body ...string) ([]byte, error) { if time.Since(p.updated) >= p.cache {