From a3b039308419953225fe6ac34b07bd07ce78bbc5 Mon Sep 17 00:00:00 2001 From: Kirill Petrashin Date: Thu, 26 Mar 2026 23:21:21 +0300 Subject: Remove *prev from PositionPQ --- priority_queue.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'priority_queue.c') 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; -- cgit v1.2.3