net/netip: remove unused netIPv{4,6}len consts

These were added by CL 339309 but never used.

Change-Id: I40cbb5b18ac94e72bc56c15bb239677de2a202f9
Reviewed-on: https://go-review.googlesource.com/c/go/+/521216
Auto-Submit: Tobias Klauser <tobias.klauser@gmail.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Damien Neil <dneil@google.com>
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
This commit is contained in:
Tobias Klauser 2023-08-22 13:48:02 +02:00 committed by Damien Neil
parent 463c34451d
commit 282cd561bb
1 changed files with 0 additions and 5 deletions

View File

@ -661,11 +661,6 @@ func (ip Addr) Prefix(b int) (Prefix, error) {
return PrefixFrom(ip, b), nil
}
const (
netIPv4len = 4
netIPv6len = 16
)
// As16 returns the IP address in its 16-byte representation.
// IPv4 addresses are returned as IPv4-mapped IPv6 addresses.
// IPv6 addresses with zones are returned without their zone (use the