Remove unused method in CRM_Contact_Form_Task_PDFLetterCommon
authorBradley Taylor <hello@brad-taylor.co.uk>
Wed, 11 Jan 2023 19:48:10 +0000 (19:48 +0000)
committerBradley Taylor <hello@brad-taylor.co.uk>
Wed, 11 Jan 2023 19:48:10 +0000 (19:48 +0000)
CRM/Contact/Form/Task/PDFLetterCommon.php

index eb2e058e99eaa5a8664ff82c14f3550e08541a63..b4df6126da00c3191d726b0592f5aee9a4cc5013 100644 (file)
@@ -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.
    *