remove redundant code from arith_eval_by_metacall
This commit is contained in:
@@ -301,10 +301,6 @@ impl MachineState {
|
|||||||
let instantiation_err = functor!("instantiation_error", 1, [heap_atom!("(is)/2")]);
|
let instantiation_err = functor!("instantiation_error", 1, [heap_atom!("(is)/2")]);
|
||||||
let a = self[r].clone();
|
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);
|
let mut interms: Vec<Number> = Vec::with_capacity(64);
|
||||||
|
|
||||||
for heap_val in self.post_order_iter(a) {
|
for heap_val in self.post_order_iter(a) {
|
||||||
|
|||||||
Reference in New Issue
Block a user