]> granicus.if.org Git - graphviz/commitdiff
smyrna: remove unused 'avgedgelength'
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 31 Oct 2021 16:36:49 +0000 (09:36 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 6 Nov 2021 22:32:25 +0000 (15:32 -0700)
cmd/smyrna/smyrnadefs.h
cmd/smyrna/topviewfuncs.c

index 0db78853dd5dd420f535ab18905db26807fc6abf..22a462ffd8b0f9953df87cc692e0244a528a038c 100644 (file)
@@ -371,7 +371,6 @@ typedef struct
        int maxnodedegree;
        float maxedgelen;
        float minedgelen;
-       float avgedgelength;
        float fitin_zoom;
        xdot* xDot;
        float global_z;
index 6b7b83c36029b902428195194a229e1facabcb01..0c11d452694766732b25624e2477468abcc08dae 100644 (file)
@@ -830,7 +830,6 @@ void updateSmGraph(Agraph_t * g,topview* t)
 
     t->Nodecount=0;
     t->Edgecount=0;
-    t->avgedgelength=0;
     t->maxedgelen=0;
     t->minedgelen=-1;
 
@@ -863,7 +862,6 @@ void updateSmGraph(Agraph_t * g,topview* t)
     aginit(g, AGEDGE, "edgeRec", sizeof(edgeRec), 0);
 
     set_boundaries(g,t);
-    t->avgedgelength = totalELength / t->Edgecount;
     view->Topview=t;