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

This commit is contained in:
Raymond Hettinger 2013-08-20 23:03:28 -07:00
parent ae9e616a00
commit 929cbac307
1 changed files with 0 additions and 11 deletions

View File

@ -215,17 +215,6 @@ set_lookkey_unicode(PySetObject *so, PyObject *key, Py_hash_t hash)
freeslot = NULL; 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; j = i;
perturb = hash; perturb = hash;
while (1) { while (1) {