From 4649bb4588c7e8e1e7c9d8df0fe6c5abbebbdcdc Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sun, 14 Feb 2021 11:30:59 -0800 Subject: [PATCH] remove commented out alternate write_subgs implementation --- plugin/core/gvrender_core_json.c | 27 --------------------------- 1 file changed, 27 deletions(-) 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; -- 2.40.0