From: Matthew Fernandez Date: Sun, 31 Oct 2021 16:36:49 +0000 (-0700) Subject: smyrna: remove unused 'avgedgelength' X-Git-Tag: 2.50.0~48^2~8 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=17c8789fadf84dfc9a75185bd3b0b90452a26f0d;p=graphviz smyrna: remove unused 'avgedgelength' --- diff --git a/cmd/smyrna/smyrnadefs.h b/cmd/smyrna/smyrnadefs.h index 0db78853d..22a462ffd 100644 --- a/cmd/smyrna/smyrnadefs.h +++ b/cmd/smyrna/smyrnadefs.h @@ -371,7 +371,6 @@ typedef struct int maxnodedegree; float maxedgelen; float minedgelen; - float avgedgelength; float fitin_zoom; xdot* xDot; float global_z; diff --git a/cmd/smyrna/topviewfuncs.c b/cmd/smyrna/topviewfuncs.c index 6b7b83c36..0c11d4526 100644 --- a/cmd/smyrna/topviewfuncs.c +++ b/cmd/smyrna/topviewfuncs.c @@ -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;