From 17c8789fadf84dfc9a75185bd3b0b90452a26f0d Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sun, 31 Oct 2021 09:36:49 -0700 Subject: [PATCH] smyrna: remove unused 'avgedgelength' --- cmd/smyrna/smyrnadefs.h | 1 - cmd/smyrna/topviewfuncs.c | 2 -- 2 files changed, 3 deletions(-) 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; -- 2.40.0