diff options
author | alberth <alberth@openttd.org> | 2010-08-29 13:38:06 +0000 |
---|---|---|
committer | alberth <alberth@openttd.org> | 2010-08-29 13:38:06 +0000 |
commit | 3f0cd8c9f0e3b1da2383f09fac1e4a18e782968e (patch) | |
tree | 02e34f909dd537de180917e7a49bb949da8f5720 /src/pathfinder/npf/queue.h | |
parent | 10b182482e20f56c4a73a98f4578b03d0ff2c2b9 (diff) | |
download | openttd-3f0cd8c9f0e3b1da2383f09fac1e4a18e782968e.tar.xz |
(svn r20683) -Codechange: Make BinaryHeap_Delete() a method.
Diffstat (limited to 'src/pathfinder/npf/queue.h')
-rw-r--r-- | src/pathfinder/npf/queue.h | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/pathfinder/npf/queue.h b/src/pathfinder/npf/queue.h index c65897dcf..766ecbf38 100644 --- a/src/pathfinder/npf/queue.h +++ b/src/pathfinder/npf/queue.h @@ -19,7 +19,6 @@ struct Queue; -typedef bool Queue_DeleteProc(Queue *q, void *item, int priority); typedef void Queue_ClearProc(Queue *q, bool free_values); typedef void Queue_FreeProc(Queue *q, bool free_values); @@ -32,12 +31,7 @@ struct BinaryHeapNode { struct Queue { bool Push(void *item, int priority); void *Pop(); - /* - * Deletes the item from the queue. priority should be specified if - * known, which speeds up the deleting for some queue's. Should be -1 - * if not known. - */ - Queue_DeleteProc *del; + bool Delete(void *item, int priority); /* Clears the queue, by removing all values from it. Its state is * effectively reset. If free_items is true, each of the items cleared |