diff options
author | Guido van Rossum <guido@python.org> | 1998-11-16 22:46:30 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1998-11-16 22:46:30 (GMT) |
commit | f05fc716d1a113b3556d1ff0f5389d688e80e5c6 (patch) | |
tree | 646b2161e2b9705be27a7502d0d883b46f3451e8 | |
parent | da30f4ca6b3bd854019d8a4a075f310907480c82 (diff) | |
download | cpython-f05fc716d1a113b3556d1ff0f5389d688e80e5c6.zip cpython-f05fc716d1a113b3556d1ff0f5389d688e80e5c6.tar.gz cpython-f05fc716d1a113b3556d1ff0f5389d688e80e5c6.tar.bz2 |
Remove dead code discovered by Vladimir Marangozov.
-rw-r--r-- | Objects/dictobject.c | 6 |
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 */ } } |