From: Eileen McNaughton Date: Mon, 27 Feb 2023 23:19:50 +0000 (+1300) Subject: Remove code deprecated in 2018 X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=227117ba3443f95ac24893ec29597c9376905110;p=civicrm-core.git Remove code deprecated in 2018 --- diff --git a/CRM/Member/BAO/MembershipType.php b/CRM/Member/BAO/MembershipType.php index 6d935c9453..4e10b491d5 100644 --- a/CRM/Member/BAO/MembershipType.php +++ b/CRM/Member/BAO/MembershipType.php @@ -61,21 +61,11 @@ class CRM_Member_BAO_MembershipType extends CRM_Member_DAO_MembershipType implem * * @param array $params * Reference array contains the values submitted by the form. - * @param array $ids - * Array contains the id (deprecated). * * @return \CRM_Member_DAO_MembershipType * @throws \CRM_Core_Exception */ - public static function add(&$params, $ids = []) { - // DEPRECATED Check if membershipType ID was passed in via $ids - if (empty($params['id'])) { - if (isset($ids['membershipType'])) { - Civi::log()->warning('Deprecated: Passing membershipType by $ids array in CRM_Member_BAO_MembershipType::add'); - } - $params['id'] = $ids['membershipType'] ?? NULL; - } - + public static function add(&$params) { $hook = empty($params['id']) ? 'create' : 'edit'; CRM_Utils_Hook::pre($hook, 'MembershipType', CRM_Utils_Array::value('id', $params), $params);