Skip to content

Commit

Permalink
Remove conversion code not in use.
Browse files Browse the repository at this point in the history
Signed-off-by: deadprogram <[email protected]>
  • Loading branch information
deadprogram committed Oct 8, 2017
1 parent bc9a420 commit 7389571
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions core.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,13 +159,6 @@ func NewScalar(v1 float64, v2 float64, v3 float64, v4 float64) Scalar {
return s
}

func toByteArray(b []byte) C.struct_ByteArray {
return C.struct_ByteArray{
data: (*C.char)(unsafe.Pointer(&b[0])),
length: C.int(len(b)),
}
}

func toGoBytes(b C.struct_ByteArray) []byte {
return C.GoBytes(unsafe.Pointer(b.data), b.length)
}

0 comments on commit 7389571

Please sign in to comment.