]> granicus.if.org Git - graphviz/commitdiff
xdot_gradient_fillcolor: remove dead store to 'r1'
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 13 Nov 2021 01:32:47 +0000 (17:32 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Mon, 15 Nov 2021 15:54:17 +0000 (07:54 -0800)
This variable is overwritten on line 648 without having been read in between.
This code appears copy-pasted from `cairo_gradient_fill` without noticing that
this line is unused here.

plugin/core/gvrender_core_dot.c

index 8eb43e2d8afd649c7e2e52ec0163c5f372702300..cc71d140c66d11ef197c986565f6845537ff4c13 100644 (file)
@@ -632,8 +632,7 @@ static void xdot_gradient_fillcolor (GVJ_t* job, int filled, pointf* A, int n)
     }
     else {
        get_gradient_points(A, G, n, 0, 3);
-         //r1 is inner radius, r2 is outer radius
-       r1 = G[1].x;
+         // r2 is outer radius
        r2 = G[1].y;
        if (angle == 0) {
            c1.x = G[0].x;