From c968e735e92e64181c9e32c55f6672542c9d36c2 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Thu, 5 May 2022 18:08:07 +1200 Subject: [PATCH] [REF] [Import] Remove always NULL parameter from private function --- CRM/Import/DataSource/CSV.php | 7 ------- 1 file changed, 7 deletions(-) diff --git a/CRM/Import/DataSource/CSV.php b/CRM/Import/DataSource/CSV.php index f4a3f756b9..d8a64f8c0f 100644 --- a/CRM/Import/DataSource/CSV.php +++ b/CRM/Import/DataSource/CSV.php @@ -83,7 +83,6 @@ class CRM_Import_DataSource_CSV extends CRM_Import_DataSource { $result = self::_CsvToTable( $file, $firstRowIsColumnHeader, - NULL, CRM_Utils_Array::value('fieldSeparator', $params, ',') ); @@ -103,8 +102,6 @@ class CRM_Import_DataSource_CSV extends CRM_Import_DataSource { * File name to load. * @param bool $headers * Whether the first row contains headers. - * @param string $tableName - * Name of table from which data imported. * @param string $fieldSeparator * Character that separates the various columns in the file. * @@ -115,7 +112,6 @@ class CRM_Import_DataSource_CSV extends CRM_Import_DataSource { private static function _CsvToTable( $file, $headers = FALSE, - $tableName = NULL, $fieldSeparator = ',' ) { $result = []; @@ -184,9 +180,6 @@ class CRM_Import_DataSource_CSV extends CRM_Import_DataSource { } } - if ($tableName) { - CRM_Core_DAO::executeQuery("DROP TABLE IF EXISTS $tableName"); - } $table = CRM_Utils_SQL_TempTable::build()->setDurable(); $tableName = $table->getName(); CRM_Core_DAO::executeQuery("DROP TABLE IF EXISTS $tableName"); -- 2.25.1