Remove some now unused pgtype code
Most of this is in conversion, and I assume it became unused with some of the v5 changes and refactors to a codec-based approach. There are likely a few more cleanups to be made, but these ones seemed easy and safe to start with.
This commit is contained in:
committed by
Jack Christensen
parent
0328d314ea
commit
507a9e9ad3
@@ -47,15 +47,6 @@ type _byteSlice []byte
|
||||
// is not known (e.g. when using the simple protocol).
|
||||
const unregisteredOID = uint32(1)
|
||||
|
||||
func mustParseCIDR(t testing.TB, s string) *net.IPNet {
|
||||
_, ipnet, err := net.ParseCIDR(s)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
return ipnet
|
||||
}
|
||||
|
||||
func mustParseInet(t testing.TB, s string) *net.IPNet {
|
||||
ip, ipnet, err := net.ParseCIDR(s)
|
||||
if err == nil {
|
||||
|
||||
Reference in New Issue
Block a user