Remove deprecated code
authorEileen McNaughton <emcnaughton@wikimedia.org>
Fri, 7 Jan 2022 21:16:23 +0000 (10:16 +1300)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Fri, 7 Jan 2022 21:16:23 +0000 (10:16 +1300)
CRM/Core/BAO/Address.php

index e2644ab53905ff5879c27884943e001e6f1e100d..09e45a24c0ec6065174ab23a3ef7c5fc404d1926 100644 (file)
@@ -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;