From 2d1ca76a080f1b041f5b9691d076be138f6e058c Mon Sep 17 00:00:00 2001 From: eileen Date: Mon, 19 Aug 2019 10:29:22 +1200 Subject: [PATCH] Remove deprecated function. I noticed this has been deprecated for over a year (& is unused). Removing --- CRM/Member/BAO/MembershipType.php | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/CRM/Member/BAO/MembershipType.php b/CRM/Member/BAO/MembershipType.php index 745294615101..3686b3f106dc 100644 --- a/CRM/Member/BAO/MembershipType.php +++ b/CRM/Member/BAO/MembershipType.php @@ -625,27 +625,6 @@ public static function getRenewalDatesForMembershipType($membershipId, $changeTo 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. *