Skip to content

Commit

Permalink
refactor: Remove unused method
Browse files Browse the repository at this point in the history
  • Loading branch information
exaby73 authored and transistive committed Aug 9, 2024
1 parent 733f278 commit 0653061
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions src/Bolt/BoltUnmanagedTransaction.php
Original file line number Diff line number Diff line change
Expand Up @@ -176,25 +176,6 @@ public function runStatements(iterable $statements): CypherList
return new CypherList($tbr);
}

/**
* @throws Neo4jException
*/
private function handleMessageException(Neo4jException $e): never
{
$exception = $e->getErrors()[0];
if (!($exception->getClassification() === 'ClientError' && $exception->getCategory() === 'Request')) {
$this->connection->reset();
}
if (!$this->isFinished() && in_array(
$exception->getClassification(),
TransactionHelper::ROLLBACK_CLASSIFICATIONS
)) {
$this->state = TransactionState::ROLLED_BACK;
}

throw $e;
}

public function isRolledBack(): bool
{
return $this->state === TransactionState::ROLLED_BACK || $this->state === TransactionState::TERMINATED;
Expand Down

0 comments on commit 0653061

Please sign in to comment.