mirror of
https://github.com/fluencelabs/parity-wasm
synced 2025-06-18 09:21:49 +00:00
Clean
This commit is contained in:
@ -58,7 +58,6 @@ pub fn validate_module(module: &Module) -> Result<ValidatedModule, Error> {
|
|||||||
.expect("function_section_len != 0; function_section_len == code_section_len; qed");
|
.expect("function_section_len != 0; function_section_len == code_section_len; qed");
|
||||||
// check every function body
|
// check every function body
|
||||||
for (index, function) in function_section.entries().iter().enumerate() {
|
for (index, function) in function_section.entries().iter().enumerate() {
|
||||||
let function_labels = {
|
|
||||||
let function_body = code_section
|
let function_body = code_section
|
||||||
.bodies()
|
.bodies()
|
||||||
.get(index as usize)
|
.get(index as usize)
|
||||||
@ -67,13 +66,6 @@ pub fn validate_module(module: &Module) -> Result<ValidatedModule, Error> {
|
|||||||
let Error(ref msg) = e;
|
let Error(ref msg) = e;
|
||||||
Error(format!("Function #{} validation error: {}", index, msg))
|
Error(format!("Function #{} validation error: {}", index, msg))
|
||||||
})?;
|
})?;
|
||||||
|
|
||||||
// TODO: pepyakin
|
|
||||||
// context.function_labels()
|
|
||||||
};
|
|
||||||
|
|
||||||
// TODO: pepyakin
|
|
||||||
// self.functions_labels.insert(index as u32, function_labels);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user