aboutsummaryrefslogtreecommitdiff
path: root/priority_queue.c
diff options
context:
space:
mode:
authorKirill Petrashin <kirill8201@yandex.ru>2026-03-30 20:09:21 +0300
committerKirill Petrashin <kirill8201@yandex.ru>2026-03-30 20:09:21 +0300
commit49427f83bc3751fdb35f567b17abf9ddbd87bd48 (patch)
tree89d43abb7b6c70600b6856399b545e294ff145cd /priority_queue.c
parent49d85b8583e57fe85c7f486fb483f34c3cd4186c (diff)
downloadastar-49427f83bc3751fdb35f567b17abf9ddbd87bd48.tar.xz
Update TODOs and FIXMEs
Diffstat (limited to 'priority_queue.c')
-rw-r--r--priority_queue.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/priority_queue.c b/priority_queue.c
index c90f661..7e706a8 100644
--- a/priority_queue.c
+++ b/priority_queue.c
@@ -11,9 +11,6 @@ PositionPQ *ppq_new(Position pos, size_t priority) {
return ppq;
}
-/* TODO: we need to handle if a pos is already in ppq, but this time we have it with better priority.
- * I think we need to implement ppq_remove(*ppq, pos), which'll see if pos is in ppq and will remove it.
- * Then we call it where we return PPQ_INSERT_SUCCESS, but before we actually insert the pos. */
int ppq_insert(PositionPQ **ppq, Position pos, size_t priority) {
//printf("Inserting %zu %zu\n", pos.x, pos.y);
PositionPQ *start = *ppq;