summaryrefslogtreecommitdiff
path: root/src/pathfinder/npf/queue.h
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2010-10-02 19:43:29 +0000
committeralberth <alberth@openttd.org>2010-10-02 19:43:29 +0000
commitd86f781ca54faf13bab50b2817cbce82546b0760 (patch)
tree180cb8f441c515571eb99949bf565c303c18dbf6 /src/pathfinder/npf/queue.h
parentf185a352693d3d78ced707ef990ccb44a84203e9 (diff)
downloadopenttd-d86f781ca54faf13bab50b2817cbce82546b0760.tar.xz
(svn r20884) -Codechange: Make clear_Hash a method.
Diffstat (limited to 'src/pathfinder/npf/queue.h')
-rw-r--r--src/pathfinder/npf/queue.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/pathfinder/npf/queue.h b/src/pathfinder/npf/queue.h
index efe5301a9..f6f04e6bb 100644
--- a/src/pathfinder/npf/queue.h
+++ b/src/pathfinder/npf/queue.h
@@ -91,6 +91,8 @@ struct Hash {
void *DeleteValue(uint key1, uint key2);
+ void Clear(bool free_values);
+
/**
* Gets the current size of the hash.
*/
@@ -116,9 +118,5 @@ void init_Hash(Hash *h, Hash_HashProc *hash, uint num_buckets);
* are left in the hash.
*/
void delete_Hash(Hash *h, bool free_values);
-/**
- * Cleans the hash, but keeps the memory allocated
- */
-void clear_Hash(Hash *h, bool free_values);
#endif /* QUEUE_H */