From 4a0bd65f0e81c891fed1f034be0488b2e1884797 Mon Sep 17 00:00:00 2001 From: eileen Date: Tue, 12 Jan 2021 18:20:47 +1300 Subject: [PATCH] [REF] Remove function that is the same as parent --- CRM/Activity/Import/Parser.php | 20 -------------------- CRM/Event/Import/Parser.php | 20 -------------------- 2 files changed, 40 deletions(-) diff --git a/CRM/Activity/Import/Parser.php b/CRM/Activity/Import/Parser.php index 9de96fd44d..6a39c4c188 100644 --- a/CRM/Activity/Import/Parser.php +++ b/CRM/Activity/Import/Parser.php @@ -274,26 +274,6 @@ abstract class CRM_Activity_Import_Parser extends CRM_Import_Parser { } } - /** - * 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; - } - /** * @param string $name * @param $title diff --git a/CRM/Event/Import/Parser.php b/CRM/Event/Import/Parser.php index 097aa1313f..aa5282a866 100644 --- a/CRM/Event/Import/Parser.php +++ b/CRM/Event/Import/Parser.php @@ -285,26 +285,6 @@ abstract class CRM_Event_Import_Parser extends CRM_Import_Parser { } } - /** - * 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; - } - /** * @param string $name * @param $title -- 2.25.1