From f24e6f46819d4bb0d331d19b5ecdd2ecf7ac5c90 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sat, 19 Oct 2019 14:11:31 +0200 Subject: [PATCH] remove debugging lines --- Algorithm/PathFinding/JumpPointSearch.php | 8 -------- 1 file changed, 8 deletions(-) diff --git a/Algorithm/PathFinding/JumpPointSearch.php b/Algorithm/PathFinding/JumpPointSearch.php index a73fb9849..7ad67b889 100644 --- a/Algorithm/PathFinding/JumpPointSearch.php +++ b/Algorithm/PathFinding/JumpPointSearch.php @@ -92,10 +92,6 @@ class JumpPointSearch implements PathFinderInterface */ public static function identifySuccessors(JumpPointNode $node, Grid $grid, int $heuristic, int $movement, JumpPointNode $endNode, Heap $openList) : Heap { - if ($node->getY() === 5) { - $a = 1; - } - $neighbors = self::findNeighbors($node, $movement, $grid); $neighborsLength = \count($neighbors); @@ -106,10 +102,6 @@ class JumpPointSearch implements PathFinderInterface continue; } - if ($neighbor->getX() === 2) { - $a = 1; - } - $jumpPoint = self::jump($neighbor, $node, $endNode, $movement, $grid); if ($jumpPoint === null || $jumpPoint->isClosed()) {