From 663d7e035db95fa45e281e6d8984484de26779c3 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Wed, 21 Jun 2023 18:15:52 -0700 Subject: [PATCH] Remove unused functions from AuthorizeNetIPN --- CRM/Core/Payment/AuthorizeNetIPN.php | 31 ---------------------------- 1 file changed, 31 deletions(-) diff --git a/CRM/Core/Payment/AuthorizeNetIPN.php b/CRM/Core/Payment/AuthorizeNetIPN.php index 8ac0a5d13e..ea8632b097 100644 --- a/CRM/Core/Payment/AuthorizeNetIPN.php +++ b/CRM/Core/Payment/AuthorizeNetIPN.php @@ -180,18 +180,6 @@ class CRM_Core_Payment_AuthorizeNetIPN extends CRM_Core_Payment_BaseIPN { return $this->retrieve('x_response_code', 'Integer') === 1; } - /** - * Get ids from input. - * - * @param array $ids - * - * @throws \CRM_Core_Exception - */ - public function getIDs(&$ids) { - $ids['contribution'] = $this->getContributionID(); - $ids['contributionRecur'] = $this->getContributionRecurID(); - } - /** * @param string $name * Parameter name. @@ -217,25 +205,6 @@ class CRM_Core_Payment_AuthorizeNetIPN extends CRM_Core_Payment_BaseIPN { return $value; } - /** - * Get membership id, if any. - * - * @param int $contributionID - * @param int $contributionRecurID - * - * @return int|null - */ - protected function getMembershipID(int $contributionID, int $contributionRecurID): ?int { - // Get membershipId. Join with membership payment table for additional checks - $sql = " - SELECT m.id - FROM civicrm_membership m -INNER JOIN civicrm_membership_payment mp ON m.id = mp.membership_id AND mp.contribution_id = {$contributionID} - WHERE m.contribution_recur_id = {$contributionRecurID} - LIMIT 1"; - return CRM_Core_DAO::singleValueQuery($sql); - } - /** * Get the recurring contribution object. * -- 2.25.1