From 762f34e7496c071e6761b843e65b1f6b63195330 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton <emcnaughton@wikimedia.org> Date: Sun, 5 Sep 2021 10:14:24 +1200 Subject: [PATCH] Remove unused function --- CRM/Mailing/BAO/Mailing.php | 33 --------------------------------- 1 file changed, 33 deletions(-) diff --git a/CRM/Mailing/BAO/Mailing.php b/CRM/Mailing/BAO/Mailing.php index 2e53e4a388f..155e65e7913 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. * -- GitLab