From: Eileen McNaughton Date: Sat, 4 Sep 2021 22:14:24 +0000 (+1200) Subject: Remove unused function X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=762f34e7496c071e6761b843e65b1f6b63195330;p=civicrm-core.git Remove unused function --- diff --git a/CRM/Mailing/BAO/Mailing.php b/CRM/Mailing/BAO/Mailing.php index 2e53e4a388..155e65e791 100644 --- a/CRM/Mailing/BAO/Mailing.php +++ b/CRM/Mailing/BAO/Mailing.php @@ -449,39 +449,6 @@ class CRM_Mailing_BAO_Mailing extends CRM_Mailing_DAO_Mailing { return [$location_filter, $orderBy]; } - /** - * @param string $type - * - * @return array - */ - private function _getMailingGroupIds($type = 'Include') { - $mailingGroup = new CRM_Mailing_DAO_MailingGroup(); - $group = CRM_Contact_DAO_Group::getTableName(); - if (!isset($this->id)) { - // we're just testing tokens, so return any group - $query = "SELECT id AS entity_id - FROM $group - ORDER BY id - LIMIT 1"; - } - else { - $mg = CRM_Mailing_DAO_MailingGroup::getTableName(); - $query = "SELECT entity_id - FROM $mg - WHERE mailing_id = {$this->id} - AND group_type = '$type' - AND entity_table = '$group'"; - } - $mailingGroup->query($query); - - $groupIds = []; - while ($mailingGroup->fetch()) { - $groupIds[] = $mailingGroup->entity_id; - } - - return $groupIds; - } - /** * Returns the regex patterns that are used for preparing the text and html templates. *