From 16d332b335b78b9069195087e7a784ee240eee89 Mon Sep 17 00:00:00 2001 From: "Matthew Wire (MJW Consulting)" Date: Wed, 6 Nov 2019 15:17:57 +0000 Subject: [PATCH] Remove unused cancelledStatus assign --- CRM/Contribute/Form/ContributionView.php | 8 -------- 1 file changed, 8 deletions(-) diff --git a/CRM/Contribute/Form/ContributionView.php b/CRM/Contribute/Form/ContributionView.php index 154896968f0a..bdfe7cec6c8d 100644 --- a/CRM/Contribute/Form/ContributionView.php +++ b/CRM/Contribute/Form/ContributionView.php @@ -48,14 +48,6 @@ public function preProcess() { $this->assign('noACL', TRUE); } CRM_Contribute_BAO_Contribution::resolveDefaults($values); - // @todo - I believe this cancelledStatus is unused - if someone reaches the same conclusion - // by grepping then the next few lines can go. - $cancelledStatus = TRUE; - $status = CRM_Contribute_PseudoConstant::contributionStatus(NULL, 'name'); - if (CRM_Utils_Array::value('contribution_status_id', $values) == array_search('Cancelled', $status)) { - $cancelledStatus = FALSE; - } - $this->assign('cancelledStatus', $cancelledStatus); if (!empty($values['contribution_page_id'])) { $contribPages = CRM_Contribute_PseudoConstant::contributionPage(NULL, TRUE);