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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user