From 017346f4038671bd6725b857f6daeba821a8306b Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Tue, 11 Oct 2011 15:25:00 -0700 Subject: [PATCH] mesa: Add string_to_uint_map::clear method to clear the map Signed-off-by: Ian Romanick Tested-by: Tom Stellard --- src/mesa/program/hash_table.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/mesa/program/hash_table.h b/src/mesa/program/hash_table.h index 941d28a4ce9..47c37ae40ec 100644 --- a/src/mesa/program/hash_table.h +++ b/src/mesa/program/hash_table.h @@ -213,6 +213,14 @@ public: hash_table_dtor(this->ht); } + /** + * Remove all mappings from this map. + */ + void clear() + { + hash_table_clear(this->ht); + } + /** * Get the value associated with a particular key * -- 2.30.2