From f4f254af6c06f3935c821c260b5964001ff5d548 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Fri, 3 Nov 2023 15:41:53 +1300 Subject: [PATCH] Remove never-used variables --- CRM/Core/Payment/ProcessorForm.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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); -- 2.25.1