From: Eileen McNaughton Date: Tue, 21 Mar 2023 06:24:24 +0000 (+1300) Subject: Remove 2021 noisily deprecated pdfCommon functions X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=20edae1b8ad62c72e5b28688cb264eeb4df40ed5;p=civicrm-core.git Remove 2021 noisily deprecated pdfCommon functions --- diff --git a/CRM/Contact/Form/Task/PDFLetterCommon.php b/CRM/Contact/Form/Task/PDFLetterCommon.php index b4df6126da..926ce85f86 100644 --- a/CRM/Contact/Form/Task/PDFLetterCommon.php +++ b/CRM/Contact/Form/Task/PDFLetterCommon.php @@ -75,40 +75,6 @@ class CRM_Contact_Form_Task_PDFLetterCommon extends CRM_Core_Form_Task_PDFLetter } } - /** - * Part of the post process which prepare and extract information from the template. - * - * - * @param array $formValues - * - * @return array - * [$categories, $html_message, $messageToken, $returnProperties] - * - * @deprecated - */ - public static function processMessageTemplate($formValues) { - CRM_Core_Error::deprecatedFunctionWarning('no alternative'); - - $html_message = self::processTemplate($formValues); - - $categories = self::getTokenCategories(); - - //time being hack to strip ' ' - //from particular letter line, CRM-6798 - self::formatMessage($html_message); - - $messageToken = CRM_Utils_Token::getTokens($html_message); - - $returnProperties = []; - if (isset($messageToken['contact'])) { - foreach ($messageToken['contact'] as $key => $value) { - $returnProperties[$value] = 1; - } - } - - return [$formValues, $categories, $html_message, $messageToken, $returnProperties]; - } - /** * Get the categories required for rendering tokens. *