From: Eileen McNaughton Date: Mon, 4 Sep 2023 22:55:41 +0000 (+1200) Subject: Remove some unused undefined properties from participant export X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=159707093386259d67e69e0efb8454e3553fb3a8;p=civicrm-core.git Remove some unused undefined properties from participant export --- diff --git a/CRM/Event/Import/Parser/Participant.php b/CRM/Event/Import/Parser/Participant.php index 27456bb4db..d780e858bf 100644 --- a/CRM/Event/Import/Parser/Participant.php +++ b/CRM/Event/Import/Parser/Participant.php @@ -21,14 +21,6 @@ class CRM_Event_Import_Parser_Participant extends CRM_Import_Parser { protected $_mapperKeys; - /** - * Array of successfully imported participants id's - * - * @var array - */ - protected $_newParticipants; - - protected $_fileName; /** @@ -147,8 +139,6 @@ class CRM_Event_Import_Parser_Participant extends CRM_Import_Parser { ]; CRM_Price_BAO_LineItem::syncLineItems($newParticipant->id, 'civicrm_participant', $newParticipant->fee_amount, $otherParams); } - - $this->_newParticipant[] = $newParticipant->id; $this->setImportStatus($rowNumber, 'IMPORTED', '', $newParticipant->id); return; } @@ -225,10 +215,6 @@ class CRM_Event_Import_Parser_Participant extends CRM_Import_Parser { throw new CRM_Core_Exception(ts('Unknown error')); } } - - if (!(is_array($newParticipant) && civicrm_error($newParticipant))) { - $this->_newParticipants[] = $newParticipant['id'] ?? NULL; - } } catch (CRM_Core_Exception $e) { $this->setImportStatus($rowNumber, 'ERROR', $e->getMessage()); @@ -237,15 +223,6 @@ class CRM_Event_Import_Parser_Participant extends CRM_Import_Parser { $this->setImportStatus($rowNumber, 'IMPORTED', '', $newParticipant['id']); } - /** - * Get the array of successfully imported Participation ids. - * - * @return array - */ - public function &getImportedParticipations() { - return $this->_newParticipants; - } - /** * Format values *