]> granicus.if.org Git - python/commitdiff
Remove a redundant hash table probe (this was artifact from an earlier draft of the...
authorRaymond Hettinger <python@rcn.com>
Wed, 21 Aug 2013 06:03:28 +0000 (23:03 -0700)
committerRaymond Hettinger <python@rcn.com>
Wed, 21 Aug 2013 06:03:28 +0000 (23:03 -0700)
Objects/setobject.c

index 3d9deac096f172ded9d57144d0751aea5857f7b2..9074a76125f876ec61efb0b2dd9dc784eff16d45 100644 (file)
@@ -215,17 +215,6 @@ set_lookkey_unicode(PySetObject *so, PyObject *key, Py_hash_t hash)
         freeslot = NULL;
     }
 
-    entry = &table[i ^ 1];
-    if (entry->key == NULL)
-        return freeslot == NULL ? entry : freeslot;
-    if (entry->key == key
-        || (entry->hash == hash
-            && entry->key != dummy
-            && unicode_eq(entry->key, key)))
-        return entry;
-    if (entry->key == dummy && freeslot == NULL)
-        freeslot = entry;
-
     j = i;
     perturb = hash;
     while (1) {