diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2019-08-14 19:54:35 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-14 19:54:35 -0400 |
commit | 498f6ad431478f655b136782093e19e29248b24d (patch) | |
tree | f1a39982a1a372422ea93b1c9bd7298fe9a1e838 /js/dispatch.ts | |
parent | e6c349af9f7260c2c4ec713bd231fe554240721e (diff) |
Remove dead code: legacy read/write ops (#2776)
readSync and writeSync use dispatch_minimal now.
Diffstat (limited to 'js/dispatch.ts')
-rw-r--r-- | js/dispatch.ts | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/js/dispatch.ts b/js/dispatch.ts index babea5739..6edd2981c 100644 --- a/js/dispatch.ts +++ b/js/dispatch.ts @@ -32,9 +32,13 @@ function flatbufferRecordFromBuf(buf: Uint8Array): FlatbufferRecord { } export function handleAsyncMsgFromRust(opId: number, ui8: Uint8Array): void { - const buf32 = new Int32Array(ui8.buffer, ui8.byteOffset, ui8.byteLength / 4); if (opId !== FLATBUFFER_OP_ID) { // Fast and new + const buf32 = new Int32Array( + ui8.buffer, + ui8.byteOffset, + ui8.byteLength / 4 + ); const recordMin = recordFromBufMinimal(opId, buf32); handleAsyncMsgFromRustMinimal(ui8, recordMin); } else { |