remove redundant code from arith_eval_by_metacall

This commit is contained in:
Mark Thom
2018-03-18 19:25:45 -06:00
parent 9430bee825
commit 612835500c

View File

@@ -301,10 +301,6 @@ impl MachineState {
let instantiation_err = functor!("instantiation_error", 1, [heap_atom!("(is)/2")]);
let a = self[r].clone();
if let &Addr::Con(Constant::Number(ref n)) = &a {
return Ok(n.clone());
}
let mut interms: Vec<Number> = Vec::with_capacity(64);
for heap_val in self.post_order_iter(a) {