From eab134fb6fb83beeda6ef97aca8cf06507723e32 Mon Sep 17 00:00:00 2001 From: eileen Date: Mon, 10 Aug 2020 09:44:02 +1200 Subject: [PATCH] Remove unused variable I spotted this variable as defined but unused - let's remove --- ext/eventcart/CRM/Event/Cart/StateMachine/Checkout.php | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/ext/eventcart/CRM/Event/Cart/StateMachine/Checkout.php b/ext/eventcart/CRM/Event/Cart/StateMachine/Checkout.php index 3ca22852815a..bff2b8adb047 100644 --- a/ext/eventcart/CRM/Event/Cart/StateMachine/Checkout.php +++ b/ext/eventcart/CRM/Event/Cart/StateMachine/Checkout.php @@ -19,14 +19,7 @@ public function __construct($controller, $action = CRM_Core_Action::NONE) { } $pages = []; - $is_monetary = FALSE; - $is_conference = FALSE; - foreach ($cart->events_in_carts as $event_in_cart) { - if ($event_in_cart->event->is_monetary) { - $is_monetary = TRUE; - } - } - $pages["CRM_Event_Cart_Form_Checkout_ParticipantsAndPrices"] = NULL; + $pages['CRM_Event_Cart_Form_Checkout_ParticipantsAndPrices'] = NULL; foreach ($cart->events_in_carts as $event_in_cart) { if ($event_in_cart->is_parent_event()) { foreach ($event_in_cart->participants as $participant) {