Remove deprecated function
authorEileen McNaughton <emcnaughton@wikimedia.org>
Fri, 3 Sep 2021 05:30:08 +0000 (17:30 +1200)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Fri, 3 Sep 2021 05:30:08 +0000 (17:30 +1200)
CRM/Contribute/BAO/ContributionRecur.php

index b468a8fa37c8d3730fe5672eec0287d211e0af55..efd7e27bff84cbad2aed68e04542e2d4da106ac8 100644 (file)
@@ -633,32 +633,6 @@ INNER JOIN civicrm_contribution       con ON ( con.id = mp.contribution_id )
     }
   }
 
-  /**
-   * Send start or end notification for recurring payments.
-   *
-   * @param array $ids
-   * @param CRM_Contribute_BAO_ContributionRecur $recur
-   * @param bool $isFirstOrLastRecurringPayment
-   */
-  public static function sendRecurringStartOrEndNotification($ids, $recur, $isFirstOrLastRecurringPayment) {
-    CRM_Core_Error::deprecatedFunctionWarning('use CRM_Contribute_BAO_ContributionPage::recurringNotify');
-    if ($isFirstOrLastRecurringPayment) {
-      $autoRenewMembership = FALSE;
-      if ($recur->id &&
-        isset($ids['membership']) && $ids['membership']
-      ) {
-        $autoRenewMembership = TRUE;
-      }
-
-      //send recurring Notification email for user
-      CRM_Contribute_BAO_ContributionPage::recurringNotify(
-        $ids['contribution'],
-        $isFirstOrLastRecurringPayment,
-        $recur
-      );
-    }
-  }
-
   /**
    * Copy custom data of the initial contribution into its recurring contributions.
    *