Remove another now-unused class
authorEileen McNaughton <emcnaughton@wikimedia.org>
Wed, 10 Aug 2022 02:50:29 +0000 (14:50 +1200)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Wed, 10 Aug 2022 02:50:29 +0000 (14:50 +1200)
CRM/Contact/Import/ImportJob.php [deleted file]
CRM/Contact/Import/Parser/Contact.php

diff --git a/CRM/Contact/Import/ImportJob.php b/CRM/Contact/Import/ImportJob.php
deleted file mode 100644 (file)
index a61ec18..0000000
+++ /dev/null
@@ -1,80 +0,0 @@
-<?php
-/*
- +--------------------------------------------------------------------+
- | Copyright CiviCRM LLC. All rights reserved.                        |
- |                                                                    |
- | This work is published under the GNU AGPLv3 license with some      |
- | permitted exceptions and without any warranty. For full license    |
- | and copyright information, see https://civicrm.org/licensing       |
- +--------------------------------------------------------------------+
- */
-
-/**
- *
- * @package CRM
- * @copyright CiviCRM LLC https://civicrm.org/licensing
- */
-
-/**
- * This class acts like a psuedo-BAO for transient import job tables.
- */
-class CRM_Contact_Import_ImportJob {
-
-  protected $_onDuplicate;
-  protected $_dedupe;
-  protected $_newGroupName;
-  protected $_groups;
-  protected $_allGroups;
-  protected $_newTagName;
-  protected $_tag;
-
-  protected $_mapper;
-  protected $_mapperKeys = [];
-  protected $_mapFields;
-
-  /**
-   * @var CRM_Contact_Import_Parser_Contact
-   */
-  protected $_parser;
-
-  protected $_userJobID;
-
-  /**
-   * Has the job completed.
-   *
-   * @return bool
-   */
-  public function isComplete(): bool {
-    return $this->_parser->isComplete();
-  }
-
-  /**
-   * @param array $params
-   */
-  public function setJobParams(&$params) {
-    foreach ($params as $param => $value) {
-      $fldName = "_$param";
-      $this->$fldName = $value;
-    }
-  }
-
-  /**
-   * @param CRM_Core_Form $form
-   * @param int $timeout
-   */
-  public function runImport(&$form, $timeout = 55) {
-    $mapper = $this->_mapper;
-    foreach ($mapper as $key => $value) {
-      $this->_mapperKeys[$key] = $mapper[$key][0] ?? NULL;
-    }
-
-  }
-
-  /**
-   * @param $form
-   */
-  public function setFormVariables($form) {
-    $this->_parser->set($form, CRM_Import_Parser::MODE_IMPORT);
-  }
-
-}
index 3d4dbd616fc578f1596cf9460190e024aa6f972f..f730233c1237a0a41c89f75756cb3fba1d0f5054 100644 (file)
@@ -1125,16 +1125,6 @@ class CRM_Contact_Import_Parser_Contact extends CRM_Import_Parser {
     }
   }
 
-  /**
-   * Store parser values.
-   *
-   * @param CRM_Core_Session $store
-   *
-   * @param int $mode
-   */
-  public function set($store, $mode = self::MODE_SUMMARY) {
-  }
-
   /**
    * Format contact parameters.
    *