diff --git a/CRM/Import/Form/DataSource.php b/CRM/Import/Form/DataSource.php index 17018fd7e439..a91c459fbb67 100644 --- a/CRM/Import/Form/DataSource.php +++ b/CRM/Import/Form/DataSource.php @@ -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. *