From: eileenmcnaugton Date: Tue, 4 Aug 2015 11:59:29 +0000 (+1200) Subject: remove unused fn (did this X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=416a7c99591f4298d3a0d7a0061fafe8f7818f5e;p=civicrm-core.git remove unused fn (did this 'come back' from a 4.6 merge - I thought it was gone --- diff --git a/CRM/Core/Payment/Form.php b/CRM/Core/Payment/Form.php index a39aa22f1e..92cb83bd2e 100644 --- a/CRM/Core/Payment/Form.php +++ b/CRM/Core/Payment/Form.php @@ -298,26 +298,6 @@ class CRM_Core_Payment_Form { } } - /** - * Billing mode button is basically synonymous with paypal express - this is probably a good example of 'odds & sods' code we - * need to find a way for the payment processor to assign. A tricky aspect is that the payment processor may need to set the order - * - * @param $form - */ - protected static function addPaypalExpressCode(&$form) { - if (empty($form->isBackOffice)) { - if (in_array(CRM_Utils_Array::value('billing_mode', $form->_paymentProcessor), array(2, 3))) { - $form->_expressButtonName = $form->getButtonName('upload', 'express'); - $form->assign('expressButtonName', $form->_expressButtonName); - $form->add('image', - $form->_expressButtonName, - $form->_paymentProcessor['url_button'], - array('class' => 'crm-form-submit') - ); - } - } - } - /** * Validate the payment instrument values before passing it to the payment processor * We want this to be overrideable by the payment processor, and default to using diff --git a/CRM/Core/Payment/PayPalImpl.php b/CRM/Core/Payment/PayPalImpl.php index 7a6f58e038..72e86d23e9 100644 --- a/CRM/Core/Payment/PayPalImpl.php +++ b/CRM/Core/Payment/PayPalImpl.php @@ -124,7 +124,7 @@ class CRM_Core_Payment_PayPalImpl extends CRM_Core_Payment { * Billing mode button is basically synonymous with paypal express - this is probably a good example of 'odds & sods' code we * need to find a way for the payment processor to assign. A tricky aspect is that the payment processor may need to set the order * - * @param $form + * @param CRM_Core_Form $form */ protected function addPaypalExpressCode(&$form) { if (empty($form->isBackOffice)) {