Remove unused variables
authorEileen McNaughton <emcnaughton@wikimedia.org>
Fri, 27 May 2022 22:01:28 +0000 (10:01 +1200)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Fri, 27 May 2022 22:01:28 +0000 (10:01 +1200)
CRM/Member/Import/Form/MapField.php

index 069ff135ac17ee9d890e4c7170b6c3f255f58602..c164a876305b4e2f85cafb28558fc7bda5e9fb93 100644 (file)
@@ -107,13 +107,9 @@ class CRM_Member_Import_Form_MapField extends CRM_Import_Form_MapField {
     else {
       $savedMapping = $this->get('savedMapping');
 
-      list($mappingName, $mappingContactType, $mappingLocation, $mappingPhoneType, $mappingRelation) = CRM_Core_BAO_Mapping::getMappingFields($savedMapping);
+      list($mappingName) = CRM_Core_BAO_Mapping::getMappingFields($savedMapping);
 
       $mappingName = $mappingName[1];
-      $mappingContactType = $mappingContactType[1];
-      $mappingLocation = $mappingLocation['1'] ?? NULL;
-      $mappingPhoneType = $mappingPhoneType['1'] ?? NULL;
-      $mappingRelation = $mappingRelation['1'] ?? NULL;
 
       //mapping is to be loaded from database