From: eileen Date: Tue, 12 Jan 2021 05:20:47 +0000 (+1300) Subject: [REF] Remove function that is the same as parent X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=4a0bd65f0e81c891fed1f034be0488b2e1884797;p=civicrm-core.git [REF] Remove function that is the same as parent --- 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