From: Pradeep Nayak Date: Fri, 7 Apr 2017 21:29:37 +0000 (+0530) Subject: removed cruft code X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=1cf1af3dcb109959f86951a31b7bcce9750c5910;p=civicrm-core.git removed cruft code --- diff --git a/CRM/Contribute/Form/AbstractEditPayment.php b/CRM/Contribute/Form/AbstractEditPayment.php index fcf663822e..51e5ca38e9 100644 --- a/CRM/Contribute/Form/AbstractEditPayment.php +++ b/CRM/Contribute/Form/AbstractEditPayment.php @@ -392,33 +392,6 @@ WHERE contribution_id = {$id} return $result; } - /** - * @param int $financialTypeId - * - * @return array - */ - public function getFinancialAccounts($financialTypeId) { - $financialAccounts = array(); - CRM_Core_PseudoConstant::populate($financialAccounts, - 'CRM_Financial_DAO_EntityFinancialAccount', - $all = TRUE, - $retrieve = 'financial_account_id', - $filter = NULL, - " entity_id = {$financialTypeId} ", NULL, 'account_relationship'); - return $financialAccounts; - } - - /** - * @param int $financialTypeId - * @param int $relationTypeId - * - * @return mixed - */ - public function getFinancialAccount($financialTypeId, $relationTypeId) { - $financialAccounts = $this->getFinancialAccounts($financialTypeId); - return CRM_Utils_Array::value($relationTypeId, $financialAccounts); - } - public function preProcessPledge() { //get the payment values associated with given pledge payment id OR check for payments due. $this->_pledgeValues = array();