From 436be52353c3dc44dfea4c4cd6162620c7d55153 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Fri, 8 Dec 2023 08:45:15 +1300 Subject: [PATCH] remove unused variable --- CRM/Contact/BAO/Contact/Utils.php | 8 -------- 1 file changed, 8 deletions(-) diff --git a/CRM/Contact/BAO/Contact/Utils.php b/CRM/Contact/BAO/Contact/Utils.php index dfcaaf5415..f4a67da52e 100644 --- a/CRM/Contact/BAO/Contact/Utils.php +++ b/CRM/Contact/BAO/Contact/Utils.php @@ -943,14 +943,6 @@ INNER JOIN civicrm_contact contact_target ON ( contact_target.id = act.contact_i throw new CRM_Core_Exception(ts('Incorrect greeting value id %1, or no default greeting for this contact type and greeting type.', [1 => $valueID])); } - // build return properties based on tokens - $greetingTokens = CRM_Utils_Token::getTokens($greetingString); - $tokens = $greetingTokens['contact'] ?? NULL; - $greetingsReturnProperties = []; - if (is_array($tokens)) { - $greetingsReturnProperties = array_fill_keys(array_values($tokens), 1); - } - // Process ALL contacts only when force=1 or force=2 is passed. Else only contacts with NULL greeting or addressee value are updated. $processAll = $processOnlyIdSet = FALSE; if ($force == 1) { -- 2.25.1