diff options
author | alberth <alberth@openttd.org> | 2010-10-02 19:44:54 +0000 |
---|---|---|
committer | alberth <alberth@openttd.org> | 2010-10-02 19:44:54 +0000 |
commit | 6f85b46eebf674b223df137a67c60b0b74953b97 (patch) | |
tree | 68668d9bbcbd8cdedfca41f516d91ac3dc29804f /src/pathfinder/npf/queue.h | |
parent | d86f781ca54faf13bab50b2817cbce82546b0760 (diff) | |
download | openttd-6f85b46eebf674b223df137a67c60b0b74953b97.tar.xz |
(svn r20885) -Codechange: Make delete_Hash a method.
Diffstat (limited to 'src/pathfinder/npf/queue.h')
-rw-r--r-- | src/pathfinder/npf/queue.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/pathfinder/npf/queue.h b/src/pathfinder/npf/queue.h index f6f04e6bb..6059c54b1 100644 --- a/src/pathfinder/npf/queue.h +++ b/src/pathfinder/npf/queue.h @@ -92,6 +92,7 @@ struct Hash { void *DeleteValue(uint key1, uint key2); void Clear(bool free_values); + void Delete(bool free_values); /** * Gets the current size of the hash. @@ -112,11 +113,5 @@ struct Hash { * returns a hash less than num_buckets! Call delete_hash after use */ void init_Hash(Hash *h, Hash_HashProc *hash, uint num_buckets); -/** - * Deletes the hash and cleans up. Only cleans up memory allocated by new_Hash - * & friends. If free is true, it will call free() on all the values that - * are left in the hash. - */ -void delete_Hash(Hash *h, bool free_values); #endif /* QUEUE_H */ |