From: Eileen McNaughton Date: Mon, 15 Aug 2022 22:25:28 +0000 (+1200) Subject: Remove setActiveField X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=dc06328e38452cc6ddecef093bcaa373666265db;p=civicrm-core.git Remove setActiveField --- diff --git a/CRM/Event/Import/Parser/Participant.php b/CRM/Event/Import/Parser/Participant.php index b043879668..de8b919289 100644 --- a/CRM/Event/Import/Parser/Participant.php +++ b/CRM/Event/Import/Parser/Participant.php @@ -536,26 +536,6 @@ class CRM_Event_Import_Parser_Participant extends CRM_Import_Parser { return TRUE; } - /** - * Given a list of the importable field keys that the user has selected - * set the active fields array to this list - * - * @param array $fieldKeys mapped array of values - * - * @return void - */ - public function setActiveFields($fieldKeys) { - $this->_activeFieldCount = count($fieldKeys); - foreach ($fieldKeys as $key) { - if (empty($this->_fields[$key])) { - $this->_activeFields[] = new CRM_Event_Import_Field('', ts('- do not import -')); - } - else { - $this->_activeFields[] = clone($this->_fields[$key]); - } - } - } - /** * @param string $name * @param $title