Browse Source

remove old dead code

x 3 years ago
parent
commit
225c75f8c6
1 changed files with 1 additions and 14 deletions
  1. 1 14
      src/runtime/vm_runtime.rs

+ 1 - 14
src/runtime/vm_runtime.rs

@@ -63,7 +63,7 @@ pub struct Env {
 }
 
 impl Env {
-    /// Providers safe access to the memory
+    /// Provide safe access to the memory
     /// (it must be initialized before it can be used)
     ///
     ///     // ctx: FunctionEnvMut<Env>
@@ -80,19 +80,6 @@ impl Env {
     }
 }
 
-/*
-impl WasmerEnv for Env {
-    fn init_with_instance(
-        &mut self,
-        instance: &Instance,
-    ) -> std::result::Result<(), HostEnvInitError> {
-        let memory: Memory = instance.exports.get_with_generics_weak(MEMORY)?;
-        self.memory.initialize(memory);
-        Ok(())
-    }
-}
-*/
-
 /// The result of the VM execution
 pub struct ExecutionResult {
     /// The exit code returned by the wasm program