Remove another good intention....
authorEileen McNaughton <emcnaughton@wikimedia.org>
Mon, 18 Apr 2022 00:08:04 +0000 (12:08 +1200)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Mon, 18 Apr 2022 00:08:04 +0000 (12:08 +1200)
CRM/Activity/Import/Parser/Activity.php
CRM/Contact/Import/Parser/Contact.php
CRM/Contribute/Import/Parser/Contribution.php
CRM/Event/Import/Parser/Participant.php
CRM/Import/Parser.php
CRM/Member/Import/Parser/Membership.php

index 7014f313e1f30a1177c796ccfc7c7b1cb54c4d80..62a8b29d3254569e691348b10cca3debc1373d11 100644 (file)
@@ -124,18 +124,6 @@ class CRM_Activity_Import_Parser_Activity extends CRM_Import_Parser {
     }
   }
 
-  /**
-   * Handle the values in mapField mode.
-   *
-   * @param array $values
-   *   The array of values belonging to this line.
-   *
-   * @return bool
-   */
-  public function mapField(&$values) {
-    return CRM_Import_Parser::VALID;
-  }
-
   /**
    * Handle the values in preview mode.
    *
@@ -551,7 +539,7 @@ class CRM_Activity_Import_Parser_Activity extends CRM_Import_Parser {
       $this->_totalCount++;
 
       if ($mode == self::MODE_MAPFIELD) {
-        $returnCode = $this->mapField($values);
+        $returnCode = CRM_Import_Parser::VALID;
       }
       elseif ($mode == self::MODE_PREVIEW) {
         $returnCode = $this->preview($values);
index 9c0fddb9881041b3d65704fc71126551b5e35d84..cb955236a55999ae503bbe1b15b436929fc81184 100644 (file)
@@ -262,18 +262,6 @@ class CRM_Contact_Import_Parser_Contact extends CRM_Import_Parser {
     $this->_parseStreetAddress = CRM_Utils_Array::value('street_address_parsing', CRM_Core_BAO_Setting::valueOptions(CRM_Core_BAO_Setting::SYSTEM_PREFERENCES_NAME, 'address_options'), FALSE);
   }
 
-  /**
-   * Handle the values in mapField mode.
-   *
-   * @param array $values
-   *   The array of values belonging to this line.
-   *
-   * @return bool
-   */
-  public function mapField(&$values) {
-    return CRM_Import_Parser::VALID;
-  }
-
   /**
    * Handle the values in preview mode.
    *
@@ -2662,7 +2650,7 @@ class CRM_Contact_Import_Parser_Contact extends CRM_Import_Parser {
       $this->_totalCount++;
 
       if ($mode == self::MODE_MAPFIELD) {
-        $returnCode = $this->mapField($values);
+        $returnCode = CRM_Import_Parser::VALID;
       }
       elseif ($mode == self::MODE_PREVIEW) {
         $returnCode = $this->preview($values);
index b7ce5392c6dd923eda8b231bf9b4b37a74b6b4e7..933f9ad2f599f25ca43e2182556ebd8ac3cf9853 100644 (file)
@@ -242,7 +242,7 @@ class CRM_Contribute_Import_Parser_Contribution extends CRM_Import_Parser {
       $this->_totalCount++;
 
       if ($mode == self::MODE_MAPFIELD) {
-        $returnCode = $this->mapField($values);
+        $returnCode = CRM_Import_Parser::VALID;
       }
       elseif ($mode == self::MODE_PREVIEW) {
         $returnCode = $this->preview($values);
@@ -752,18 +752,6 @@ class CRM_Contribute_Import_Parser_Contribution extends CRM_Import_Parser {
     }
   }
 
-  /**
-   * Handle the values in mapField mode.
-   *
-   * @param array $values
-   *   The array of values belonging to this line.
-   *
-   * @return bool
-   */
-  public function mapField(&$values) {
-    return CRM_Import_Parser::VALID;
-  }
-
   /**
    * Handle the values in preview mode.
    *
index 7c555dececdeec9d21aaeea5991ab231092f48a1..9a435bcdc98ca0d64c84f23a7bf1a422c4b394d3 100644 (file)
@@ -132,18 +132,6 @@ class CRM_Event_Import_Parser_Participant extends CRM_Import_Parser {
     }
   }
 
-  /**
-   * Handle the values in mapField mode.
-   *
-   * @param array $values
-   *   The array of values belonging to this line.
-   *
-   * @return bool
-   */
-  public function mapField(&$values) {
-    return CRM_Import_Parser::VALID;
-  }
-
   /**
    * Handle the values in preview mode.
    *
@@ -827,7 +815,7 @@ class CRM_Event_Import_Parser_Participant extends CRM_Import_Parser {
       $this->_totalCount++;
 
       if ($mode == self::MODE_MAPFIELD) {
-        $returnCode = $this->mapField($values);
+        $returnCode = CRM_Import_Parser::VALID;
       }
       elseif ($mode == self::MODE_PREVIEW) {
         $returnCode = $this->preview($values);
index eb05e31038232aa0d9db4793cda1bf9e98d7e3f1..979cbaeab1a7ee1dd75fd7428802b4ee6f8d4d1e 100644 (file)
@@ -222,15 +222,6 @@ abstract class CRM_Import_Parser {
    */
   abstract protected function fini();
 
-  /**
-   * Map field.
-   *
-   * @param array $values
-   *
-   * @return mixed
-   */
-  abstract protected function mapField(&$values);
-
   /**
    * Preview.
    *
index a4e4758fa95ba9cfdb78568004251bd724f812a5..1d514d6cfa92c4b12bc89d12663119eaa6584436 100644 (file)
@@ -180,7 +180,7 @@ class CRM_Member_Import_Parser_Membership extends CRM_Import_Parser {
       $this->_totalCount++;
 
       if ($mode == self::MODE_MAPFIELD) {
-        $returnCode = $this->mapField($values);
+        $returnCode = CRM_Import_Parser::VALID;
       }
       elseif ($mode == self::MODE_PREVIEW) {
         $returnCode = $this->preview($values);
@@ -493,18 +493,6 @@ class CRM_Member_Import_Parser_Membership extends CRM_Import_Parser {
     }
   }
 
-  /**
-   * Handle the values in mapField mode.
-   *
-   * @param array $values
-   *   The array of values belonging to this line.
-   *
-   * @return bool
-   */
-  public function mapField(&$values) {
-    return CRM_Import_Parser::VALID;
-  }
-
   /**
    * Handle the values in preview mode.
    *