Remove deprecated lines of code
authorEileen McNaughton <emcnaughton@wikimedia.org>
Fri, 16 Jul 2021 06:22:47 +0000 (18:22 +1200)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Fri, 16 Jul 2021 06:22:47 +0000 (18:22 +1200)
CRM/Contribute/BAO/Contribution.php

index 7dab1582bebf8477db263bfb9a1b363abdc584cf..bfe84b52ce61cc03fdb31211c1be3d6c88839215 100644 (file)
@@ -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']);
     }