From: Eileen McNaughton Date: Fri, 3 Nov 2023 02:41:53 +0000 (+1300) Subject: Remove never-used variables X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=f4f254af6c06f3935c821c260b5964001ff5d548;p=civicrm-core.git Remove never-used variables --- diff --git a/CRM/Core/Payment/ProcessorForm.php b/CRM/Core/Payment/ProcessorForm.php index 381090f7aa..9b9f929b7a 100644 --- a/CRM/Core/Payment/ProcessorForm.php +++ b/CRM/Core/Payment/ProcessorForm.php @@ -25,13 +25,11 @@ class CRM_Core_Payment_ProcessorForm { /** * @param CRM_Contribute_Form_Contribution_Main|CRM_Event_Form_Registration_Register|CRM_Financial_Form_Payment $form - * @param null $type - * @param null $mode * * @throws Exception */ - public static function preProcess(&$form, $type = NULL, $mode = NULL) { - $type = $type ?: CRM_Utils_Request::retrieve('type', 'String', $form); + public static function preProcess($form) { + $type = CRM_Utils_Request::retrieve('type', 'String', $form); if ($type) { // @todo not sure when this would be true. Never passed in. $form->_paymentProcessor = CRM_Financial_BAO_PaymentProcessor::getPayment($type, $form->_mode);