removed cruft code
authorPradeep Nayak <pradpnayak@gmail.com>
Fri, 7 Apr 2017 21:29:37 +0000 (02:59 +0530)
committerPradeep Nayak <pradpnayak@gmail.com>
Mon, 17 Apr 2017 22:00:38 +0000 (03:30 +0530)
CRM/Contribute/Form/AbstractEditPayment.php

index fcf663822e2a1ea7cc1e8bbd56136d257aa34e74..51e5ca38e96e577c13a6f06175cfcbdf68c79a53 100644 (file)
@@ -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();