Remove unused variable from pathfinder