Drop unused jump_counter

This commit is contained in:
Richard Feldman 2020-08-08 19:52:31 -04:00
parent 5c6939e7ec
commit 3fe2a4e3fd
7 changed files with 0 additions and 10 deletions

View file

@ -910,9 +910,6 @@ pub fn optimize_when<'a>(
&jumps,
);
// increase the jump counter by the number of jumps in this branching structure
*env.jump_counter += jumps.len() as u64;
Expr::Store(stores, env.arena.alloc(expr))
}

View file

@ -252,7 +252,6 @@ pub struct Env<'a, 'i> {
pub problems: &'i mut std::vec::Vec<MonoProblem>,
pub home: ModuleId,
pub ident_ids: &'i mut IdentIds,
pub jump_counter: &'a mut u64,
}
impl<'a, 'i> Env<'a, 'i> {