GitLab will be down for maintenance this Sunday 13th June, from approx 7-11am UTC. This is for a PostgreSQL migration. See the tracker issue for more informations.

Commit 4aa626d0 authored by David Zeuthen's avatar David Zeuthen
Browse files

don't check key/values in KitHash; they are not neccesarily pointers

parent cef9da3c
......@@ -193,8 +193,8 @@ kit_hash_unref (KitHash *hash)
*/
kit_bool_t
kit_hash_insert (KitHash *hash,
void *key,
void *value)
void *key,
void *value)
{
int bucket;
KitHashNode **nodep;
......@@ -202,9 +202,6 @@ kit_hash_insert (KitHash *hash,
void *key_copy;
void *value_copy;
kit_return_val_if_fail (hash != NULL, FALSE);
kit_return_val_if_fail (key != NULL, FALSE);
key_copy = NULL;
value_copy = NULL;
if (hash->key_copy_func != NULL) {
......@@ -290,9 +287,6 @@ kit_hash_lookup (KitHash *hash, void *key, kit_bool_t *found)
if (found != NULL)
*found = FALSE;
kit_return_val_if_fail (hash != NULL, NULL);
kit_return_val_if_fail (key != NULL, NULL);
bucket = hash->hash_func (key) % hash->num_top_nodes;
node = hash->top_nodes [bucket];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment