From 5d38f751c2daaea13b860347dd01561ca8225261 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Tue, 19 Jan 2016 17:29:51 +0100 Subject: Remove unused wrapper --- provider.go | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'provider.go') diff --git a/provider.go b/provider.go index bba9efc..8a3f052 100644 --- a/provider.go +++ b/provider.go @@ -61,7 +61,7 @@ func DialProvider(directory string) (*Provider, error) { Transport: p, Timeout: time.Duration(5 * time.Second), } - resp, err := p.get(directory) + resp, err := p.Get(directory) if err != nil { return nil, err } @@ -76,10 +76,6 @@ func (p *Provider) post(uri string, s Signer, v interface{}) (*http.Response, er return p.Post(uri, "application/jose+json", signed) } -func (p *Provider) get(uri string) (*http.Response, error) { - return p.Get(uri) -} - type nextStep struct { Link map[string]string Location string @@ -219,7 +215,7 @@ func (p *Provider) Authz(s Signer, d *Desire) error { func (p *Provider) queryStatus(uri string) (bool, error) { log.Println("query", uri) r := &Challenge{} - resp, err := p.get(uri) + resp, err := p.Get(uri) if err != nil { return false, err } @@ -256,7 +252,7 @@ func (p *Provider) Bundle(s Signer, d *Desire) error { ns := parseHeader(resp) // second step: cet CA - resp, err = p.get(ns.Link["up"]) + resp, err = p.Get(ns.Link["up"]) if err != nil { return err } -- cgit v1.2.3