From 0b546455dfe04714e10711f7a7b9b937ea4a4000 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Wed, 18 Mar 2020 10:36:02 -0400 Subject: [PATCH] Remove deprecated report functions --- CRM/Report/Form.php | 40 ---------------------------------------- 1 file changed, 40 deletions(-) diff --git a/CRM/Report/Form.php b/CRM/Report/Form.php index aa28549890..8d51b1b1fe 100644 --- a/CRM/Report/Form.php +++ b/CRM/Report/Form.php @@ -4653,46 +4653,6 @@ LEFT JOIN civicrm_contact {$field['alias']} ON {$field['alias']}.id = {$this->_a ($fy['d'] > 1 ? (" - INTERVAL " . ($fy['d'] - 1) . " DAY") : '') . " )"; } - /** - * Add Address into From Table if required. - * - * @deprecated use joinAddressFromContact - * (left here in case extensions use it). - */ - public function addAddressFromClause() { - CRM_Core_Error::deprecatedFunctionWarning('CRM_Report_Form::joinAddressFromContact'); - // include address field if address column is to be included - if ((isset($this->_addressField) && - $this->_addressField - ) || - $this->isTableSelected('civicrm_address') - ) { - $this->_from .= " - LEFT JOIN civicrm_address {$this->_aliases['civicrm_address']} - ON ({$this->_aliases['civicrm_contact']}.id = - {$this->_aliases['civicrm_address']}.contact_id) AND - {$this->_aliases['civicrm_address']}.is_primary = 1\n"; - } - } - - /** - * Add Phone into From Table if required. - * - * @deprecated use joinPhoneFromContact - * (left here in case extensions use it). - */ - public function addPhoneFromClause() { - CRM_Core_Error::deprecatedFunctionWarning('CRM_Report_Form::joinPhoneFromContact'); - // include address field if address column is to be included - if ($this->isTableSelected('civicrm_phone')) { - $this->_from .= " - LEFT JOIN civicrm_phone {$this->_aliases['civicrm_phone']} - ON ({$this->_aliases['civicrm_contact']}.id = - {$this->_aliases['civicrm_phone']}.contact_id) AND - {$this->_aliases['civicrm_phone']}.is_primary = 1\n"; - } - } - /** * Add Address into From Table if required. * -- 2.25.1