Index: src/wasm/wasm-opcodes.cc |
diff --git a/src/wasm/wasm-opcodes.cc b/src/wasm/wasm-opcodes.cc |
index 658c3b8c929d803db94d3e395bac0e44667059dc..287f6ad88a3014bd963c159912c8e68af8bf40f0 100644 |
--- a/src/wasm/wasm-opcodes.cc |
+++ b/src/wasm/wasm-opcodes.cc |
@@ -176,19 +176,6 @@ int WasmOpcodes::TrapReasonToMessageId(TrapReason reason) { |
} |
} |
-int32_t WasmOpcodes::TrapReasonToFunctionId(TrapReason reason) { |
- switch (reason) { |
-#define TRAPREASON_TO_MESSAGE(name) \ |
- case k##name: \ |
- return static_cast<int32_t>(Runtime::kThrowWasm##name); |
- FOREACH_WASM_TRAPREASON(TRAPREASON_TO_MESSAGE) |
-#undef TRAPREASON_TO_MESSAGE |
- default: |
- UNREACHABLE(); |
- return -1; |
- } |
-} |
- |
const char* WasmOpcodes::TrapReasonMessage(TrapReason reason) { |
return MessageTemplate::TemplateString(TrapReasonToMessageId(reason)); |
} |