Remove unused function deprecated a year ago
authorEileen McNaughton <emcnaughton@wikimedia.org>
Sat, 9 Dec 2023 22:53:55 +0000 (11:53 +1300)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Sat, 9 Dec 2023 22:53:55 +0000 (11:53 +1300)
CRM/Contact/BAO/Contact/Utils.php

index f4a67da52e075afbe9735ee5e1717284336c74e8..189b32fb551c4daa2b7ca87617ddfb51a8e8961a 100644 (file)
@@ -1110,35 +1110,6 @@ WHERE id IN (" . implode(',', $contactIds) . ")";
     return $tokens;
   }
 
-  /**
-   * Process a greeting template string to produce the individualised greeting text.
-   *
-   * This works just like message templates for mailings:
-   * the template is processed with the token substitution mechanism,
-   * to supply the individual contact data;
-   * and it is also processed with Smarty,
-   * to allow for conditionals etc. based on the contact data.
-   *
-   * Note: We don't pass any variables to Smarty --
-   * all variable data is inserted into the input string
-   * by the token substitution mechanism,
-   * before Smarty is invoked.
-   *
-   * @param string $templateString
-   *   The greeting template string with contact tokens + Smarty syntax.
-   *
-   * @deprecated
-   *
-   * @param array $contactDetails
-   * @param int $contactID
-   * @param string $className
-   */
-  public static function processGreetingTemplate(&$templateString, $contactDetails, $contactID, $className) {
-    CRM_Core_Error::deprecatedFunctionWarning('no replacement');
-    CRM_Utils_Token::replaceGreetingTokens($templateString, $contactDetails, $contactID, $className, TRUE);
-    $templateString = CRM_Utils_String::parseOneOffStringThroughSmarty($templateString);
-  }
-
   /**
    * Determine if a contact ID is real/valid.
    *