Remove unused function
authorColeman Watts <coleman@civicrm.org>
Thu, 6 Jan 2022 17:04:02 +0000 (12:04 -0500)
committerColeman Watts <coleman@civicrm.org>
Thu, 6 Jan 2022 17:04:02 +0000 (12:04 -0500)
CRM/Core/BAO/UFField.php

index b52c3b19c5853e3d40178f0516216758b1846a70..6ed78baedfa82999b3b6718bd5400713e1e42feb 100644 (file)
@@ -674,41 +674,6 @@ WHERE cf.id IN (" . $customFieldIds . ") AND is_multiple = 1 LIMIT 0,1";
     }
   }
 
-  /**
-   * Check for mix profiles groups (eg: individual + other contact types)
-   *
-   * @param $ctype
-   *
-   * @return bool
-   *   true for mix profile group else false
-   */
-  public static function checkProfileGroupType($ctype) {
-    $ufGroup = new CRM_Core_DAO_UFGroup();
-
-    $query = "
-SELECT ufg.id as id
-  FROM civicrm_uf_group as ufg, civicrm_uf_join as ufj
- WHERE ufg.id = ufj.uf_group_id
-   AND ufj.module = 'User Registration'
-   AND ufg.is_active = 1 ";
-
-    $ufGroup = CRM_Core_DAO::executeQuery($query);
-
-    $fields = [];
-    $validProfiles = ['Individual', 'Organization', 'Household', 'Contribution'];
-    while ($ufGroup->fetch()) {
-      $profileType = self::getProfileType($ufGroup->id);
-      if (in_array($profileType, $validProfiles)) {
-        continue;
-      }
-      elseif ($profileType) {
-        return FALSE;
-      }
-    }
-
-    return TRUE;
-  }
-
   /**
    * Check for searchable or in selector field for given profile.
    *