From d23c1fb3dcf4f8718266c68dce9ee5c970abdfd1 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Sat, 8 Jan 2022 10:16:23 +1300 Subject: [PATCH] Remove deprecated code --- CRM/Core/BAO/Address.php | 7 ------- 1 file changed, 7 deletions(-) diff --git a/CRM/Core/BAO/Address.php b/CRM/Core/BAO/Address.php index e2644ab539..09e45a24c0 100644 --- a/CRM/Core/BAO/Address.php +++ b/CRM/Core/BAO/Address.php @@ -962,13 +962,6 @@ SELECT is_primary, $query = 'SELECT id, contact_id FROM civicrm_address WHERE master_id = %1'; $dao = CRM_Core_DAO::executeQuery($query, [1 => [$addressId, 'Integer']]); - // legacy - for api backward compatibility - if (!isset($params['add_relationship']) && isset($params['update_current_employer'])) { - // warning - CRM_Core_Error::deprecatedFunctionWarning('update_current_employer is deprecated, use add_relationship instead'); - $params['add_relationship'] = $params['update_current_employer']; - } - // Default to TRUE if not set to maintain api backward compatibility. $createRelationship = $params['add_relationship'] ?? TRUE; -- 2.25.1