From a475644a3672caca36623ea7713a3cb308fa735f Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Fri, 2 Sep 2022 11:32:14 +1200 Subject: [PATCH] Imcrease the deprecation on some unused functions --- CRM/Import/Parser.php | 35 +++++++---------------------------- 1 file changed, 7 insertions(+), 28 deletions(-) diff --git a/CRM/Import/Parser.php b/CRM/Import/Parser.php index 14e3661a1d..8730a789fe 100644 --- a/CRM/Import/Parser.php +++ b/CRM/Import/Parser.php @@ -231,13 +231,6 @@ abstract class CRM_Import_Parser implements UserJobInterface { */ protected $_invalidRowCount; - /** - * Maximum number of non-empty/comment lines to process - * - * @var int - */ - protected $_maxLinesToProcess; - /** * Array of error lines, bounded by MAX_ERROR * @var array @@ -428,20 +421,6 @@ abstract class CRM_Import_Parser implements UserJobInterface { */ protected $_rows; - /** - * Filename of error data - * - * @var string - */ - protected $_errorFileName; - - /** - * Filename of duplicate data - * - * @var string - */ - protected $_duplicateFileName; - /** * Contact type * @@ -476,13 +455,6 @@ abstract class CRM_Import_Parser implements UserJobInterface { return $this; } - /** - * Class constructor. - */ - public function __construct() { - $this->_maxLinesToProcess = 0; - } - /** * Add progress bar to the import process. Calculates time remaining, status etc. * @@ -497,9 +469,12 @@ abstract class CRM_Import_Parser implements UserJobInterface { * @param $totalRowCount * Total number of rows in the import file. * + * @deprecated + * * @return NULL|$currTimestamp */ public function progressImport($statusID, $startImport = TRUE, $startTimestamp = NULL, $prevTimestamp = NULL, $totalRowCount = NULL) { + CRM_Core_Error::deprecatedFunctionWarning('no replacement'); $statusFile = CRM_Core_Config::singleton()->uploadDir . "status_{$statusID}.txt"; if ($startImport) { @@ -576,6 +551,7 @@ abstract class CRM_Import_Parser implements UserJobInterface { * @return void */ public static function encloseScrub(&$values, $enclosure = "'") { + CRM_Core_Error::deprecatedFunctionWarning('no replacement'); if (empty($values)) { return; } @@ -595,6 +571,7 @@ abstract class CRM_Import_Parser implements UserJobInterface { * @return void */ public function setMaxLinesToProcess($max) { + CRM_Core_Error::deprecatedFunctionWarning('no replacement'); $this->_maxLinesToProcess = $max; } @@ -746,6 +723,7 @@ abstract class CRM_Import_Parser implements UserJobInterface { * @return string */ public static function errorFileName($type) { + CRM_Core_Error::deprecatedFunctionWarning('no replacement'); $fileName = NULL; if (empty($type)) { return $fileName; @@ -1279,6 +1257,7 @@ abstract class CRM_Import_Parser implements UserJobInterface { * @return mixed */ protected function parsePseudoConstantField($submittedValue, $fieldSpec) { + CRM_Core_Error::deprecatedFunctionWarning('no replacement'); // dev/core#1289 Somehow we have wound up here but the BAO has not been specified in the fieldspec so we need to check this but future us problem, for now lets just return the submittedValue if (!isset($fieldSpec['bao'])) { return $submittedValue; -- 2.25.1