Skip to content

Commit

Permalink
Remove comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
zedshaw committed Apr 14, 2012
1 parent 3db495c commit fbc8674
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/lcthw/hashmap.c
Expand Up @@ -10,7 +10,7 @@ static int default_compare(void *a, void *b)
}

/**
* Simple Bob Jenkin's hash algorithm taken from the
* Simple Bob Jenkins's hash algorithm taken from the
* wikipedia description.
*/
static uint32_t default_hash(void *a)
Expand Down Expand Up @@ -62,7 +62,6 @@ void Hashmap_destroy(Hashmap *map)
int i = 0;
int j = 0;

// TODO: pack up this double-for-loop pattern into a macro somehow
if(map) {
if(map->buckets) {
for(i = 0; i < DArray_count(map->buckets); i++) {
Expand Down Expand Up @@ -131,7 +130,6 @@ int Hashmap_set(Hashmap *map, void *key, void *data)
HashmapNode *node = Hashmap_node_create(hash, key, data);
check_mem(node);

// TODO: do sorting on the darray to make finding faster by the hash+key
DArray_push(bucket, node);

return 0;
Expand Down

0 comments on commit fbc8674

Please sign in to comment.