From 5b92b580ba05ff431713e649f831f5aaed058e6c Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Wed, 10 Aug 2022 14:40:22 +1200 Subject: [PATCH] Remove unused function --- CRM/Import/Form/DataSource.php | 34 ---------------------------------- 1 file changed, 34 deletions(-) diff --git a/CRM/Import/Form/DataSource.php b/CRM/Import/Form/DataSource.php index ca33c0bceb..9d9e2967e0 100644 --- a/CRM/Import/Form/DataSource.php +++ b/CRM/Import/Form/DataSource.php @@ -151,40 +151,6 @@ abstract class CRM_Import_Form_DataSource extends CRM_Import_Forms { 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. * -- 2.25.1