remove

fun remove(hashTable: HashTable, key: <Error class: unknown class>? = null): Boolean

Removes a key and its associated value from a #GHashTable.

If the #GHashTable was created using g_hash_table_new_full(), the key and value are freed using the supplied destroy functions, otherwise you have to make sure that any dynamically allocated values are freed yourself.

Return

true if the key was found and removed from the #GHashTable

Parameters

hashTable

a #GHashTable

key

the key to remove