Remove 2020-deprecated handline of legacyAddressCreate
authorEileen McNaughton <emcnaughton@wikimedia.org>
Tue, 28 Feb 2023 02:24:31 +0000 (15:24 +1300)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Tue, 28 Feb 2023 02:24:31 +0000 (15:24 +1300)
CRM/Core/BAO/Address.php

index e44f9c90d2fdcdb971dec5783b6bc45c4ca33c29..122d3375ce53a41636fa25f90be66b5c09c307d1 100644 (file)
@@ -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);
   }
 
   /**