summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-11-16 22:46:30 (GMT)
committerGuido van Rossum <guido@python.org>1998-11-16 22:46:30 (GMT)
commitf05fc716d1a113b3556d1ff0f5389d688e80e5c6 (patch)
tree646b2161e2b9705be27a7502d0d883b46f3451e8 /Objects
parentda30f4ca6b3bd854019d8a4a075f310907480c82 (diff)
downloadcpython-f05fc716d1a113b3556d1ff0f5389d688e80e5c6.zip
cpython-f05fc716d1a113b3556d1ff0f5389d688e80e5c6.tar.gz
cpython-f05fc716d1a113b3556d1ff0f5389d688e80e5c6.tar.bz2
Remove dead code discovered by Vladimir Marangozov.
Diffstat (limited to 'Objects')
-rw-r--r--Objects/dictobject.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/Objects/dictobject.c b/Objects/dictobject.c
index be602b5..044b9e1 100644
--- a/Objects/dictobject.c
+++ b/Objects/dictobject.c
@@ -191,9 +191,6 @@ lookdict(mp, key, hash)
incr = (hash ^ ((unsigned long)hash >> 3)) & mask;
if (!incr)
incr = mask;
- else if (incr > mask) /* Cycle through GF(2^n)-{0} */
- incr ^= mp->ma_poly; /* This will implicitly clear the
- highest bit */
for (;;) {
ep = &ep0[(i+incr)&mask];
if (ep->me_key == NULL) {
@@ -215,7 +212,8 @@ lookdict(mp, key, hash)
/* Cycle through GF(2^n)-{0} */
incr = incr << 1;
if (incr > mask)
- incr ^= mp->ma_poly;
+ incr ^= mp->ma_poly; /* This will implicitely clear
+ the highest bit */
}
}