remove encode/decodeURIs

This commit is contained in:
Matt Jaffee 2018-05-14 17:35:43 -05:00
parent fb8cc455b6
commit eb5187bfd0
No known key found for this signature in database
GPG key ID: 08A3DFFF987B11BF

22
uri.go
View file

@ -234,28 +234,6 @@ func decodeURI(i *internal.URI) URI {
}
}
func encodeURIs(a []URI) []*internal.URI {
if len(a) == 0 {
return nil
}
other := make([]*internal.URI, len(a))
for i := range a {
other[i] = encodeURI(a[i])
}
return other
}
func decodeURIs(a []*internal.URI) []URI {
if len(a) == 0 {
return nil
}
other := make([]URI, len(a))
for i := range a {
other[i] = decodeURI(a[i])
}
return other
}
// MarshalJSON marshals URI into a JSON-encoded byte slice.
func (u *URI) MarshalJSON() ([]byte, error) {
var output struct {