From ed0eee5874387c13e86b39c0fcdca80cc3593843 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Wed, 11 May 2022 13:06:32 +1200 Subject: [PATCH] [REF] [Import] Remove unused field get action --- CRM/Contribute/Import/Parser/Contribution.php | 1 - CRM/Custom/Import/Parser/Api.php | 1 - CRM/Event/Import/Form/MapField.php | 1 - CRM/Event/Import/Parser/Participant.php | 1 - CRM/Member/Import/Form/MapField.php | 1 - CRM/Member/Import/Parser/Membership.php | 1 - 6 files changed, 6 deletions(-) diff --git a/CRM/Contribute/Import/Parser/Contribution.php b/CRM/Contribute/Import/Parser/Contribution.php index adacc4140c..bed232eb46 100644 --- a/CRM/Contribute/Import/Parser/Contribution.php +++ b/CRM/Contribute/Import/Parser/Contribution.php @@ -502,7 +502,6 @@ class CRM_Contribute_Import_Parser_Contribution extends CRM_Import_Parser { $store->set('lineCount', $this->_lineCount); $store->set('separator', $this->_separator); $store->set('fields', $this->getSelectValues()); - $store->set('fieldTypes', $this->getSelectTypes()); $store->set('headerPatterns', $this->getHeaderPatterns()); $store->set('dataPatterns', $this->getDataPatterns()); diff --git a/CRM/Custom/Import/Parser/Api.php b/CRM/Custom/Import/Parser/Api.php index 042c910c02..80485e7111 100644 --- a/CRM/Custom/Import/Parser/Api.php +++ b/CRM/Custom/Import/Parser/Api.php @@ -585,7 +585,6 @@ class CRM_Custom_Import_Parser_Api extends CRM_Import_Parser { $store->set('lineCount', $this->_lineCount); $store->set('separator', $this->_separator); $store->set('fields', $this->getSelectValues()); - $store->set('fieldTypes', $this->getSelectTypes()); $store->set('headerPatterns', $this->getHeaderPatterns()); $store->set('dataPatterns', $this->getDataPatterns()); diff --git a/CRM/Event/Import/Form/MapField.php b/CRM/Event/Import/Form/MapField.php index 239769addc..c4907fd2a6 100644 --- a/CRM/Event/Import/Form/MapField.php +++ b/CRM/Event/Import/Form/MapField.php @@ -133,7 +133,6 @@ class CRM_Event_Import_Form_MapField extends CRM_Import_Form_MapField { $hasHeaders = !empty($this->_columnHeaders); $headerPatterns = $this->get('headerPatterns'); $dataPatterns = $this->get('dataPatterns'); - $hasLocationTypes = $this->get('fieldTypes'); /* Initialize all field usages to false */ foreach ($mapperKeys as $key) { diff --git a/CRM/Event/Import/Parser/Participant.php b/CRM/Event/Import/Parser/Participant.php index adbd4d43f8..261235dda7 100644 --- a/CRM/Event/Import/Parser/Participant.php +++ b/CRM/Event/Import/Parser/Participant.php @@ -949,7 +949,6 @@ class CRM_Event_Import_Parser_Participant extends CRM_Import_Parser { $store->set('lineCount', $this->_lineCount); $store->set('separator', $this->_separator); $store->set('fields', $this->getSelectValues()); - $store->set('fieldTypes', $this->getSelectTypes()); $store->set('headerPatterns', $this->getHeaderPatterns()); $store->set('dataPatterns', $this->getDataPatterns()); diff --git a/CRM/Member/Import/Form/MapField.php b/CRM/Member/Import/Form/MapField.php index 63272188b3..a42622a550 100644 --- a/CRM/Member/Import/Form/MapField.php +++ b/CRM/Member/Import/Form/MapField.php @@ -148,7 +148,6 @@ class CRM_Member_Import_Form_MapField extends CRM_Import_Form_MapField { $hasHeaders = !empty($this->_columnHeaders); $headerPatterns = $this->get('headerPatterns'); $dataPatterns = $this->get('dataPatterns'); - $hasLocationTypes = $this->get('fieldTypes'); /* Initialize all field usages to false */ diff --git a/CRM/Member/Import/Parser/Membership.php b/CRM/Member/Import/Parser/Membership.php index 0e643ceb51..b484a964f8 100644 --- a/CRM/Member/Import/Parser/Membership.php +++ b/CRM/Member/Import/Parser/Membership.php @@ -342,7 +342,6 @@ class CRM_Member_Import_Parser_Membership extends CRM_Import_Parser { $store->set('lineCount', $this->_lineCount); $store->set('separator', $this->_separator); $store->set('fields', $this->getSelectValues()); - $store->set('fieldTypes', $this->getSelectTypes()); $store->set('headerPatterns', $this->getHeaderPatterns()); $store->set('dataPatterns', $this->getDataPatterns()); -- 2.25.1