Skip to content
This repository was archived by the owner on Jan 5, 2019. It is now read-only.

Commit a1f2d3b

Browse files
committed
Remove dead code
1 parent c71beff commit a1f2d3b

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

wasm/generateInterface.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,6 @@ function generateManifest (interfaceManifest, opts) {
286286
// generate the call to the interface
287287
let spOffset = 0
288288
let numOfLocals = 0
289-
let lastOffset
290289
let call = `(call $${op.name}`
291290
op.input.forEach((input) => {
292291
if (input === 'i128' || input == 'address') {
@@ -331,7 +330,6 @@ function generateManifest (interfaceManifest, opts) {
331330
} else if (input === 'i64') {
332331
call += checkOverflowStackItem64(spOffset)
333332
} else if (input === 'writeOffset' || input === 'readOffset') {
334-
lastOffset = input
335333
locals += `(local $offset${numOfLocals} i32)`
336334
body += `(set_local $offset${numOfLocals} ${checkOverflowStackItem256(spOffset)})`
337335
call += `(get_local $offset${numOfLocals})`

0 commit comments

Comments
 (0)