]> granicus.if.org Git - graphviz/commitdiff
remove some commented out code in lib/fdpgen
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Fri, 18 Jun 2021 00:45:56 +0000 (17:45 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 19 Jun 2021 20:28:10 +0000 (13:28 -0700)
lib/fdpgen/dbg.c
lib/fdpgen/fdpinit.c
lib/fdpgen/xlayout.c

index 3b2d786fa7fcccfb35aad4a6972e6e470b213024..232d6735e434057732cd3f91fe10355d18e3e5ca 100644 (file)
@@ -188,17 +188,11 @@ void dumpG(graph_t * g, char *fname, int expMode)
     fclose(fp);
 }
 
-/* #define BOX */
-
-/* static char* pos_name      = "pos"; */
-/* static char* lp_name       = "lp"; */
-
 double Scale = 0.0;
 double ArrowScale = 1.0;
 
 #define         ARROW_LENGTH    10
 #define         ARROW_WIDTH      5
-/* #define DEGREES(rad)   ((rad)/M_PI * 180.0) */
 
 static char *plog = "%!PS-Adobe-2.0\n\n\
 /Times-Roman findfont 14 scalefont setfont\n\
index f0a45169c3825a927bd56ac5528924d2c4beb324..d6bb84584552e115dc9028a051d5397b161e5f16 100644 (file)
@@ -84,7 +84,6 @@ void fdp_init_node_edge(graph_t * g)
     edge_t *e;
     int nn;
     int i;
-    /* ndata* alg; */
 
     aginit(g, AGNODE, "Agnodeinfo_t", sizeof(Agnodeinfo_t), TRUE);
     processClusterEdges(g);
@@ -93,12 +92,10 @@ void fdp_init_node_edge(graph_t * g)
      * add new nodes.
      */
     nn = agnnodes(g);
-    /* alg = N_NEW(nn, ndata); */
     GD_neato_nlist(g) = N_NEW(nn + 1, node_t *);
 
     for (i = 0, n = agfstnode(g); n; n = agnxtnode(g, n)) {
        init_node (n);
-       /* ND_alg(n) = alg + i; */
        GD_neato_nlist(g)[i] = n;
        ND_id(n) = i++;
     }
@@ -110,7 +107,6 @@ void fdp_init_node_edge(graph_t * g)
        }
     }
     initialPositions(g);
-
 }
 
 static void cleanup_subgs(graph_t * g)
index adb301f7c3b6c238c05e3cd832f320f6865df09e..900e0090891c4bdaba70097eaff66aa7f4e1825d 100644 (file)
@@ -256,11 +256,9 @@ doRep(node_t * p, node_t * q, double xdelta, double ydelta, double dist2)
 {
     int ov;
     double force;
-    /* double dout, din; */
 #if defined(DEBUG) || defined(MS) || defined(ALT)
     double dist;
 #endif
-    /* double factor; */
 
     while (dist2 == 0.0) {
        xdelta = 5 - rand() % 10;
@@ -406,8 +404,6 @@ static int adjust(Agraph_t * g, double temp)
        int ov;
        for (n1 = agnxtnode(g, n); n1; n1 = agnxtnode(g, n1)) {
            ov = applyRep(n, n1);
-/* if (V && ov)  */
-           /* fprintf (stderr,"%s ov %s\n", n->name, n1->name); */
            overlaps += ov;
        }
        for (e = agfstout(g, n); e; e = agnxtout(g, e)) {