Skip to content

Commit 615f8b6

Browse files
committed
lint: comment out unsused prepare() in algorithm tests
1 parent eefa041 commit 615f8b6

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

consensus/xhash/algorithm_test.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ import (
3232
// prepare converts an XHash cache or dataset from a byte stream into the internal
3333
// int representation. All XHash methods work with ints to avoid constant byte to
3434
// int conversions as well as to handle both little and big endian systems.
35-
func prepare(dest []uint32, src []byte) {
36-
for i := 0; i < len(dest); i++ {
37-
dest[i] = binary.LittleEndian.Uint32(src[i*4:])
38-
}
39-
}
35+
// func prepare(dest []uint32, src []byte) {
36+
// for i := 0; i < len(dest); i++ {
37+
// dest[i] = binary.LittleEndian.Uint32(src[i*4:])
38+
// }
39+
// }
4040

4141
// Tests whether the dataset size calculator works correctly by cross checking the
4242
// hard coded lookup table with the value generated by it.

0 commit comments

Comments
 (0)