Index: src/wasm/ast-decoder.cc |
diff --git a/src/wasm/ast-decoder.cc b/src/wasm/ast-decoder.cc |
index 0d0c6e0fb0f3e83433895e408b02ee0a376cc938..d63037aef7676b38f709201cb152c3428c06e7ae 100644 |
--- a/src/wasm/ast-decoder.cc |
+++ b/src/wasm/ast-decoder.cc |
@@ -1674,17 +1674,6 @@ std::ostream& operator<<(std::ostream& os, const Tree& tree) { |
return os; |
} |
- |
-ReadUnsignedLEB128ErrorCode ReadUnsignedLEB128Operand(const byte* pc, |
- const byte* limit, |
- int* length, |
- uint32_t* result) { |
- Decoder decoder(pc, limit); |
- *result = decoder.checked_read_u32v(pc, 0, length); |
- if (decoder.ok()) return kNoError; |
- return (limit - pc) > 1 ? kInvalidLEB128 : kMissingLEB128; |
-} |
- |
int OpcodeLength(const byte* pc, const byte* end) { |
WasmDecoder decoder(nullptr, nullptr, pc, end); |
return decoder.OpcodeLength(pc); |