Merge pull request #22652 from civicrm/5.46
[civicrm-core.git] / CRM / Campaign / BAO / Petition.php
index a13450f148500ee745cf158d881830ebb97d1353..5d3d55a5f0a94420cd07fc877251afa7e95eaabc 100644 (file)
@@ -448,27 +448,6 @@ AND         tag_id = ( SELECT id FROM civicrm_tag WHERE name = %2 )";
     return $signature;
   }
 
-  /**
-   * This function returns all entities assigned to a specific tag.
-   *
-   * @param object $tag
-   *   An object of a tag.
-   *
-   * @return array
-   *   array of contact ids
-   */
-  public function getEntitiesByTag($tag) {
-    $contactIds = [];
-    $entityTagDAO = new CRM_Core_DAO_EntityTag();
-    $entityTagDAO->tag_id = $tag['id'];
-    $entityTagDAO->find();
-
-    while ($entityTagDAO->fetch()) {
-      $contactIds[] = $entityTagDAO->entity_id;
-    }
-    return $contactIds;
-  }
-
   /**
    * Check if contact has signed this petition.
    *