From 0d779355101d8ced4ffe0cc638ba6d90a7acbb8c Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Fri, 29 Jul 2022 18:01:06 -0700 Subject: [PATCH] gvmap make_map_from_rectangle_groups: remove now unused 'flag' parameter --- cmd/gvmap/gvmap.c | 8 +++----- cmd/gvmap/make_map.c | 2 +- cmd/gvmap/make_map.h | 2 +- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/cmd/gvmap/gvmap.c b/cmd/gvmap/gvmap.c index 72811954f..c8a48c284 100644 --- a/cmd/gvmap/gvmap.c +++ b/cmd/gvmap/gvmap.c @@ -363,7 +363,7 @@ makeMap (SparseMatrix graph, int n, double* x, double* width, int* grouping, make_map_from_rectangle_groups(exclude_random, pm->include_OK_points, n, dim, x, width, grouping, graph, pm->bbox_margin, &nrandom, &nart, pm->nedgep, pm->shore_depth_tol, edge_bridge_tol, &xcombined, &nverts, &x_poly, &npolys, &poly_lines, - &polys, &polys_groups, &poly_point_map, &country_graph, pm->highlight_cluster, &flag); + &polys, &polys_groups, &poly_point_map, &country_graph, pm->highlight_cluster); if (Verbose) fprintf(stderr,"nart = %d\n",nart); /* compute a good color permutation */ @@ -389,9 +389,8 @@ makeMap (SparseMatrix graph, int n, double* x, double* width, int* grouping, make_map_from_rectangle_groups(exclude_random, pm->include_OK_points, n, dim, x, width, grouping, graph, pm->bbox_margin, &nrandom, &nart, pm->nedgep, pm->shore_depth_tol, edge_bridge_tol, &xcombined, &nverts, &x_poly, &npolys, &poly_lines, - &polys, &polys_groups, &poly_point_map, &country_graph, pm->highlight_cluster, &flag); + &polys, &polys_groups, &poly_point_map, &country_graph, pm->highlight_cluster); } - assert(!flag); { SparseMatrix D; D = SparseMatrix_get_real_adjacency_matrix_symmetrized(graph); @@ -403,9 +402,8 @@ makeMap (SparseMatrix graph, int n, double* x, double* width, int* grouping, make_map_from_rectangle_groups(exclude_random, pm->include_OK_points, n, dim, x, width, grouping, graph, pm->bbox_margin, &nrandom, &nart, pm->nedgep, pm->shore_depth_tol, edge_bridge_tol, &xcombined, &nverts, &x_poly, &npolys, &poly_lines, - &polys, &polys_groups, &poly_point_map, &country_graph, pm->highlight_cluster, &flag); + &polys, &polys_groups, &poly_point_map, &country_graph, pm->highlight_cluster); } - assert(!flag); } diff --git a/cmd/gvmap/make_map.c b/cmd/gvmap/make_map.c index f3664448a..ea46c3c5f 100644 --- a/cmd/gvmap/make_map.c +++ b/cmd/gvmap/make_map.c @@ -1323,7 +1323,7 @@ int make_map_from_rectangle_groups(int exclude_random, int include_OK_points, double shore_depth_tol, double edge_bridge_tol, double **xcombined, int *nverts, double **x_poly, int *npolys, SparseMatrix *poly_lines, SparseMatrix *polys, int **polys_groups, SparseMatrix *poly_point_map, - SparseMatrix *country_graph, int highlight_cluster, int *flag){ + SparseMatrix *country_graph, int highlight_cluster){ /* create a list of polygons from a list of rectangles in 2D. rectangles belong to groups. rectangles in the same group that are also close geometrically will be in the same polygon describing the outline of the group. The main difference for this function and diff --git a/cmd/gvmap/make_map.h b/cmd/gvmap/make_map.h index ff2900127..c06091997 100644 --- a/cmd/gvmap/make_map.h +++ b/cmd/gvmap/make_map.h @@ -17,7 +17,7 @@ int make_map_from_rectangle_groups(int exclude_random, int include_OK_points, in int *grouping, SparseMatrix graph, double bounding_box_margin[], int *nrandom,int *nart, int nedgep, double shore_depth_tol, double edge_bridge_tol, double **xcombined, int *nverts, double **x_poly, int *npolys, SparseMatrix *poly_lines, SparseMatrix *polys, int **polys_groups, SparseMatrix *poly_point_map, - SparseMatrix *country_graph, int highlight_cluster, int *flag); + SparseMatrix *country_graph, int highlight_cluster); void improve_contiguity(int n, int dim, int *grouping, SparseMatrix poly_point_map, double *x, SparseMatrix graph); -- 2.50.1