Remove unused getting & setting (copy & paste)
authorEileen McNaughton <emcnaughton@wikimedia.org>
Wed, 1 Jun 2022 23:57:38 +0000 (11:57 +1200)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Thu, 2 Jun 2022 06:55:00 +0000 (18:55 +1200)
CRM/Activity/Import/Form/Summary.php
CRM/Contact/Import/ImportJob.php
CRM/Contribute/Import/Form/Summary.php
CRM/Event/Import/Form/Summary.php
CRM/Member/Import/Form/Summary.php

index c0be01bd52429188b704150bb60b0a04ed449571..1fd39b2f8abe41bfbbabdce2eacc802de713bb20 100644 (file)
@@ -28,8 +28,6 @@ class CRM_Activity_Import_Form_Summary extends CRM_Import_Form_Summary {
     $this->assign('errorFile', $this->get('errorFile'));
 
     $totalRowCount = $this->get('totalRowCount');
-    $relatedCount = $this->get('relatedCount');
-    $totalRowCount += $relatedCount;
     $this->set('totalRowCount', $totalRowCount);
 
     $invalidRowCount = $this->get('invalidRowCount');
index 33599f16f6a252e60c4510682ed32c411f3630e5..035f6abe4d452e574883977d0644f17acf6ff5e6 100644 (file)
@@ -88,9 +88,6 @@ class CRM_Contact_Import_ImportJob {
     $relatedContactIds = $this->_parser->getRelatedImportedContacts();
     if ($relatedContactIds) {
       $contactIds = array_merge($contactIds, $relatedContactIds);
-      if ($form) {
-        $form->set('relatedCount', count($relatedContactIds));
-      }
     }
 
     if ($this->_newGroupName || count($this->_groups)) {
index 968c3ba49b54cabaa5c78698a2e9d3f25aab003e..9bf6214f8042118e0397fed00a330c1aaf04fc74 100644 (file)
@@ -28,8 +28,6 @@ class CRM_Contribute_Import_Form_Summary extends CRM_Import_Form_Summary {
     $this->assign('errorFile', $this->get('errorFile'));
 
     $totalRowCount = $this->get('totalRowCount');
-    $relatedCount = $this->get('relatedCount');
-    $totalRowCount += $relatedCount;
     $this->set('totalRowCount', $totalRowCount);
 
     $invalidRowCount = $this->get('invalidRowCount');
index 6bb1aec88806a0fd5d442d2696840787db516ff2..3d26c21fbeac8f892af11c417e3f57764a8107db 100644 (file)
@@ -30,8 +30,6 @@ class CRM_Event_Import_Form_Summary extends CRM_Import_Form_Summary {
     $this->assign('errorFile', $this->get('errorFile'));
 
     $totalRowCount = $this->get('totalRowCount');
-    $relatedCount = $this->get('relatedCount');
-    $totalRowCount += $relatedCount;
     $this->set('totalRowCount', $totalRowCount);
 
     $invalidRowCount = $this->get('invalidRowCount');
index 87640197e0a5911d82ce9aa28cd77749ace7efad..829b05c5fa6c0c47817940cf62170f38c348be63 100644 (file)
@@ -30,8 +30,6 @@ class CRM_Member_Import_Form_Summary extends CRM_Import_Form_Summary {
     $this->assign('errorFile', $this->get('errorFile'));
 
     $totalRowCount = $this->get('totalRowCount');
-    $relatedCount = $this->get('relatedCount');
-    $totalRowCount += $relatedCount;
     $this->set('totalRowCount', $totalRowCount);
 
     $invalidRowCount = $this->get('invalidRowCount');