From: Matthew Fernandez Date: Thu, 2 Sep 2021 01:13:28 +0000 (-0700) Subject: remove commented out code in SWIG bindings code X-Git-Tag: 2.49.1~38^2~10 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d82971c7185b49264405094e97fb3c65bc70480d;p=graphviz remove commented out code in SWIG bindings code --- diff --git a/tclpkg/gv/gv.cpp b/tclpkg/gv/gv.cpp index cbbe33671..c220601dc 100644 --- a/tclpkg/gv/gv.cpp +++ b/tclpkg/gv/gv.cpp @@ -436,14 +436,6 @@ char *nameof(Agnode_t *n) return nullptr; return agnameof(n); } -//char *nameof(Agedge_t *e) -//{ -// if (!e) -// return NULL; -// if (AGTYPE(e) == AGRAPH) -// return NULL; -// return agnameof(e); -//} char *nameof(Agsym_t *a) { if (!a) @@ -763,15 +755,6 @@ bool rm(Agraph_t *g) { if (!g) return false; -#if 0 - Agraph_t* sg; - for (sg = agfstsubg (g); sg; sg = agnxtsubg (sg)) - rm(sg); - if (g == agroot(g)) - agclose(g); - else - agdelete(agparent(g), g); -#endif /* The rm function appears to have the semantics of agclose, so * we should just do that, and let cgraph take care of all the * details. diff --git a/tclpkg/gv/gv.i b/tclpkg/gv/gv.i index cd6539ee5..ea65ada2f 100644 --- a/tclpkg/gv/gv.i +++ b/tclpkg/gv/gv.i @@ -112,7 +112,6 @@ extern char *getv(Agedge_t *e, Agsym_t *a); /** Obtain names from handles */ extern char *nameof(Agraph_t *g); extern char *nameof(Agnode_t *n); -//extern char *nameof(Agedge_t *e); extern char *nameof(Agsym_t *a); /** Find handles from names */