diff options
| author | Kirill Petrashin <kirill8201@yandex.ru> | 2026-03-26 23:21:21 +0300 |
|---|---|---|
| committer | Kirill Petrashin <kirill8201@yandex.ru> | 2026-03-26 23:21:21 +0300 |
| commit | a3b039308419953225fe6ac34b07bd07ce78bbc5 (patch) | |
| tree | d7b8361e203f0572da2fe3d774f05a3252012847 /priority_queue.c | |
| parent | b29c8bec16196b2e31a909e28c38cc8137f0760b (diff) | |
| download | astar-a3b039308419953225fe6ac34b07bd07ce78bbc5.tar.xz | |
Remove *prev from PositionPQ
Diffstat (limited to 'priority_queue.c')
| -rw-r--r-- | priority_queue.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/priority_queue.c b/priority_queue.c index c8afec6..e4dca9a 100644 --- a/priority_queue.c +++ b/priority_queue.c @@ -7,7 +7,6 @@ PositionPQ *ppq_new(Position pos, size_t priority) { PositionPQ *ppq = malloc(sizeof(PositionPQ)); ppq->pos = pos; ppq->priority = priority; - ppq->prev = NULL; ppq->next = NULL; return ppq; } @@ -55,7 +54,6 @@ Position ppq_pop(PositionPQ **ppq) { } Position pos = (*ppq)->pos; if ((*ppq)->next != NULL) { /* If there's a next node */ - (*ppq)->next->prev = NULL; PositionPQ *next = (*ppq)->next; free((*ppq)); (*ppq) = next; |
