aboutsummaryrefslogtreecommitdiffstats
path: root/common/bytes.go
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2015-04-22 16:58:11 +0800
committerFelix Lange <fjl@twurst.com>2015-04-22 18:31:19 +0800
commit9d152d6191349316d610208af2f55ef578785355 (patch)
treeaa6f3d22166a904ff6bf8b1c66d3c0fd6566c4b4 /common/bytes.go
parent2f4cc72119847775d3edd5e9e74075aa9297896f (diff)
downloadgo-tangerine-9d152d6191349316d610208af2f55ef578785355.tar
go-tangerine-9d152d6191349316d610208af2f55ef578785355.tar.gz
go-tangerine-9d152d6191349316d610208af2f55ef578785355.tar.bz2
go-tangerine-9d152d6191349316d610208af2f55ef578785355.tar.lz
go-tangerine-9d152d6191349316d610208af2f55ef578785355.tar.xz
go-tangerine-9d152d6191349316d610208af2f55ef578785355.tar.zst
go-tangerine-9d152d6191349316d610208af2f55ef578785355.zip
common: delete BinaryLength
The test is failing the 32bit build and the function is not used anywhere.
Diffstat (limited to 'common/bytes.go')
-rw-r--r--common/bytes.go11
1 files changed, 0 insertions, 11 deletions
diff --git a/common/bytes.go b/common/bytes.go
index 5d1245107..d279156b4 100644
--- a/common/bytes.go
+++ b/common/bytes.go
@@ -106,17 +106,6 @@ func ReadVarInt(buff []byte) (ret uint64) {
return
}
-// Binary length
-//
-// Returns the true binary length of the given number
-func BinaryLength(num int) int {
- if num == 0 {
- return 0
- }
-
- return 1 + BinaryLength(num>>8)
-}
-
// Copy bytes
//
// Returns an exact copy of the provided bytes