From 52ff633c4ed10b03f08de6e0e250d3fa93251f16 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sat, 6 Nov 2021 15:34:24 -0700 Subject: [PATCH] remove unused 'Edgecount' --- 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 b6eee68a2..2662af5d2 100644 --- a/cmd/smyrna/smyrnadefs.h +++ b/cmd/smyrna/smyrnadefs.h @@ -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; diff --git a/cmd/smyrna/topviewfuncs.c b/cmd/smyrna/topviewfuncs.c index 2115145fc..f2c176dad 100644 --- a/cmd/smyrna/topviewfuncs.c +++ b/cmd/smyrna/topviewfuncs.c @@ -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; -- 2.40.0