Changeset: 74001fc35c71 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=74001fc35c71
Modified Files:
        sql/common/sql_hash.c
Branch: default
Log Message:

Merge with Jan2014 branch.


diffs (30 lines):

diff --git a/sql/common/sql_hash.c b/sql/common/sql_hash.c
--- a/sql/common/sql_hash.c
+++ b/sql/common/sql_hash.c
@@ -47,26 +47,11 @@ hash_new(sql_allocator *sa, int size, fk
        return ht;
 }
 
-static
-int
-not_done(sql_hash *h, int key, void *value)
-{
-       sql_hash_e *e = h->buckets[key&(h->size-1)];
-
-       while(e && e->value != value) {
-               e = e->chain;
-       }
-       if (e)
-               return 0;
-       return 1;
-}
-
 sql_hash_e*
 hash_add(sql_hash *h, int key, void *value)
 {
        sql_hash_e *e = SA_ZNEW(h->sa, sql_hash_e);
 
-       assert(not_done(h,key,value));
        e->chain = h->buckets[key&(h->size-1)];
        h->buckets[key&(h->size-1)] = e;
        e->key = key;
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to