mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 15:21:12 +00:00
remove old function
This commit is contained in:
parent
52ab57fc7c
commit
c24d51e69d
1 changed files with 0 additions and 33 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue