Remove meaningless code
authorEileen McNaughton <emcnaughton@wikimedia.org>
Tue, 19 Apr 2022 00:03:30 +0000 (12:03 +1200)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Tue, 19 Apr 2022 00:03:30 +0000 (12:03 +1200)
CRM/Contact/Import/Parser/Contact.php

index cb955236a55999ae503bbe1b15b436929fc81184..b5b03a915b38328d754640310fa199a24ce834a6 100644 (file)
@@ -2613,16 +2613,6 @@ class CRM_Contact_Import_Parser_Contact extends CRM_Import_Parser {
       $this->_activeFieldCount = count($this->_activeFields);
     }
 
-    if ($mode == self::MODE_IMPORT) {
-      //get the key of email field
-      foreach ($mapper as $key => $value) {
-        if (strtolower($value) == 'email') {
-          $emailKey = $key;
-          break;
-        }
-      }
-    }
-
     if ($statusID) {
       $this->progressImport($statusID);
       $startTimestamp = $currTimestamp = $prevTimestamp = time();