feat(deprecated) Remove Instance::load.

This method cannot be ported. Prevent the user to deal with errors by
simply removing it.
This commit is contained in:
Ivan Enderlin
2020-07-06 11:09:16 +02:00
parent 5f8286c68b
commit a8857db2b6
2 changed files with 0 additions and 5 deletions

View File

@@ -3,7 +3,6 @@ struct Instance {
} }
impl Instance { impl Instance {
fn load<T>(&self, _loader: T) -> Result<Self, ()>;
fn fun<Args, Rets>(&self, name: &str) -> Result<Func<Args, Rets>, ExportError>; fn fun<Args, Rets>(&self, name: &str) -> Result<Func<Args, Rets>, ExportError>;
fn resolve_func(&self, name: &str) -> Result<usize, ()>; fn resolve_func(&self, name: &str) -> Result<usize, ()>;
fn dyn_func(&self, name: &str) -> Result<DynFunc, ExportError>; fn dyn_func(&self, name: &str) -> Result<DynFunc, ExportError>;

View File

@@ -61,10 +61,6 @@ impl Instance {
} }
} }
pub fn load<T>(&self, _loader: T) -> Result<Self, ()> {
Err(())
}
pub fn func<Args, Rets>(&self, name: &str) -> Result<Func<Args, Rets>, ExportError> pub fn func<Args, Rets>(&self, name: &str) -> Result<Func<Args, Rets>, ExportError>
where where
Args: new::wasmer::WasmTypeList + Clone, Args: new::wasmer::WasmTypeList + Clone,