]> granicus.if.org Git - python/commitdiff
Remove dead code discovered by Vladimir Marangozov.
authorGuido van Rossum <guido@python.org>
Mon, 16 Nov 1998 22:46:30 +0000 (22:46 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 16 Nov 1998 22:46:30 +0000 (22:46 +0000)
Objects/dictobject.c

index be602b51ffa9756af72d08599cb3b288ab1d9d5c..044b9e1f4a2566c020f5886705eb5bba2199e20d 100644 (file)
@@ -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 */
        }
 }