diff --git a/lib/runtime/src/instance.rs b/lib/runtime/src/instance.rs index b102832ab..d7dc60071 100644 --- a/lib/runtime/src/instance.rs +++ b/lib/runtime/src/instance.rs @@ -345,23 +345,6 @@ impl Namespace for Instance { // TODO Remove this later, only needed for compilation till emscripten is updated impl Instance { pub fn memory_offset_addr(&self, index: usize, offset: usize) -> *const u8 { - // Get vm context. - let vmctx = &self.vmctx; - - // Check if the index specified refers to an imported memory. - if index < self.module.0.imported_memories.len() { - // Get imported memory at specified index. - let memory = unsafe { vmctx.imported_memories.add(index) }; - - // Get the actual address of the specified offset. - return unsafe { (*(*memory).memory).base.add(offset) } - } - - // Index points to a locally-defined memory - // Get local memory at specified index. - let memory = unsafe { vmctx.memories.add(index) }; - - // Get the actual address of the specified offset. - unsafe { (*memory).base.add(offset) } + unimplemented!() } } diff --git a/lib/runtime/src/module.rs b/lib/runtime/src/module.rs index e575689b9..7c40c7ef0 100644 --- a/lib/runtime/src/module.rs +++ b/lib/runtime/src/module.rs @@ -39,7 +39,7 @@ pub struct ModuleInner { pub sig_registry: SigRegistry, } -pub struct Module(pub Rc); +pub struct Module(Rc); impl Module { pub(crate) fn new(inner: Rc) -> Self {