From 936413c0058fab1156594498d85ab17b0f6c67ba Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Tue, 16 Aug 2022 10:29:04 +1200 Subject: [PATCH] Finish removing refs to unused activeFields --- CRM/Contact/Import/Parser/Contact.php | 1 - CRM/Import/Parser.php | 35 --------------------------- 2 files changed, 36 deletions(-) diff --git a/CRM/Contact/Import/Parser/Contact.php b/CRM/Contact/Import/Parser/Contact.php index f730233c12..f132581060 100644 --- a/CRM/Contact/Import/Parser/Contact.php +++ b/CRM/Contact/Import/Parser/Contact.php @@ -184,7 +184,6 @@ class CRM_Contact_Import_Parser_Contact extends CRM_Import_Parser { 'importID' => $currentImportID, 'importTempTable' => $this->_tableName, 'fieldHeaders' => $this->_mapperKeys, - 'fields' => $this->_activeFields, ]; CRM_Utils_Hook::import('Contact', 'process', $this, $hookParams); } diff --git a/CRM/Import/Parser.php b/CRM/Import/Parser.php index 21de5136ea..bd15c7b8b1 100644 --- a/CRM/Import/Parser.php +++ b/CRM/Import/Parser.php @@ -375,21 +375,6 @@ abstract class CRM_Import_Parser implements UserJobInterface { return ((int) $this->getSubmittedValue('onDuplicate')) === CRM_Import_Parser::DUPLICATE_FILL; } - /** - * Array of the fields that are actually part of the import process - * the position in the array also dictates their position in the import - * file - * @var array - */ - protected $_activeFields = []; - - /** - * Cache the count of active fields - * - * @var int - */ - protected $_activeFieldCount; - /** * Cache of preview rows * @@ -452,26 +437,6 @@ abstract class CRM_Import_Parser implements UserJobInterface { $this->_maxLinesToProcess = 0; } - /** - * Format the field values for input to the api. - * - * @return array - * (reference) associative array of name/value pairs - */ - public function &getActiveFieldParams() { - $params = []; - for ($i = 0; $i < $this->_activeFieldCount; $i++) { - if (isset($this->_activeFields[$i]->_value) - && !isset($params[$this->_activeFields[$i]->_name]) - && !isset($this->_activeFields[$i]->_related) - ) { - - $params[$this->_activeFields[$i]->_name] = $this->_activeFields[$i]->_value; - } - } - return $params; - } - /** * Add progress bar to the import process. Calculates time remaining, status etc. * -- 2.25.1