Skip to content

Commit

Permalink
Remove another good intention from the import class
Browse files Browse the repository at this point in the history
Once upon a time - the import classes were written....

Back then it seemed like a good idea to give the derived classes
a way to abort processing.

Like unicorns and mermaids derived classes turned out to
be mythical creatures - not even found by searching the
git universe....
  • Loading branch information
eileenmcnaughton committed May 2, 2022
1 parent 1062500 commit f613125
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 35 deletions.
6 changes: 0 additions & 6 deletions CRM/Activity/Import/Parser/Activity.php
Original file line number Diff line number Diff line change
Expand Up @@ -594,12 +594,6 @@ public function run(
}
}

// we give the derived class a way of aborting the process
// note that the return code could be multiple code or'ed together
if ($returnCode & self::STOP) {
break;
}

// if we are done processing the maxNumber of lines, break
if ($this->_maxLinesToProcess > 0 && $this->_validCount >= $this->_maxLinesToProcess) {
break;
Expand Down
5 changes: 0 additions & 5 deletions CRM/Contact/Import/Parser/Contact.php
Original file line number Diff line number Diff line change
Expand Up @@ -2714,11 +2714,6 @@ public function run(
array_unshift($values, $this->_rowCount);
$this->_unparsedAddresses[] = $values;
}
// we give the derived class a way of aborting the process
// note that the return code could be multiple code or'ed together
if ($returnCode & self::STOP) {
break;
}

// see if we've hit our timeout yet
/* if ( $the_thing_with_the_stuff ) {
Expand Down
6 changes: 0 additions & 6 deletions CRM/Contribute/Import/Parser/Contribution.php
Original file line number Diff line number Diff line change
Expand Up @@ -340,12 +340,6 @@ public function run(
}
}

// we give the derived class a way of aborting the process
// note that the return code could be multiple code or'ed together
if ($returnCode == self::STOP) {
break;
}

// if we are done processing the maxNumber of lines, break
if ($this->_maxLinesToProcess > 0 && $this->_validCount >= $this->_maxLinesToProcess) {
break;
Expand Down
6 changes: 0 additions & 6 deletions CRM/Custom/Import/Parser/Api.php
Original file line number Diff line number Diff line change
Expand Up @@ -504,12 +504,6 @@ public function run(
}
}

// we give the derived class a way of aborting the process
// note that the return code could be multiple code or'ed together
if ($returnCode & self::STOP) {
break;
}

// if we are done processing the maxNumber of lines, break
if ($this->_maxLinesToProcess > 0 && $this->_validCount >= $this->_maxLinesToProcess) {
break;
Expand Down
6 changes: 0 additions & 6 deletions CRM/Event/Import/Parser/Participant.php
Original file line number Diff line number Diff line change
Expand Up @@ -861,12 +861,6 @@ public function run(
}
}

// we give the derived class a way of aborting the process
// note that the return code could be multiple code or'ed together
if ($returnCode & self::STOP) {
break;
}

// if we are done processing the maxNumber of lines, break
if ($this->_maxLinesToProcess > 0 && $this->_validCount >= $this->_maxLinesToProcess) {
break;
Expand Down
6 changes: 0 additions & 6 deletions CRM/Member/Import/Parser/Membership.php
Original file line number Diff line number Diff line change
Expand Up @@ -231,12 +231,6 @@ public function run(
}
}

// we give the derived class a way of aborting the process
// note that the return code could be multiple code or'ed together
if ($returnCode & self::STOP) {
break;
}

// if we are done processing the maxNumber of lines, break
if ($this->_maxLinesToProcess > 0 && $this->_validCount >= $this->_maxLinesToProcess) {
break;
Expand Down

0 comments on commit f613125

Please sign in to comment.