]> granicus.if.org Git - graphviz/commitdiff
Remove dead assignment from makeDotGraph
authorAlex Henrie <alexhenrie24@gmail.com>
Mon, 25 Jan 2021 00:29:35 +0000 (17:29 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 31 Jan 2021 00:39:13 +0000 (16:39 -0800)
cmd/tools/mm2gv.c
lib/sparse/DotIO.c

index 0fa04d6385bb3cd9bfb66e1f9e485c1677ccdc96..abcc4c4246da766e4d11165e9520ad1b8839879b 100644 (file)
@@ -320,7 +320,6 @@ static Agraph_t *makeDotGraph(SparseMatrix A, char *name, int dim,
        }
     }
 
-    i = 0;
     for (n = agfstnode(g); n; n = agnxtnode(g, n)) {
        i = ND_id(n);
        for (j = ia[i]; j < ia[i + 1]; j++) {
index fc59210aad51054576faefec224c31daa4eaadb6..799efbd5fef03722c221dd09133790ebdec0f60d 100644 (file)
@@ -590,7 +590,6 @@ makeDotGraph (SparseMatrix A, char *name, int dim, real *x, int with_color, int
     }
   }
 
-  i = 0;
   for (n = agfstnode (g); n; n = agnxtnode (g, n)) {
     i = ND_id(n);
     for (j = ia[i]; j < ia[i+1]; j++) {