From 83966bf9111f2b7a5f33ec7716eca0c412d027dd Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Thu, 9 Mar 2023 13:23:19 +1300 Subject: [PATCH] Remove function deprecated noisly in 2020 --- CRM/Core/Form/Date.php | 42 ------------------------------------------ 1 file changed, 42 deletions(-) diff --git a/CRM/Core/Form/Date.php b/CRM/Core/Form/Date.php index db4ac7019c..847f2e4f8e 100644 --- a/CRM/Core/Form/Date.php +++ b/CRM/Core/Form/Date.php @@ -49,48 +49,6 @@ class CRM_Core_Form_Date { $form->setDefaults(['dateFormats' => self::DATE_yyyy_mm_dd]); } - /** - * Retrieve the date range - relative or absolute and assign it to the form. - * - * @deprecated - * - * @param CRM_Core_Form $form - * The form the dates should be added to. - * @param string $fieldName - * @param int $count - * @param string $from - * @param string $to - * @param string $fromLabel - * @param bool $required - * @param array $operators - * Additional value pairs to add. - * @param string $dateFormat - * @param bool|string $displayTime - * @param array $attributes - */ - public static function buildDateRange( - &$form, $fieldName, $count = 1, - $from = '_from', $to = '_to', $fromLabel = 'From:', - $required = FALSE, $operators = [], - $dateFormat = 'searchDate', $displayTime = FALSE, - $attributes = ['class' => 'crm-select2'] - ) { - CRM_Core_Error::deprecatedFunctionWarning('function will be removed'); - $selector - = CRM_Core_Form_Date::returnDateRangeSelector( - $form, $fieldName, $count, - $from, $to, $fromLabel, - $required, $operators, - $dateFormat, $displayTime - ); - CRM_Core_Form_Date::addDateRangeToForm( - $form, $fieldName, $selector, - $from, $to, $fromLabel, - $required, $dateFormat, $displayTime, - $attributes - ); - } - /** * Build the date range array that will provide the form option values. * -- 2.25.1