From: Matthew Fernandez Date: Fri, 14 Jan 2022 02:05:10 +0000 (-0800) Subject: remove no-op 'agdatadict' casts X-Git-Tag: 3.0.0~68^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1820c4b2fcc465179c6c9093cfaa0cce37f64440;p=graphviz remove no-op 'agdatadict' casts --- diff --git a/cmd/tools/gv2gxl.c b/cmd/tools/gv2gxl.c index 69f59e27a..bb8720bc5 100644 --- a/cmd/tools/gv2gxl.c +++ b/cmd/tools/gv2gxl.c @@ -433,7 +433,7 @@ writeDict(Agraph_t * g, FILE * gxlFile, char *name, Dict_t * dict, static void writeDicts(Agraph_t * g, FILE * gxlFile) { Agdatadict_t *def; - if ((def = (Agdatadict_t *) agdatadict(g, FALSE))) { + if ((def = agdatadict(g, FALSE))) { writeDict(g, gxlFile, "graph", def->dict.g, 1); writeDict(g, gxlFile, "node", def->dict.n, 0); writeDict(g, gxlFile, "edge", def->dict.e, 0); @@ -768,10 +768,9 @@ static void writeBody(gxlstate_t * stp, Agraph_t * g, FILE * gxlFile) Agnode_t *n; Agnode_t *realn; Agedge_t *e; - Agdatadict_t *dd; writeSubgs(stp, g, gxlFile); - dd = (Agdatadict_t *) agdatadict(g, FALSE); + Agdatadict_t *dd = agdatadict(g, FALSE); for (n = agfstnode(g); n; n = agnxtnode(g, n)) { realn = agidnode(stp->root, AGID(n), 0); if (!writeval(realn)) {