diff --git a/src/net/parse.go b/src/net/parse.go index fbc50144c2..22c6123243 100644 --- a/src/net/parse.go +++ b/src/net/parse.go @@ -180,20 +180,6 @@ func xtoi2(s string, e byte) (byte, bool) { return byte(n), ok && ei == 2 } -// Convert i to a hexadecimal string. Leading zeros are not printed. -func appendHex(dst []byte, i uint32) []byte { - if i == 0 { - return append(dst, '0') - } - for j := 7; j >= 0; j-- { - v := i >> uint(j*4) - if v > 0 { - dst = append(dst, hexDigit[v&0xf]) - } - } - return dst -} - // Number of occurrences of b in s. func count(s string, b byte) int { n := 0