]> granicus.if.org Git - graphviz/commitdiff
Remove obsolete code within #ifdef OLD in lib/pack
authorMagnus Jacobsson <magnus.jacobsson@berotec.se>
Mon, 31 Aug 2020 21:23:33 +0000 (23:23 +0200)
committerMagnus Jacobsson <magnus.jacobsson@berotec.se>
Fri, 4 Sep 2020 15:13:51 +0000 (17:13 +0200)
Also removes obsolete commented out code related to this.

Was obsolete already in the initial version 16 years ago.

lib/pack/ptest.c

index 99bc9b3c3050e20439bc53df5c8c146a3018f2c5..27478da50310b325e2d58bf38065757a396671fe 100644 (file)
@@ -258,7 +258,6 @@ static void ptest_initGraph(graph_t * g)
 static void dumpG(graph_t * g)
 {
     node_t *n;
-    /* point  p; */
     edge_t *e;
 
     for (n = agfstnode(g); n; n = agnxtnode(g, n)) {
@@ -267,13 +266,6 @@ static void dumpG(graph_t * g)
        for (e = agfstout(g, n); e; e = agnxtout(g, e)) {
            fprintf(stderr, " %s - %s \n", e->tail->name, e->head->name);
        }
-#ifdef OLD
-       p = coord(n);
-       fprintf(stderr, " %s pos (%f,%f) (%d,%d)\n",
-               n->name, ND_pos(n)[0], ND_pos(n)[1], p.x, p.y);
-       fprintf(stderr, "   width %f height %f xsize %d ysize %d\n",
-               ND_width(n), ND_height(n), ND_xsize(n), ND_ysize(n));
-#endif
     }
 }