]> granicus.if.org Git - graphviz/commitdiff
eliminate unused malloc'ed point array
authorellson <devnull@localhost>
Wed, 1 Aug 2007 17:27:49 +0000 (17:27 +0000)
committerellson <devnull@localhost>
Wed, 1 Aug 2007 17:27:49 +0000 (17:27 +0000)
lib/common/shapes.c

index e83d5cc5874ff0d04181ef41cd758afed6bef017..eecbbfedde68d29aadb53bc0d89c2afc64bc5d72 100644 (file)
@@ -1189,7 +1189,6 @@ static void poly_gencode(GVJ_t * job, node_t * n)
     double xsize, ysize;
     int i, j, peripheries, sides, style;
     pointf P, *vertices;
-    static point *A;
     static pointf *AF;
     static int A_size;
     boolean filled;
@@ -1205,7 +1204,6 @@ static void poly_gencode(GVJ_t * job, node_t * n)
     peripheries = poly->peripheries;
     if (A_size < sides) {
        A_size = sides + 5;
-       A = ALLOC(A_size, A, point);
        AF = ALLOC(A_size, AF, pointf);
     }