]> Cypherpunks repositories - gostls13.git/commitdiff
os: remove unused func itox
authorTobias Klauser <tklauser@distanz.ch>
Thu, 10 Aug 2023 19:42:00 +0000 (21:42 +0200)
committerGopher Robot <gobot@golang.org>
Fri, 11 Aug 2023 02:53:21 +0000 (02:53 +0000)
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>
src/os/str.go

index 242c945caf5fdffc4c773d798ad013e7eee59617..2089b548e624e5ad4a6449fa1ba83e2e04e74109 100644 (file)
@@ -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.