From 1cf1af3dcb109959f86951a31b7bcce9750c5910 Mon Sep 17 00:00:00 2001 From: Pradeep Nayak Date: Sat, 8 Apr 2017 02:59:37 +0530 Subject: [PATCH] removed cruft code --- CRM/Contribute/Form/AbstractEditPayment.php | 27 --------------------- 1 file changed, 27 deletions(-) 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(); -- 2.25.1