From 4535ed239a7497dd77cca197b48afcca44e586e1 Mon Sep 17 00:00:00 2001 From: eileen Date: Thu, 5 Sep 2019 10:07:43 +1200 Subject: [PATCH] Remove a bunch of now-unused variables, will improve performance too as one involved a query --- CRM/Contact/Import/Form/MapField.php | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/CRM/Contact/Import/Form/MapField.php b/CRM/Contact/Import/Form/MapField.php index a95847fdd4..355bea62e8 100644 --- a/CRM/Contact/Import/Form/MapField.php +++ b/CRM/Contact/Import/Form/MapField.php @@ -864,23 +864,6 @@ class CRM_Contact_Import_Form_MapField extends CRM_Import_Form_MapField { if ($mappingName[$i] != ts('- do not import -')) { if ($processor->getRelationshipKey($i)) { - $contactType = $processor->getContactType(); - //CRM-5125 - $contactSubType = NULL; - if ($this->get('contactSubType')) { - $contactSubType = $this->get('contactSubType'); - } - - $relations = CRM_Contact_BAO_Relationship::getContactRelationshipType(NULL, NULL, NULL, $contactType, - FALSE, 'label', TRUE, $contactSubType - ); - - foreach ($relations as $key => $var) { - if ($processor->getValidRelationshipKey($i)) { - $relation = $processor->getValidRelationshipKey($i); - break; - } - } $contactDetails = strtolower(str_replace(" ", "_", $mappingName[$i])); $websiteTypeId = $processor->getWebsiteTypeID($i); -- 2.25.1