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:
Michael Schimmel
2026-03-13 17:13:06 +01:00
parent 222fe64a1f
commit ef5c2367a7
2 changed files with 0 additions and 19 deletions
-1
View File
@@ -581,7 +581,6 @@ impl Optimizer {
}
let params_opt = self.visit_node(params.clone(), &mut next_inner_subs, path);
inliner.collect_parameter_slots(&params_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() {
-18
View File
@@ -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);
}
}
_ => {}
}
}
}