From: Eileen McNaughton Date: Fri, 16 Jul 2021 06:22:47 +0000 (+1200) Subject: Remove deprecated lines of code X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=9f7ae50a20daf97aa4da7797ce470ba2242fb7eb;p=civicrm-core.git Remove deprecated lines of code --- 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']); }