From eac838e9c832591412de027ef485daed367c9727 Mon Sep 17 00:00:00 2001 From: Pradeep Nayak Date: Wed, 22 Jun 2016 01:48:46 +0530 Subject: [PATCH] CRM-16189, removed un-used code ---------------------------------------- * CRM-16189: Improve support for Accrual Method bookkeeping https://issues.civicrm.org/jira/browse/CRM-16189 --- CRM/Financial/BAO/FinancialAccount.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/CRM/Financial/BAO/FinancialAccount.php b/CRM/Financial/BAO/FinancialAccount.php index d30a72903a..7bc08746eb 100644 --- a/CRM/Financial/BAO/FinancialAccount.php +++ b/CRM/Financial/BAO/FinancialAccount.php @@ -254,7 +254,7 @@ WHERE cft.id = %1 * @return array * */ - public static function getfinancialAccountRelations($flip = FALSE, $id = NULL) { + public static function getfinancialAccountRelations($flip = FALSE) { $params = array('labelColumn' => 'name'); $financialAccountType = CRM_Core_PseudoConstant::get('CRM_Financial_DAO_FinancialAccount', 'financial_account_type_id', $params); $accountRelationships = CRM_Core_PseudoConstant::get('CRM_Financial_DAO_EntityFinancialAccount', 'account_relationship', $params); @@ -279,9 +279,6 @@ WHERE cft.id = %1 $financialAccountLinks[array_search($accountType, $financialAccountType)][] = array_search($accountRelation, $accountRelationships); } } - if ($id) { - return CRM_Utils_Array::value($id, $financialAccountLinks); - } return $financialAccountLinks; } -- 2.25.1