From 3b838f70d637bb89cc0218d26429cb192da0c615 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Wed, 8 Jan 2025 16:51:17 -0800 Subject: [PATCH] [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. --- src/wasm2js.h | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/wasm2js.h b/src/wasm2js.h index 7ed089448e2..6aa718e3917 100644 --- a/src/wasm2js.h +++ b/src/wasm2js.h @@ -2772,14 +2772,6 @@ void Wasm2JSGlue::emitPostES6() { default: continue; } - std::ostringstream export_name; - for (char c : exp->name.str) { - if (c == '-') { - export_name << '_'; - } else { - export_name << c; - } - } out << "export var " << asmangle(exp->name.toString()) << " = ret" << moduleName << "." << asmangle(exp->name.toString()) << ";\n"; }