Remove dead code

This commit is contained in:
Jakub Tobiasz 2023-04-29 08:15:55 +02:00
parent b0c17b1f65
commit c126bf3854
No known key found for this signature in database
GPG key ID: 6434250CB3525233

View file

@ -86,13 +86,4 @@ final class CompleteOrderHandler implements MessageHandlerInterface
return $cart;
}
private function orderTotalChanged(OrderInterface $cart): bool
{
$recalculatedCart = clone $cart;
$recalculatedCart->recalculateItemsTotal();
$recalculatedCart->recalculateAdjustmentsTotal();
return $cart->getTotal() === $recalculatedCart->getTotal();
}
}