From 706ccb917246bf07aecc93387bf46a81758dc956 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Fri, 19 Aug 2022 13:11:09 +1200 Subject: [PATCH] Remove no-longer used (protected) function --- CRM/Contact/Tokens.php | 65 ------------------------------------------ 1 file changed, 65 deletions(-) diff --git a/CRM/Contact/Tokens.php b/CRM/Contact/Tokens.php index 731b2f330c..92245684e5 100644 --- a/CRM/Contact/Tokens.php +++ b/CRM/Contact/Tokens.php @@ -486,71 +486,6 @@ class CRM_Contact_Tokens extends CRM_Core_EntityTokens { return $contact; } - /** - * Get the array of the return fields from 'get all'. - * - * This is the list from the BAO_Query object but copied - * here to be 'frozen in time'. The goal is to map to apiv4 - * and stop using the legacy call to load the contact. - * - * @return array - */ - protected function getAllContactReturnFields(): array { - return [ - 'image_URL' => 1, - 'legal_identifier' => 1, - 'external_identifier' => 1, - 'contact_type' => 1, - 'contact_sub_type' => 1, - 'sort_name' => 1, - 'display_name' => 1, - 'preferred_mail_format' => 1, - 'nick_name' => 1, - 'first_name' => 1, - 'middle_name' => 1, - 'last_name' => 1, - 'prefix_id' => 1, - 'suffix_id' => 1, - 'formal_title' => 1, - 'communication_style_id' => 1, - 'birth_date' => 1, - 'gender_id' => 1, - 'street_address' => 1, - 'supplemental_address_1' => 1, - 'supplemental_address_2' => 1, - 'supplemental_address_3' => 1, - 'city' => 1, - 'postal_code' => 1, - 'postal_code_suffix' => 1, - 'state_province' => 1, - 'country' => 1, - 'world_region' => 1, - 'geo_code_1' => 1, - 'geo_code_2' => 1, - 'email' => 1, - 'on_hold' => 1, - 'phone' => 1, - 'im' => 1, - 'household_name' => 1, - 'organization_name' => 1, - 'deceased_date' => 1, - 'is_deceased' => 1, - 'job_title' => 1, - 'legal_name' => 1, - 'sic_code' => 1, - 'current_employer' => 1, - 'do_not_email' => 1, - 'do_not_mail' => 1, - 'do_not_sms' => 1, - 'do_not_phone' => 1, - 'do_not_trade' => 1, - 'is_opt_out' => 1, - 'contact_is_deleted' => 1, - 'preferred_communication_method' => 1, - 'preferred_language' => 1, - ]; - } - /** * These tokens still work but we don't advertise them. * -- 2.25.1