From: Eileen McNaughton Date: Mon, 3 Nov 2014 23:25:30 +0000 (+1300) Subject: remove now unused function X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=a8d5951baef912c8cfe09cfcfc421241088c2296;p=civicrm-core.git remove now unused function --- diff --git a/CRM/Core/Payment/Form.php b/CRM/Core/Payment/Form.php index f89058f2e5..34cff2171a 100644 --- a/CRM/Core/Payment/Form.php +++ b/CRM/Core/Payment/Form.php @@ -34,22 +34,6 @@ */ class CRM_Core_Payment_Form { - /** - * Add payment fields are depending on payment type - * @deprecated - use the setPaymentFieldsByProcessor which leverages the processor to determine the fields - * - * @param int $type eg CRM_Core_Payment::PAYMENT_TYPE_DIRECT_DEBIT - * @param CRM_Core_Form $form - */ - static public function setPaymentFieldsByType($type, &$form) { - if ($type & CRM_Core_Payment::PAYMENT_TYPE_DIRECT_DEBIT) { - CRM_Core_Payment_Form::setDirectDebitFields($form); - } - else { - CRM_Core_Payment_Form::setCreditCardFields($form); - } - } - /** * Add payment fields are depending on payment processor