Skip to content

Commit

Permalink
chore: remove unnecessary check for constant sum
Browse files Browse the repository at this point in the history
  • Loading branch information
TomAFrench committed Aug 21, 2023
1 parent 11591b9 commit ddf4d87
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -454,11 +454,6 @@ impl AcirContext {
let rhs_expr = self.var_to_expression(rhs)?;
let sum_expr = &lhs_expr + &rhs_expr;

if let Some(constant) = sum_expr.to_const() {
let result = self.add_constant(constant);
return Ok(result);
}

Ok(self.add_data(AcirVarData::from(sum_expr)))
}

Expand Down

0 comments on commit ddf4d87

Please sign in to comment.