util: Move hash_table_call_foreach to util hash table
[mesa.git] / src / mesa / program / hash_table.h
index 687a9963c6e948fc8c252ab7c0b44a80c0811bd3..421d0e9dc5c7b0f54fd33215657f93ec2713bba4 100644 (file)
@@ -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();