jsutil: Remove ArrayBufferToSlice

This commit is contained in:
Hajime Hoshi 2020-12-06 02:28:14 +09:00
parent b326b76d60
commit 7a86238c9a
2 changed files with 0 additions and 8 deletions

View File

@ -21,10 +21,6 @@ import (
. "github.com/hajimehoshi/ebiten/v2/internal/jsutil" . "github.com/hajimehoshi/ebiten/v2/internal/jsutil"
) )
func TestArrayBufferToSlice(t *testing.T) {
// TODO
}
func TestCopySliceToJS(t *testing.T) { func TestCopySliceToJS(t *testing.T) {
tests := []struct { tests := []struct {
in interface{} in interface{}

View File

@ -28,10 +28,6 @@ func Uint8ArrayToSlice(value js.Value) []byte {
return s return s
} }
func ArrayBufferToSlice(value js.Value) []byte {
return Uint8ArrayToSlice(js.Global().Get("Uint8Array").New(value))
}
func sliceToByteSlice(s interface{}) (bs []byte) { func sliceToByteSlice(s interface{}) (bs []byte) {
switch s := s.(type) { switch s := s.(type) {
case []int8: case []int8: