]> granicus.if.org Git - graphviz/commitdiff
gvmap get_polygon_solids: remove commented out code
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Thu, 29 Dec 2022 19:11:15 +0000 (11:11 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Fri, 30 Dec 2022 06:46:14 +0000 (22:46 -0800)
cmd/gvmap/make_map.c

index ac0d1d02e42a7c9cd7de8510236ef1d58ed55614..2981180934e2744fb082e5cb463bf97e4bcc148e 100644 (file)
@@ -638,29 +638,6 @@ static void get_poly_lines(int exclude_random, int nt, SparseMatrix graph, Spars
   free(elist);
 }
 
-static void plot_cycle(int head, int *cycle, int *edge_table, double *x){
-  int cur, next;
-  double x1, x2, y1, y2;
-
-  printf("Graphics[{");
-  cur = head;
-  while ((next = cycle_next(cur)) != head){
-    x1 = x[2*edge_head(cur)];
-    y1 = x[2*edge_head(cur)+1];
-    x2 = x[2*edge_tail(cur)];
-    y2 = x[2*edge_tail(cur)+1];
-    printf("{Black,Arrow[{{%f,%f},{%f,%f}}],Green,Text[%d, {%f,%f}],Text[%d, {%f,%f}]},",x1,y1,x2,y2,edge_head(cur),x1,y1,edge_tail(cur),x2,y2);
-    cur = next;
-  }
-  x1 = x[2*edge_head(cur)];
-  y1 = x[2*edge_head(cur)+1];
-  x2 = x[2*edge_tail(cur)];
-  y2 = x[2*edge_tail(cur)+1];
-  printf("{Black,Arrow[{{%f,%f},{%f,%f}}],Green,Text[%d, {%f,%f}],Text[%d, {%f,%f}]}}]",x1,y1,x2,y2,edge_head(cur),x1,y1,edge_tail(cur),x2,y2);
-
-
-}
-
 static void cycle_print(int head, int *cycle, int *edge_table){
   int cur, next;
 
@@ -907,11 +884,6 @@ static void get_polygon_solids(int nt, SparseMatrix E, int ncomps, int *comps_pt
            next = nn;
          }
        }
-       if (DEBUG_CYCLE && 0) {
-         cycle_print(etail, cycle,edge_table);
-         plot_cycle(etail, cycle,edge_table, x_poly);
-         printf(",");
-       }
 
       }