1
0
Fork 0

Remove unused function

master
Philip O'Toole 9 months ago
parent 72db972965
commit c81c3d1e52

@ -2,11 +2,9 @@ package http
import (
"bytes"
"compress/gzip"
"encoding/json"
"fmt"
"io"
"io/ioutil"
"net/http"
"net/http/httptest"
"net/url"
@ -1472,21 +1470,6 @@ func mustParseDuration(d string) time.Duration {
}
}
func mustGunzip(b []byte) []byte {
r, err := gzip.NewReader(bytes.NewBuffer(b))
if err != nil {
panic(err)
}
defer r.Close()
dec, err := ioutil.ReadAll(r)
if err != nil {
panic(err)
}
return dec
}
func mustGetQueryParams(req *http.Request) QueryParams {
qp, err := NewQueryParams(req)
if err != nil {

Loading…
Cancel
Save