From e206c8b7fb56ee068cc3b14bb3874a4b0f3d6ca8 Mon Sep 17 00:00:00 2001 From: Mark Thom Date: Mon, 19 Mar 2018 20:01:32 -0600 Subject: [PATCH] remove extraneous code. --- src/prolog/machine/machine_state_impl.rs | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/prolog/machine/machine_state_impl.rs b/src/prolog/machine/machine_state_impl.rs index c32a8a49..fc0dc06b 100644 --- a/src/prolog/machine/machine_state_impl.rs +++ b/src/prolog/machine/machine_state_impl.rs @@ -1076,8 +1076,6 @@ impl MachineState { HeapCellValue::Addr(Addr::HeapCell(hc2))) => if hc1 != hc2 { return hc1.cmp(&hc2); - } else { - continue; }, (HeapCellValue::Addr(Addr::HeapCell(_)), _) => return Ordering::Less, @@ -1089,8 +1087,6 @@ impl MachineState { return Ordering::Less; } else if sc1 > sc2 { return Ordering::Greater; - } else { - continue; }, (HeapCellValue::Addr(Addr::StackCell(..)), HeapCellValue::Addr(Addr::HeapCell(_))) => @@ -1107,8 +1103,6 @@ impl MachineState { HeapCellValue::Addr(Addr::Con(Constant::Number(n2)))) => if n1 != n2 { return n1.cmp(&n2); - } else { - continue; }, (HeapCellValue::Addr(Addr::Con(Constant::Number(_))), _) => return Ordering::Less, @@ -1125,8 +1119,6 @@ impl MachineState { HeapCellValue::Addr(Addr::Con(Constant::String(s2)))) => if s1 != s2 { return s1.cmp(&s2); - } else { - continue; }, (HeapCellValue::Addr(Addr::Con(Constant::String(_))), _) => return Ordering::Less, @@ -1146,8 +1138,6 @@ impl MachineState { HeapCellValue::Addr(Addr::Con(Constant::Atom(s2)))) => if s1 != s2 { return s1.cmp(&s2); - } else { - continue; }, (HeapCellValue::Addr(Addr::Con(Constant::Atom(_))), _) => return Ordering::Less, @@ -1158,8 +1148,6 @@ impl MachineState { return Ordering::Greater; } else if n1 != n2 { return n1.cmp(&n2); - } else { - continue; }, (HeapCellValue::Addr(Addr::Lis(_)), HeapCellValue::Addr(Addr::Lis(_))) => continue, -- 2.54.0