From 929cbac307aceaedbe0fa302aba8c23a9644e207 Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Tue, 20 Aug 2013 23:03:28 -0700 Subject: [PATCH] Remove a redundant hash table probe (this was artifact from an earlier draft of the patch). --- Objects/setobject.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/Objects/setobject.c b/Objects/setobject.c index 3d9deac096f..9074a76125f 100644 --- a/Objects/setobject.c +++ b/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) {