]> granicus.if.org Git - graphviz/commitdiff
remove unused 'Edgecount'
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 6 Nov 2021 22:34:24 +0000 (15:34 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 6 Nov 2021 22:34:24 +0000 (15:34 -0700)
cmd/smyrna/smyrnadefs.h
cmd/smyrna/topviewfuncs.c

index b6eee68a21bfb86aa801e69180ce87a48164b4cd..2662af5d2ac2db2d20926b0b672df6036a60ca87 100644 (file)
@@ -284,7 +284,6 @@ typedef struct
 
     typedef struct {
        int Nodecount;
-       int Edgecount;
        struct {
            int active; //1 draw hierarchy 0 draw regular topview
            reposition_t repos;
index 2115145fcba55d718a9d35511964537e9d67b7b4..f2c176dadd22a7ca6178e634278175a95c00ae8f 100644 (file)
@@ -829,7 +829,6 @@ void updateSmGraph(Agraph_t * g,topview* t)
     float totalELength=0;
 
     t->Nodecount=0;
-    t->Edgecount=0;
     t->maxedgelen=0;
     t->minedgelen=-1;
 
@@ -843,7 +842,6 @@ void updateSmGraph(Agraph_t * g,topview* t)
     for (v = agfstnode(g); v; v = agnxtnode(g, v)) {
        for (e = agfstout(g, v); e; e = agnxtout(g, e)) 
        {
-           t->Edgecount++;
            eLength=getEdgeLength(e);
            if((t->minedgelen == -1) || (t->minedgelen > eLength))
                t->minedgelen=eLength;