summaryrefslogtreecommitdiff
path: root/src/pathfinder/npf/queue.h
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2010-08-29 13:38:27 +0000
committeralberth <alberth@openttd.org>2010-08-29 13:38:27 +0000
commitb06cedc905fbc1c8917f45cadfd78b246e4924f0 (patch)
treef6873a69a568e7a26a3ac5506e1b55fc46d729c9 /src/pathfinder/npf/queue.h
parent3f0cd8c9f0e3b1da2383f09fac1e4a18e782968e (diff)
downloadopenttd-b06cedc905fbc1c8917f45cadfd78b246e4924f0.tar.xz
(svn r20684) -Codechange: Make BinaryHeap_Free() a method.
Diffstat (limited to 'src/pathfinder/npf/queue.h')
-rw-r--r--src/pathfinder/npf/queue.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/pathfinder/npf/queue.h b/src/pathfinder/npf/queue.h
index 766ecbf38..1d6831157 100644
--- a/src/pathfinder/npf/queue.h
+++ b/src/pathfinder/npf/queue.h
@@ -20,7 +20,6 @@
struct Queue;
typedef void Queue_ClearProc(Queue *q, bool free_values);
-typedef void Queue_FreeProc(Queue *q, bool free_values);
struct BinaryHeapNode {
void *item;
@@ -38,11 +37,7 @@ struct Queue {
* in this way are free()'d.
*/
Queue_ClearProc *clear;
- /* Frees the queue, by reclaiming all memory allocated by it. After
- * this it is no longer usable. If free_items is true, any remaining
- * items are free()'d too.
- */
- Queue_FreeProc *free;
+ void Free(bool free_values);
uint max_size;
uint size;