Skip to content

Commit

Permalink
Merge pull request #24210 from eileenmcnaughton/goner
Browse files Browse the repository at this point in the history
[Import-code-cleanup] Remove unused function
  • Loading branch information
demeritcowboy authored Aug 11, 2022
2 parents 1c0620d + 5b92b58 commit 5a3e576
Showing 1 changed file with 0 additions and 34 deletions.
34 changes: 0 additions & 34 deletions CRM/Import/Form/DataSource.php
Original file line number Diff line number Diff line change
Expand Up @@ -161,40 +161,6 @@ public function postProcess() {
parent::postProcess();
}

/**
* Common form postProcess.
* @deprecated - just use postProcess.
*
* @param string $parserClassName
* @param string|null $entity
* Entity to set for paraser currently only for custom import
*/
protected function submitFileForMapping($parserClassName, $entity = NULL) {
CRM_Core_Session::singleton()->set('dateTypes', $this->getSubmittedValue('dateFormats'));
$this->processDatasource();

$mapper = [];

$parser = new $parserClassName($mapper);
if ($entity) {
$parser->setEntity($this->get($entity));
}
$parser->setMaxLinesToProcess(100);
$parser->setUserJobID($this->getUserJobID());
$parser->run(
$this->getSubmittedValue('uploadFile'),
$this->getSubmittedValue('fieldSeparator'),
[],
$this->getSubmittedValue('skipColumnHeader'),
CRM_Import_Parser::MODE_MAPFIELD,
$this->getSubmittedValue('contactType')
);

// add all the necessary variables to the form
$parser->set($this);
$this->controller->resetPage('MapField');
}

/**
* Return a descriptive name for the page, used in wizard header.
*
Expand Down

0 comments on commit 5a3e576

Please sign in to comment.