diff options
author | alberth <alberth@openttd.org> | 2010-10-02 19:43:29 +0000 |
---|---|---|
committer | alberth <alberth@openttd.org> | 2010-10-02 19:43:29 +0000 |
commit | d86f781ca54faf13bab50b2817cbce82546b0760 (patch) | |
tree | 180cb8f441c515571eb99949bf565c303c18dbf6 /src/pathfinder/npf/queue.h | |
parent | f185a352693d3d78ced707ef990ccb44a84203e9 (diff) | |
download | openttd-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.h | 6 |
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 */ |