Skip to content

Commit 165cc15

Browse files
authored
Remove dead code (getTypeFromHeap) from src/parseTools.js. NFC (#19250)
The last reference to this function was removed in f45be30
1 parent 858eadf commit 165cc15

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

src/parseTools.js

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -505,17 +505,6 @@ function charCode(char) {
505505
return char.charCodeAt(0);
506506
}
507507

508-
function getTypeFromHeap(suffix) {
509-
switch (suffix) {
510-
case '8': return 'i8';
511-
case '16': return 'i16';
512-
case '32': return 'i32';
513-
case 'F32': return 'float';
514-
case 'F64': return 'double';
515-
}
516-
assert(false, 'bad type suffix: ' + suffix);
517-
}
518-
519508
function ensureValidFFIType(type) {
520509
return type === 'float' ? 'double' : type; // ffi does not tolerate float XXX
521510
}

0 commit comments

Comments
 (0)