Remove ModuleEnvironment::get_func_name, which is unused.

This commit is contained in:
Dan Gohman
2018-11-30 16:11:59 -08:00
parent a20c852148
commit 954573440d
2 changed files with 0 additions and 7 deletions

View File

@@ -342,10 +342,6 @@ impl<'data> ModuleEnvironment<'data> for DummyEnvironment {
self.info.config self.info.config
} }
fn get_func_name(&self, func_index: FuncIndex) -> ir::ExternalName {
get_func_name(func_index)
}
fn declare_signature(&mut self, sig: &ir::Signature) { fn declare_signature(&mut self, sig: &ir::Signature) {
self.info.signatures.push(sig.clone()); self.info.signatures.push(sig.clone());
} }

View File

@@ -235,9 +235,6 @@ pub trait ModuleEnvironment<'data> {
/// Get the information needed to produce Cranelift IR for the current target. /// Get the information needed to produce Cranelift IR for the current target.
fn target_config(&self) -> TargetFrontendConfig; fn target_config(&self) -> TargetFrontendConfig;
/// Return the name for the given function index.
fn get_func_name(&self, func_index: FuncIndex) -> ir::ExternalName;
/// Declares a function signature to the environment. /// Declares a function signature to the environment.
fn declare_signature(&mut self, sig: &ir::Signature); fn declare_signature(&mut self, sig: &ir::Signature);