]> granicus.if.org Git - graphviz/commitdiff
remove commented out code in SWIG bindings code
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Thu, 2 Sep 2021 01:13:28 +0000 (18:13 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Tue, 7 Sep 2021 14:11:58 +0000 (07:11 -0700)
tclpkg/gv/gv.cpp
tclpkg/gv/gv.i

index cbbe336710312e1f00774a5f5167c18fb0a1e19a..c220601dca5be7b015c1944ef7674f0f4f8c58ea 100644 (file)
@@ -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.
index cd6539ee5eefacda1b297abee6e564d6432a2671..ea65ada2f2689e6dc4263333f21251760965342a 100644 (file)
@@ -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 */