2
0

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:
Dan McGee
2023-07-10 08:58:12 -05:00
committed by Jack Christensen
parent 0328d314ea
commit 507a9e9ad3
6 changed files with 2 additions and 440 deletions
-9
View File
@@ -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 {