Skip to content

Commit 3b838f7

Browse files
authored
[NFC] Remove some dead code in wasm2js (#7201)
This code wrote to `export_name` but it was never used. I guess we forgot to remove it when we updated the name mangling there.
1 parent 5dc0e8c commit 3b838f7

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/wasm2js.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2772,14 +2772,6 @@ void Wasm2JSGlue::emitPostES6() {
27722772
default:
27732773
continue;
27742774
}
2775-
std::ostringstream export_name;
2776-
for (char c : exp->name.str) {
2777-
if (c == '-') {
2778-
export_name << '_';
2779-
} else {
2780-
export_name << c;
2781-
}
2782-
}
27832775
out << "export var " << asmangle(exp->name.toString()) << " = ret"
27842776
<< moduleName << "." << asmangle(exp->name.toString()) << ";\n";
27852777
}

0 commit comments

Comments
 (0)