Remove deprecated function.
authoreileen <emcnaughton@wikimedia.org>
Sun, 18 Aug 2019 22:29:22 +0000 (10:29 +1200)
committereileen <emcnaughton@wikimedia.org>
Sun, 18 Aug 2019 22:29:22 +0000 (10:29 +1200)
I noticed this has been deprecated for over a year (& is unused). Removing

CRM/Member/BAO/MembershipType.php

index 745294615101569dd39afebc50663db225b22515..3686b3f106dc1eae6628bce7efe54985c5eb05f1 100644 (file)
@@ -625,27 +625,6 @@ class CRM_Member_BAO_MembershipType extends CRM_Member_DAO_MembershipType {
     return $membershipDates;
   }
 
-  /**
-   * @deprecated Please use the Membership API
-   * Retrieve all Membership Types associated with an Organization
-   *
-   * @param int $orgID
-   *   Id of Organization.
-   *
-   * @return array
-   *   array of the details of membership types
-   */
-  public static function getMembershipTypesByOrg($orgID) {
-    CRM_Core_Error::deprecatedFunctionWarning('membership_type api');
-    $memberTypesSameParentOrg = civicrm_api3('MembershipType', 'get', [
-      'member_of_contact_id' => $orgID,
-      'options' => [
-        'limit' => 0,
-      ],
-    ]);
-    return CRM_Utils_Array::value('values', $memberTypesSameParentOrg, []);
-  }
-
   /**
    * Retrieve all Membership Types with Member of Contact id.
    *