From: Pradeep Nayak Date: Tue, 21 Jun 2016 20:18:46 +0000 (+0530) Subject: CRM-16189, removed un-used code X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=eac838e9c832591412de027ef485daed367c9727;p=civicrm-core.git CRM-16189, removed un-used code ---------------------------------------- * CRM-16189: Improve support for Accrual Method bookkeeping https://issues.civicrm.org/jira/browse/CRM-16189 --- 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; }