summaryrefslogtreecommitdiffstats
path: root/src/mesa/program
diff options
context:
space:
mode:
authorThomas Helland <thomashelland90@gmail.com>2016-08-16 22:10:17 +0200
committerTimothy Arceri <timothy.arceri@collabora.com>2016-09-12 10:48:35 +1000
commitddb8639b18e836b904cda857d787c05ab8b0db7b (patch)
tree970e1391635c9d61cd61e6395809c3159da84442 /src/mesa/program
parentcf4a4820ac36784cea18cd0393f8ae1bdc853c68 (diff)
downloadexternal_mesa3d-ddb8639b18e836b904cda857d787c05ab8b0db7b.zip
external_mesa3d-ddb8639b18e836b904cda857d787c05ab8b0db7b.tar.gz
external_mesa3d-ddb8639b18e836b904cda857d787c05ab8b0db7b.tar.bz2
util: Move hash_table_call_foreach to util hash table
It is included through the util/hash_table include in the program hash_table, so this should be safe. This will be needed when we start converting each use of the program_hash_table, as some places need this function. Signed-off-by: Thomas Helland <thomashelland90@gmail.com> Reviewed-by: Timothy Arceri <timothy.arceri@collabora.com>
Diffstat (limited to 'src/mesa/program')
-rw-r--r--src/mesa/program/hash_table.h14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/mesa/program/hash_table.h b/src/mesa/program/hash_table.h
index 687a996..421d0e9 100644
--- a/src/mesa/program/hash_table.h
+++ b/src/mesa/program/hash_table.h
@@ -214,20 +214,6 @@ hash_table_pointer_compare(const void *key1, const void *key2)
return _mesa_key_pointer_equal(key1, key2);
}
-
-static inline void
-hash_table_call_foreach(struct hash_table *ht,
- void (*callback)(const void *key,
- void *data,
- void *closure),
- void *closure)
-{
- struct hash_entry *entry;
-
- hash_table_foreach(ht, entry)
- callback(entry->key, entry->data, closure);
-}
-
struct string_to_uint_map *
string_to_uint_map_ctor();