diff options
| author | Tobias Klauser <tklauser@distanz.ch> | 2023-08-23 10:54:37 +0200 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2023-08-23 16:39:32 +0000 |
| commit | a97f71578fe326629b6cdeaabe6eb0286ccc5c74 (patch) | |
| tree | 241870e8844b69fbe8d07f8aae626ff6e0f109a2 /src | |
| parent | 184540e9552f8244a0df3c1ff6a1ffbaa4449352 (diff) | |
| download | go-a97f71578fe326629b6cdeaabe6eb0286ccc5c74.tar.xz | |
net: remove unused func appendHex
It's unused since CL 463987.
Change-Id: Ic28fd3b4a613cd7b43f817118841d40e3005a5fc
Reviewed-on: https://go-review.googlesource.com/c/go/+/522135
Auto-Submit: Tobias Klauser <tobias.klauser@gmail.com>
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Damien Neil <dneil@google.com>
Diffstat (limited to 'src')
| -rw-r--r-- | src/net/parse.go | 14 |
1 files changed, 0 insertions, 14 deletions
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 |
