summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/hash.c
diff options
context:
space:
mode:
authorJuha-Pekka Heikkila <juhapekka.heikkila@gmail.com>2015-03-20 15:13:14 +0200
committerJuha-Pekka Heikkila <juhapekka.heikkila@gmail.com>2015-06-11 13:17:11 +0300
commitfd00c738c08e54c9dfdc195e59f780f30d2f9e07 (patch)
treebd2cd9cc17c36528f010d37d1361315363c0947f /src/mesa/main/hash.c
parentbd38f91f8d80897ca91979962d80d4bc0acef586 (diff)
downloadexternal_mesa3d-fd00c738c08e54c9dfdc195e59f780f30d2f9e07.zip
external_mesa3d-fd00c738c08e54c9dfdc195e59f780f30d2f9e07.tar.gz
external_mesa3d-fd00c738c08e54c9dfdc195e59f780f30d2f9e07.tar.bz2
mesa/main: Remove _mesa_HashClone()
I didn't find this being used anywhere. Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com> Reviewed-by: Timothy Arceri <t_arceri@yahoo.com.au> Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
Diffstat (limited to 'src/mesa/main/hash.c')
-rw-r--r--src/mesa/main/hash.c28
1 files changed, 0 insertions, 28 deletions
diff --git a/src/mesa/main/hash.c b/src/mesa/main/hash.c
index d04cccd..315b5d6 100644
--- a/src/mesa/main/hash.c
+++ b/src/mesa/main/hash.c
@@ -389,34 +389,6 @@ _mesa_HashDeleteAll(struct _mesa_HashTable *table,
/**
- * Clone all entries in a hash table, into a new table.
- *
- * \param table the hash table to clone
- */
-struct _mesa_HashTable *
-_mesa_HashClone(const struct _mesa_HashTable *table)
-{
- /* cast-away const */
- struct _mesa_HashTable *table2 = (struct _mesa_HashTable *) table;
- struct hash_entry *entry;
- struct _mesa_HashTable *clonetable;
-
- assert(table);
- mtx_lock(&table2->Mutex);
-
- clonetable = _mesa_NewHashTable();
- assert(clonetable);
- hash_table_foreach(table->ht, entry) {
- _mesa_HashInsert(clonetable, (GLint)(uintptr_t)entry->key, entry->data);
- }
-
- mtx_unlock(&table2->Mutex);
-
- return clonetable;
-}
-
-
-/**
* Walk over all entries in a hash table, calling callback function for each.
* Note: we use a separate mutex in this function to avoid a recursive
* locking deadlock (in case the callback calls _mesa_HashRemove()) and to