Index: src/wasm/wasm-module.cc |
diff --git a/src/wasm/wasm-module.cc b/src/wasm/wasm-module.cc |
index fdc34f0e8e34b2abdeda27aef84f154c9b02f00f..58d31d20bd899c67f2a1dd8d8a85ae565b135b38 100644 |
--- a/src/wasm/wasm-module.cc |
+++ b/src/wasm/wasm-module.cc |
@@ -1892,13 +1892,6 @@ bool WasmCompiledModule::IsWasmCompiledModule(Object* obj) { |
WCM_PROPERTY_TABLE(WCM_CHECK) |
#undef WCM_CHECK |
- WasmCompiledModule* compiled_module = |
- reinterpret_cast<WasmCompiledModule*>(obj); |
- if (!compiled_module->has_module_bytes()) return false; |
- SeqOneByteString* module_bytes = compiled_module->ptr_to_module_bytes(); |
- if (module_bytes->length() < 4) return false; |
- if (memcmp(module_bytes->GetChars(), "\0asm", 4)) return false; |
- |
// All checks passed. |
return true; |
} |