Skip to content
This repository has been archived by the owner on May 25, 2023. It is now read-only.

Commit

Permalink
Remove unused constant.
Browse files Browse the repository at this point in the history
Signed-off-by: David Anderson <dave@natulte.net>
  • Loading branch information
danderson committed Dec 24, 2020
1 parent efe76f4 commit 0a650c7
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions netaddr.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,8 @@ import (
"go4.org/intern"
)

// Simple constants copied to avoid importing math.
const (
maxUint8 = 1<<8 - 1
maxUint16 = 1<<16 - 1
)

// mask4In6 is the mask of ip.lo indicating an IPv4-mapped IPv6 address.
const mask4In6 = 0xffff00000000

// copied to avoid importing math.
const maxUint16 = 1<<16 - 1

// Sizes: (64-bit)
// net.IP: 24 byte slice header + {4, 16} = 28 to 40 bytes
Expand Down

0 comments on commit 0a650c7

Please sign in to comment.