Remove unused collect_parameter_slots
This function was no longer being called and was removed as part of a refactoring.
This commit is contained in:
@@ -581,7 +581,6 @@ impl Optimizer {
|
||||
}
|
||||
|
||||
let params_opt = self.visit_node(params.clone(), &mut next_inner_subs, path);
|
||||
inliner.collect_parameter_slots(¶ms_opt, &mut next_inner_subs);
|
||||
|
||||
let body_opt = self.visit_node(body.clone(), &mut next_inner_subs, path);
|
||||
let reindexed_body = if new_upvalues.len() != upvalues.len() {
|
||||
|
||||
@@ -157,22 +157,4 @@ impl<'a> Inliner<'a> {
|
||||
_ => {}
|
||||
}
|
||||
}
|
||||
|
||||
pub fn collect_parameter_slots(&self, node: &AnalyzedNode, sub: &mut SubstitutionMap) {
|
||||
match &node.kind {
|
||||
BoundKind::Define {
|
||||
addr: Address::Local(slot),
|
||||
..
|
||||
} => {
|
||||
sub.slot_mapping.insert(*slot, *slot);
|
||||
sub.next_slot = sub.next_slot.max(slot.0 + 1);
|
||||
}
|
||||
BoundKind::Tuple { elements } => {
|
||||
for el in elements {
|
||||
self.collect_parameter_slots(el, sub);
|
||||
}
|
||||
}
|
||||
_ => {}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user