Browse Source

Remove a redundant hash table probe (this was artifact from an earlier draft of the patch).

pull/224/head
Raymond Hettinger 13 years ago
parent
commit
929cbac307
  1. 11
      Objects/setobject.c

11
Objects/setobject.c

@ -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) {

Loading…
Cancel
Save