From: Kenneth Graunke Date: Fri, 28 Feb 2014 21:40:12 +0000 (-0800) Subject: mesa: Drop unused hash_table::mem_ctx field. X-Git-Tag: upstream/10.3~3242 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=378c6f2246d66254ce0f88cac6daf25b1c012a41;p=platform%2Fupstream%2Fmesa.git mesa: Drop unused hash_table::mem_ctx field. It's never used, and it's equivalent to ralloc_parent(ht) if you really need it. Signed-off-by: Kenneth Graunke Reviewed-by: Eric Anholt --- diff --git a/src/mesa/main/hash_table.c b/src/mesa/main/hash_table.c index 008b4cd..ad8f898 100644 --- a/src/mesa/main/hash_table.c +++ b/src/mesa/main/hash_table.c @@ -119,7 +119,6 @@ _mesa_hash_table_create(void *mem_ctx, if (ht == NULL) return NULL; - ht->mem_ctx = mem_ctx; ht->size_index = 0; ht->size = hash_sizes[ht->size_index].size; ht->rehash = hash_sizes[ht->size_index].rehash; diff --git a/src/mesa/main/hash_table.h b/src/mesa/main/hash_table.h index ad1dae4..f51131a 100644 --- a/src/mesa/main/hash_table.h +++ b/src/mesa/main/hash_table.h @@ -44,7 +44,6 @@ struct hash_entry { }; struct hash_table { - void *mem_ctx; struct hash_entry *table; bool (*key_equals_function)(const void *a, const void *b); const void *deleted_key; diff --git a/src/mesa/main/set.c b/src/mesa/main/set.c index dc3550c..989e5de 100644 --- a/src/mesa/main/set.c +++ b/src/mesa/main/set.c @@ -112,7 +112,6 @@ _mesa_set_create(void *mem_ctx, if (ht == NULL) return NULL; - ht->mem_ctx = mem_ctx; ht->size_index = 0; ht->size = hash_sizes[ht->size_index].size; ht->rehash = hash_sizes[ht->size_index].rehash;