Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
go-sectorbuilder
Commits
655646ff
Commit
655646ff
authored
Aug 28, 2019
by
laser
Browse files
bug(appease linter by deleting dead code)
parent
7ac74f81
Changes
2
Hide whitespace changes
Inline
Side-by-side
bindings_test.go
View file @
655646ff
...
...
@@ -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
)
...
...
transforms.go
View file @
655646ff
...
...
@@ -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
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment