build: remove unused code spotted by the deadcode linter

This commit is contained in:
Nick Craig-Wood 2018-05-04 15:31:55 +01:00
parent cb5bd47e61
commit 1320e84bc2
18 changed files with 15 additions and 134 deletions

View file

@ -1070,10 +1070,3 @@ func itob(v int64) []byte {
func btoi(d []byte) int64 {
return int64(binary.BigEndian.Uint64(d))
}
// cloneBytes returns a copy of a given slice.
func cloneBytes(v []byte) []byte {
var clone = make([]byte, len(v))
copy(clone, v)
return clone
}