]> granicus.if.org Git - graphviz/commitdiff
poly_init: remove useless assignment of P
authorMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Sat, 26 Mar 2022 18:54:54 +0000 (19:54 +0100)
committerMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Sun, 17 Apr 2022 08:46:21 +0000 (10:46 +0200)
P is not read after this before assigning it a new value.

lib/common/shapes.c

index b28810f979fe8ac0f34eef4670a75d5eac814c44..8670d1987fafe7cb8ace6a5e3f065dc0cee7c16c 100644 (file)
@@ -2182,7 +2182,6 @@ static void poly_init(node_t * n)
            for (i = 0; i < sides; i++) {
 
                /*for each vertex find the bisector */
-               P = Q;
                Q = R;
                R = vertices[(i + 1) % sides];
                alpha = beta;