Skip to content

Commit

Permalink
Merge pull request #19369 from eileenmcnaughton/cleanup
Browse files Browse the repository at this point in the history
[REF] Remove function that is the same as parent
  • Loading branch information
colemanw authored Jan 12, 2021
2 parents 7426cf4 + 4a0bd65 commit cb0025c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 40 deletions.
20 changes: 0 additions & 20 deletions CRM/Activity/Import/Parser.php
Original file line number Diff line number Diff line change
Expand Up @@ -274,26 +274,6 @@ public function setActiveFields($fieldKeys) {
}
}

/**
* 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
Expand Down
20 changes: 0 additions & 20 deletions CRM/Event/Import/Parser.php
Original file line number Diff line number Diff line change
Expand Up @@ -285,26 +285,6 @@ public function setActiveFields($fieldKeys) {
}
}

/**
* 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
Expand Down

0 comments on commit cb0025c

Please sign in to comment.