Remove some dead code from wasmtime-jit (#3225)

Looks like nothing is actually using these methods, so let's remove
them.
This commit is contained in:
Alex Crichton
2021-08-23 14:35:39 -05:00
committed by GitHub
parent 3e65b46779
commit 925b771d2d
2 changed files with 1 additions and 21 deletions

View File

@@ -129,6 +129,7 @@ pub struct TypeTables {
/// Container for data needed for an Instance function to exist.
pub struct ModuleCode {
range: (usize, usize),
#[allow(dead_code)]
code_memory: CodeMemory,
#[allow(dead_code)]
dbg_jit_registration: Option<GdbJitImageRegistration>,
@@ -284,11 +285,6 @@ impl CompiledModule {
.expect("defined function should be present")
}
/// Returns all ranges covered by JIT code.
pub fn jit_code_ranges<'a>(&'a self) -> impl Iterator<Item = (usize, usize)> + 'a {
self.code.code_memory.published_ranges()
}
/// Returns module's JIT code.
pub fn code(&self) -> &Arc<ModuleCode> {
&self.code