Skip to content

Commit

Permalink
removed util function we ended up not using
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-hoefgen committed Mar 28, 2023
1 parent 0fd7cb1 commit 96a38e0
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions localbucketing.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import (
"strings"
"sync"
"time"
"unicode/utf16"
"unsafe"

"github.com/bytecodealliance/wasmtime-go/v6"
Expand Down Expand Up @@ -576,15 +575,6 @@ func (d *DevCycleLocalBucketing) newAssemblyScriptString(param []byte) (int32, e
return ptr.(int32), nil
}

func (d *DevCycleLocalBucketing) newAssemblyScriptUTF16StringNoPoolByteArray(param string) (int32, error) {
utf16Output := utf16.Encode(([]rune)(param))
var rawBytes []byte
for _, i := range utf16Output {
rawBytes = binary.LittleEndian.AppendUint16(rawBytes, i)
}
return d.newAssemblyScriptNoPoolByteArray(rawBytes)
}

func (d *DevCycleLocalBucketing) newAssemblyScriptNoPoolByteArray(param []byte) (int32, error) {
const objectIdByteArray int32 = 1
var align int32 = 0
Expand Down

0 comments on commit 96a38e0

Please sign in to comment.