Commit 655646ff authored by laser's avatar laser
Browse files

bug(appease linter by deleting dead code)

parent 7ac74f81
......@@ -3,7 +3,6 @@ package go_sectorbuilder_test
import (
"bytes"
"crypto/rand"
"encoding/binary"
"errors"
"io"
"io/ioutil"
......@@ -130,16 +129,6 @@ func pollForSectorSealingStatus(ptr unsafe.Pointer, sectorID uint64, sealStatusC
}
}
func sectorIdAsBytes(sectorID uint64) [31]byte {
slice := make([]byte, 31)
binary.LittleEndian.PutUint64(slice, sectorID)
var sectorIDAsBytes [31]byte
copy(sectorIDAsBytes[:], slice)
return sectorIDAsBytes
}
func requireTempFilePath(t *testing.T, fileContentsReader io.Reader) string {
file, err := ioutil.TempFile("", "")
require.NoError(t, err)
......
......@@ -120,11 +120,3 @@ func goPieceMetadata(src *C.sector_builder_ffi_FFIPieceMetadata, size C.size_t)
return ps, nil
}
func goUint64s(src *C.uint64_t, size C.size_t) []uint64 {
out := make([]uint64, size)
if src != nil {
copy(out, (*(*[1 << 30]uint64)(unsafe.Pointer(src)))[:size:size])
}
return out
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment