From 85c539f9f52d384d68b04141ed6099f3c760e14e Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Wed, 29 Nov 2023 09:47:25 +1300 Subject: [PATCH] Remove unused functions noisily deprecated in 2021 --- CRM/Contact/Form/Task/PDFLetterCommon.php | 39 ----------------------- 1 file changed, 39 deletions(-) diff --git a/CRM/Contact/Form/Task/PDFLetterCommon.php b/CRM/Contact/Form/Task/PDFLetterCommon.php index 926ce85f86..b4da3de89e 100644 --- a/CRM/Contact/Form/Task/PDFLetterCommon.php +++ b/CRM/Contact/Form/Task/PDFLetterCommon.php @@ -36,45 +36,6 @@ class CRM_Contact_Form_Task_PDFLetterCommon extends CRM_Core_Form_Task_PDFLetter ]; } - /** - * Build all the data structures needed to build the form. - * - * @deprecated - * - * @param CRM_Core_Form $form - */ - public static function preProcess(&$form) { - CRM_Core_Error::deprecatedFunctionWarning('no alternative'); - $defaults = []; - $form->_fromEmails = CRM_Core_BAO_Email::getFromEmail(); - if (is_numeric(key($form->_fromEmails))) { - $emailID = (int) key($form->_fromEmails); - $defaults = CRM_Core_BAO_Email::getEmailSignatureDefaults($emailID); - } - if (!Civi::settings()->get('allow_mail_from_logged_in_contact')) { - $defaults['from_email_address'] = current(CRM_Core_BAO_Domain::getNameAndEmail(FALSE, TRUE)); - } - $form->setDefaults($defaults); - $form->setTitle(ts('Print/Merge Document')); - } - - /** - * @deprecated - * @param CRM_Core_Form $form - * @param int $cid - */ - public static function preProcessSingle(&$form, $cid) { - CRM_Core_Error::deprecatedFunctionWarning('no alternative'); - $form->_contactIds = explode(',', $cid); - // put contact display name in title for single contact mode - if (count($form->_contactIds) === 1) { - $form->setTitle( - ts('Print/Merge Document for %1', - [1 => CRM_Core_DAO::getFieldValue('CRM_Contact_DAO_Contact', $cid, 'display_name')]) - ); - } - } - /** * Get the categories required for rendering tokens. * -- 2.25.1