From c8431d69457e98c6bd58b3fba25f3a74a1ac4160 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Sun, 4 Jul 2021 15:08:00 +1200 Subject: [PATCH] Remove deprecated function --- CRM/Price/BAO/PriceSet.php | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/CRM/Price/BAO/PriceSet.php b/CRM/Price/BAO/PriceSet.php index 53687d2834..fd6644215c 100644 --- a/CRM/Price/BAO/PriceSet.php +++ b/CRM/Price/BAO/PriceSet.php @@ -886,32 +886,6 @@ WHERE id = %1"; self::addPriceFieldsToForm($form, $feeBlock, $validFieldsOnly, $className, $validPriceFieldIds); } - /** - * Apply ACLs on Financial Type to the price options in a fee block. - * - * @param array $feeBlock - * Fee block: array of price fields. - * - * @deprecated not used in civi universe as at Oct 2020. - * - * @return void - */ - public static function applyACLFinancialTypeStatusToFeeBlock(&$feeBlock) { - CRM_Core_Error::deprecatedFunctionWarning('enacted in financialtypeacl extension'); - if (CRM_Financial_BAO_FinancialType::isACLFinancialTypeStatus()) { - foreach ($feeBlock as $key => $value) { - foreach ($value['options'] as $k => $options) { - if (!CRM_Core_Permission::check('add contributions of type ' . CRM_Contribute_PseudoConstant::financialType($options['financial_type_id']))) { - unset($feeBlock[$key]['options'][$k]); - } - } - if (empty($feeBlock[$key]['options'])) { - unset($feeBlock[$key]); - } - } - } - } - /** * Check the current Membership having end date null. * -- 2.25.1