From: Matthew Fernandez Date: Sat, 5 Jun 2021 02:18:59 +0000 (-0700) Subject: remove commented out code in utils.c X-Git-Tag: 2.47.3~6^2~8 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f4b4417a2afbf26b6d2ee3874e61a6c09f76a0f8;p=graphviz remove commented out code in utils.c --- diff --git a/lib/common/utils.c b/lib/common/utils.c index 0259a9b6f..131a481ce 100644 --- a/lib/common/utils.c +++ b/lib/common/utils.c @@ -269,12 +269,6 @@ Agnodeinfo_t* ND_info(node_t * n) { return ((Agnodeinfo_t*)AGDATA(n));} #if !defined(_WIN32) #include -#if 0 -static void cleanup(void) -{ - agxbfree(&xb); -} -#endif #endif /* Fgets: @@ -547,20 +541,11 @@ pointf spline_at_y(splines * spl, double y) /* this caching seems to prevent p.x from getting set from bz.list[0].x - optimizer problem ? */ -#if 0 - static splines *mem = NULL; - - if (mem != spl) { - mem = spl; -#endif for (i = 0; i < spl->size; i++) { bz = spl->list[i]; if (BETWEEN(bz.list[bz.size - 1].y, y, bz.list[0].y)) break; } -#if 0 - } -#endif if (y > bz.list[0].y) p = bz.list[0]; else if (y < bz.list[bz.size - 1].y) @@ -963,15 +948,12 @@ static node_t *clustNode(node_t * n, graph_t * cg, agxbuf * xb, SET_CLUST_NODE(cn); agsubnode(cg,cn,1); - //aginsert(cg, cn); agsubnode(clg,n,1); - //aginsert(clg, n); /* set attributes */ N_label = setAttr(agraphof(cn), cn, "label", "", N_label); N_style = setAttr(agraphof(cn), cn, "style", "invis", N_style); N_shape = setAttr(agraphof(cn), cn, "shape", "box", N_shape); - /* N_width = setAttr (cn->graph, cn, "width", "0.0001", N_width); */ return cn; } @@ -1968,5 +1950,3 @@ findCluster (Dt_t* map, char* name) else return NULL; } - -/* void dumpG(Agraph_t* g) { agwrite(g, stderr); } */