From 3f64cb34324447601664ea90afcf22dbdb0e9560 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Tue, 7 Jun 2022 00:08:02 +1200 Subject: [PATCH] Remove unused properties --- CRM/Contribute/Import/Form/MapField.php | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/CRM/Contribute/Import/Form/MapField.php b/CRM/Contribute/Import/Form/MapField.php index 15031e561638..60c8cc3e41c7 100644 --- a/CRM/Contribute/Import/Form/MapField.php +++ b/CRM/Contribute/Import/Form/MapField.php @@ -418,29 +418,9 @@ public function postProcess() { for ($i = 0; $i < $this->_columnCount; $i++) { $mapper[$i] = $this->_mapperFields[$mapperKeys[$i][0]]; $mapperKeysMain[$i] = $mapperKeys[$i][0]; - - if (isset($mapperKeys[$i][0]) && $mapperKeys[$i][0] == 'soft_credit') { - $mapperSoftCredit[$i] = $mapperKeys[$i][1]; - if (strpos($mapperSoftCredit[$i], '_') !== FALSE) { - [$first, $second] = explode('_', $mapperSoftCredit[$i]); - $softCreditFields[$i] = ucwords($first . " " . $second); - } - else { - $softCreditFields[$i] = $mapperSoftCredit[$i]; - } - $mapperSoftCreditType[$i] = [ - 'value' => $mapperKeys[$i][2] ?? '', - 'label' => $softCreditTypes[$mapperKeys[$i][2]] ?? '', - ]; - } - else { - $mapperSoftCredit[$i] = $softCreditFields[$i] = $mapperSoftCreditType[$i] = NULL; - } } $this->set('mapper', $mapper); - $this->set('softCreditFields', $softCreditFields); - $this->set('mapperSoftCreditType', $mapperSoftCreditType); // store mapping Id to display it in the preview page $this->set('loadMappingId', CRM_Utils_Array::value('mappingId', $params));