]> granicus.if.org Git - graphviz/commitdiff
remove commented out alternate write_subgs implementation
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 14 Feb 2021 19:30:59 +0000 (11:30 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 21 Feb 2021 00:24:25 +0000 (16:24 -0800)
plugin/core/gvrender_core_json.c

index 48780bc303189a19a32324d7933108ee4c0f3bc7..89145d3dc4e55fe7ea6067d4df6f009ddc6e3a8f 100644 (file)
@@ -399,33 +399,6 @@ static void write_subg(Agraph_t * g, GVJ_t * job, state_t* sp)
     }
 }
 
-/*
-static int write_subgs(Agraph_t * g, GVJ_t * job, int top, state_t* sp)
-{
-    Agraph_t* sg;
-    int not_first = 0;
-
-    sg = agfstsubg(g);
-    if (!sg) return 0;
-   
-    gvputs(job, ",\n");
-    indent(job, sp->Level++);
-    gvputs(job, "\"subgraphs\": [\n");
-    for (; sg; sg = agnxtsubg(sg)) {
-       if (not_first) 
-           gvputs(job, ",\n");
-       else
-           not_first = 1;
-       write_subg (sg, job, top, sp);
-    }
-    sp->Level--;
-    gvputs(job, "\n");
-    indent(job, sp->Level);
-    gvputs(job, "]");
-    return 1;
-}
-*/
-
 static int write_subgs(Agraph_t * g, GVJ_t * job, int top, state_t* sp)
 {
     Agraph_t* sg;