From: Eileen McNaughton Date: Thu, 14 Apr 2022 02:11:23 +0000 (+1200) Subject: Remove non-functional code X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=eb4ce8152fd3ef9e53987236475b16815cc3d765;p=civicrm-core.git Remove non-functional code Instantiating the importJob with a table name and no createTable does nothing but set the name so that getTableName() gets it - import_table_name is always set so these lines do nothing --- diff --git a/CRM/Import/DataSource/CSV.php b/CRM/Import/DataSource/CSV.php index 61b1217afe..9e0c830877 100644 --- a/CRM/Import/DataSource/CSV.php +++ b/CRM/Import/DataSource/CSV.php @@ -89,10 +89,7 @@ class CRM_Import_DataSource_CSV extends CRM_Import_DataSource { ); $form->set('originalColHeader', CRM_Utils_Array::value('original_col_header', $result)); - - $table = $result['import_table_name']; - $importJob = new CRM_Contact_Import_ImportJob($table); - $form->set('importTableName', $importJob->getTableName()); + $form->set('importTableName', $result['import_table_name']); } /**