From: Matthew Fernandez Date: Wed, 23 Nov 2022 02:53:36 +0000 (-0800) Subject: fdpgen: remove 'SHOW_GRID' guarded code X-Git-Tag: 7.0.3~7^2~19 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5bf25d5f764ada4e0ec10c4cc6ba294e6e5be637;p=graphviz fdpgen: remove 'SHOW_GRID' guarded code As far as I can tell, this code has never been compilable. It relies on `CellW` and `CellH`, neither of which have ever been defined in Graphviz’ history. --- diff --git a/lib/fdpgen/dbg.c b/lib/fdpgen/dbg.c index 3ae15c5e9..d377e5ad4 100644 --- a/lib/fdpgen/dbg.c +++ b/lib/fdpgen/dbg.c @@ -325,20 +325,6 @@ static void pswrite(Agraph_t * g, FILE * fp, int expMode) } fprintf(fp, "0.0 setlinewidth\n"); -#ifdef SHOW_GRID - if (UseGrid) { - int i; - fprintf(fp, "%f %f 5 fillCircle\n", 0.0, 0.0); - for (i = 0; i < maxx; i += CellW) { - fprintf(fp, "%f 0.0 moveto %f %f lineto stroke\n", - (float) i, (float) i, maxy); - } - for (i = 0; i < maxy; i += CellH) { - fprintf(fp, "0.0 %f moveto %f %f lineto stroke\n", - (float) i, maxx, (float) i); - } - } -#endif for (n = agfstnode(g); n; n = agnxtnode(g, n)) { if (IS_PORT(n)) { double r;