From 066e5b0f304d022c718c68aad73f71d378c4849f Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Tue, 28 Feb 2023 15:24:31 +1300 Subject: [PATCH] Remove 2020-deprecated handline of legacyAddressCreate --- CRM/Core/BAO/Address.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/CRM/Core/BAO/Address.php b/CRM/Core/BAO/Address.php index e44f9c90d2..122d3375ce 100644 --- a/CRM/Core/BAO/Address.php +++ b/CRM/Core/BAO/Address.php @@ -33,12 +33,8 @@ class CRM_Core_BAO_Address extends CRM_Core_DAO_Address { * @return array|NULL|self * array of created address */ - public static function create(&$params, $fixAddress = TRUE) { - if (!isset($params['address']) || !is_array($params['address'])) { - return self::add($params, $fixAddress); - } - CRM_Core_Error::deprecatedFunctionWarning('Use legacyCreate if not doing a single crud action'); - return self::legacyCreate($params, $fixAddress); + public static function create(array &$params, $fixAddress = TRUE) { + return self::add($params, $fixAddress); } /** -- 2.25.1