Skip to content
Snippets Groups Projects
Unverified Commit 7fb7d6b5 authored by Eileen McNaughton's avatar Eileen McNaughton Committed by GitHub
Browse files

Merge pull request #21371 from eileenmcnaughton/depre

Remove unused private function
parents 50991431 762f34e7
No related branches found
No related tags found
No related merge requests found
......@@ -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.
*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment