diff --git a/compiler/mono/src/ir.rs b/compiler/mono/src/ir.rs index 79628b27ac..9d4d41efd3 100644 --- a/compiler/mono/src/ir.rs +++ b/compiler/mono/src/ir.rs @@ -302,39 +302,6 @@ pub enum InProgressProc<'a> { } impl<'a> Procs<'a> { - /// Absorb the contents of another Procs into this one. - pub fn absorb(&mut self, mut other: Procs<'a>) { - debug_assert!(self.pending_specializations.is_some()); - debug_assert!(other.pending_specializations.is_some()); - - match self.pending_specializations { - Some(ref mut pending_specializations) => { - for (k, v) in other.pending_specializations.unwrap().drain() { - pending_specializations.insert(k, v); - } - } - None => { - unreachable!(); - } - } - - for (k, v) in other.partial_procs.drain() { - self.partial_procs.insert(k, v); - } - - for (k, v) in other.specialized.drain() { - self.specialized.insert(k, v); - } - - for (k, v) in other.runtime_errors.drain() { - self.runtime_errors.insert(k, v); - } - - for symbol in other.module_thunks.drain() { - self.module_thunks.insert(symbol); - } - } - pub fn get_specialized_procs_without_rc( self, arena: &'a Bump,