Remove some dead code (#3970)

This commit removes methods that are never used between crates or trait
impls like `Clone` which may have been used one day but are no longer used.
This commit is contained in:
Alex Crichton
2022-03-30 13:51:34 -05:00
committed by GitHub
parent d1d10dc8da
commit 453feb6f82
6 changed files with 11 additions and 46 deletions

View File

@@ -518,11 +518,6 @@ impl CompiledModule {
&self.module
}
/// Returns the `FunctionInfo` map for all defined functions.
pub fn functions(&self) -> &PrimaryMap<DefinedFuncIndex, FunctionInfo> {
&self.funcs
}
/// Looks up the `name` section name for the function index `idx`, if one
/// was specified in the original wasm module.
pub fn func_name(&self, idx: FuncIndex) -> Option<&str> {