From: Matthew Fernandez Date: Sun, 14 Feb 2021 19:30:59 +0000 (-0800) Subject: remove commented out alternate write_subgs implementation X-Git-Tag: 2.47.0~46^2~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4649bb4588c7e8e1e7c9d8df0fe6c5abbebbdcdc;p=graphviz remove commented out alternate write_subgs implementation --- diff --git a/plugin/core/gvrender_core_json.c b/plugin/core/gvrender_core_json.c index 48780bc30..89145d3dc 100644 --- a/plugin/core/gvrender_core_json.c +++ b/plugin/core/gvrender_core_json.c @@ -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;