From f05fc716d1a113b3556d1ff0f5389d688e80e5c6 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Mon, 16 Nov 1998 22:46:30 +0000 Subject: Remove dead code discovered by Vladimir Marangozov. --- Objects/dictobject.c | 6 ++---- 1 file 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 */ } } -- cgit v0.12