diff options
author | alberth <alberth@openttd.org> | 2010-10-02 19:42:42 +0000 |
---|---|---|
committer | alberth <alberth@openttd.org> | 2010-10-02 19:42:42 +0000 |
commit | f185a352693d3d78ced707ef990ccb44a84203e9 (patch) | |
tree | a4ceb4a8970fe907836865f6ba8775c879ba8856 /src/pathfinder/npf/queue.h | |
parent | 15b784471e3fc0aa210399668294481fa7ceb99d (diff) | |
download | openttd-f185a352693d3d78ced707ef990ccb44a84203e9.tar.xz |
(svn r20883) -Codechange: Make Hash_Delete a method.
Diffstat (limited to 'src/pathfinder/npf/queue.h')
-rw-r--r-- | src/pathfinder/npf/queue.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/pathfinder/npf/queue.h b/src/pathfinder/npf/queue.h index 6ee5675c4..efe5301a9 100644 --- a/src/pathfinder/npf/queue.h +++ b/src/pathfinder/npf/queue.h @@ -89,6 +89,8 @@ struct Hash { void *Get(uint key1, uint key2) const; void *Set(uint key1, uint key2, void *value); + void *DeleteValue(uint key1, uint key2); + /** * Gets the current size of the hash. */ @@ -100,12 +102,6 @@ struct Hash { /* Call these function to manipulate a hash */ -/** - * Deletes the value with the specified key pair from the hash and returns - * that value. Returns NULL when the value was not present. The value returned - * is _not_ free()'d! - */ -void *Hash_Delete(Hash *h, uint key1, uint key2); /* Call these function to create/destroy a hash */ |