Merge pull request #15359 from fkohrt/master
[civicrm-core.git] / CRM / Member / BAO / MembershipType.php
index 7c16cd599585f6999f062b618d60662e39d33dc9..f6e98d7a3a33ae4f1fdf1ebe164d93914369ff7f 100644 (file)
@@ -630,27 +630,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.
    *