CRM-16189, removed un-used code
authorPradeep Nayak <pradpnayak@gmail.com>
Tue, 21 Jun 2016 20:18:46 +0000 (01:48 +0530)
committerPradeep Nayak <pradpnayak@gmail.com>
Tue, 21 Jun 2016 20:18:46 +0000 (01:48 +0530)
----------------------------------------
* CRM-16189: Improve support for Accrual Method bookkeeping
  https://issues.civicrm.org/jira/browse/CRM-16189

CRM/Financial/BAO/FinancialAccount.php

index d30a72903ab4ea672227cdc11a138ecd4840ab45..7bc08746eb4d2c917b2e3a0ea98cb1fc404a0834 100644 (file)
@@ -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;
   }