aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2023-08-10 21:42:00 +0200
committerGopher Robot <gobot@golang.org>2023-08-11 02:53:21 +0000
commit9c3ffbf424bd1d02ea1187c6f744ca9635d9ef11 (patch)
treecc89c33542dfbce55bb496bc7482e844e6421177 /src
parent1d3a77e5e6548a4720e74c55bed0145b570f6287 (diff)
downloadgo-9c3ffbf424bd1d02ea1187c6f744ca9635d9ef11.tar.xz
os: remove unused func itox
It was added by CL 288792 but was never used. Change-Id: I0c21237c0c32ee5df2ebe99b6ecd8831f9c28649 Reviewed-on: https://go-review.googlesource.com/c/go/+/518316 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@google.com> Run-TryBot: Ian Lance Taylor <iant@google.com> Auto-Submit: Tobias Klauser <tobias.klauser@gmail.com> Reviewed-by: Michael Knyszek <mknyszek@google.com>
Diffstat (limited to 'src')
-rw-r--r--src/os/str.go8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/os/str.go b/src/os/str.go
index 242c945caf..2089b548e6 100644
--- a/src/os/str.go
+++ b/src/os/str.go
@@ -6,14 +6,6 @@
package os
-// itox converts val (an int) to a hexadecimal string.
-func itox(val int) string {
- if val < 0 {
- return "-" + uitox(uint(-val))
- }
- return uitox(uint(val))
-}
-
const hex = "0123456789abcdef"
// uitox converts val (a uint) to a hexadecimal string.