Removed unnecesary function

This commit is contained in:
Syrus Akbary 2018-10-18 12:05:00 +02:00
parent 96f2440960
commit 80f3bf161e

View File

@ -161,9 +161,6 @@ impl ModuleInfo {
grow_memory_extfunc: None,
}
}
pub fn set_current_memory_extfunc(&mut self, func: FuncRef) {
self.current_memory_extfunc = Some(func);
}
}
/// A data initializer for linear memory.
@ -622,7 +619,7 @@ impl<'environment> FuncEnvironmentTrait for FuncEnvironment<'environment> {
})
});
// self.mod_info.set_current_memory_extfunc(f);
// self.mod_info.current_memory_extfunc = cur_mem_func;
let vmctx = pos.func.special_param(ArgumentPurpose::VMContext).unwrap();