From 73113ecdea3c8d801bc8b47b9e737fcd70484aa1 Mon Sep 17 00:00:00 2001 From: Bradley Taylor Date: Wed, 11 Jan 2023 19:48:10 +0000 Subject: [PATCH] Remove unused method in CRM_Contact_Form_Task_PDFLetterCommon --- CRM/Contact/Form/Task/PDFLetterCommon.php | 24 ----------------------- 1 file changed, 24 deletions(-) diff --git a/CRM/Contact/Form/Task/PDFLetterCommon.php b/CRM/Contact/Form/Task/PDFLetterCommon.php index eb2e058e99..b4df6126da 100644 --- a/CRM/Contact/Form/Task/PDFLetterCommon.php +++ b/CRM/Contact/Form/Task/PDFLetterCommon.php @@ -109,30 +109,6 @@ class CRM_Contact_Form_Task_PDFLetterCommon extends CRM_Core_Form_Task_PDFLetter return [$formValues, $categories, $html_message, $messageToken, $returnProperties]; } - /** - * Convert from a vague-type/file-extension to mime-type. - * - * @param string $type - * @return string - * @throws \CRM_Core_Exception - * - * @deprecated - */ - private static function getMimeType($type) { - $mimeTypes = [ - 'pdf' => 'application/pdf', - 'docx' => 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', - 'odt' => 'application/vnd.oasis.opendocument.text', - 'html' => 'text/html', - ]; - if (isset($mimeTypes[$type])) { - return $mimeTypes[$type]; - } - else { - throw new \CRM_Core_Exception("Cannot determine mime type"); - } - } - /** * Get the categories required for rendering tokens. * -- 2.25.1