From 9f7ae50a20daf97aa4da7797ce470ba2242fb7eb Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Fri, 16 Jul 2021 18:22:47 +1200 Subject: [PATCH] Remove deprecated lines of code --- CRM/Contribute/BAO/Contribution.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/CRM/Contribute/BAO/Contribution.php b/CRM/Contribute/BAO/Contribution.php index 7dab1582be..bfe84b52ce 100644 --- a/CRM/Contribute/BAO/Contribution.php +++ b/CRM/Contribute/BAO/Contribution.php @@ -4581,11 +4581,6 @@ INNER JOIN civicrm_activity ON civicrm_activity_contact.activity_id = civicrm_ac // erm, yes because? but, hey, it's tested. return $lineItemDetails['line_total']; } - elseif (empty($lineItemDetails['line_total'])) { - // follow legacy code path - CRM_Core_Error::deprecatedWarning('Deprecated bit of code, please log a ticket explaining how you got here!'); - return $params['total_amount']; - } else { return self::getMultiplier($params['contribution']->contribution_status_id, $context) * ((float) $lineItemDetails['line_total']); } -- 2.25.1