[Python-checkins] cpython: Remove a redundant hash table probe (this was artifact from an earlier draft of
raymond.hettinger
python-checkins at python.org
Wed Aug 21 08:03:36 CEST 2013
http://hg.python.org/cpython/rev/d7713bfa680a
changeset: 85288:d7713bfa680a
user: Raymond Hettinger <python at rcn.com>
date: Tue Aug 20 23:03:28 2013 -0700
summary:
Remove a redundant hash table probe (this was artifact from an earlier draft of the patch).
files:
Objects/setobject.c | 11 -----------
1 files changed, 0 insertions(+), 11 deletions(-)
diff --git a/Objects/setobject.c b/Objects/setobject.c
--- a/Objects/setobject.c
+++ b/Objects/setobject.c
@@ -215,17 +215,6 @@
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) {
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list