summaryrefslogtreecommitdiff
path: root/src/pathfinder/npf/queue.h
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2010-10-02 19:42:42 +0000
committeralberth <alberth@openttd.org>2010-10-02 19:42:42 +0000
commitf185a352693d3d78ced707ef990ccb44a84203e9 (patch)
treea4ceb4a8970fe907836865f6ba8775c879ba8856 /src/pathfinder/npf/queue.h
parent15b784471e3fc0aa210399668294481fa7ceb99d (diff)
downloadopenttd-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.h8
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 */