From: Matthew Fernandez Date: Thu, 20 May 2021 00:46:39 +0000 (-0700) Subject: remove useless flag parameter from get_polygons X-Git-Tag: 2.47.3~26^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d589627ec96ab4cf62254282020347473d8831c4;p=graphviz remove useless flag parameter from get_polygons --- diff --git a/cmd/gvmap/make_map.c b/cmd/gvmap/make_map.c index 44e182fff..7057cef3a 100644 --- a/cmd/gvmap/make_map.c +++ b/cmd/gvmap/make_map.c @@ -966,8 +966,7 @@ static void get_polygon_solids(int nt, SparseMatrix E, int ncomps, int *comps_pt } static void get_polygons(int exclude_random, int n, int nrandom, int dim, SparseMatrix graph, int *grouping, int nt, struct Triangle *Tp, SparseMatrix E, int *nverts, real **x_poly, - int *npolys, SparseMatrix *poly_lines, SparseMatrix *polys, int **polys_groups, SparseMatrix *poly_point_map, SparseMatrix *country_graph, - int *flag){ + int *npolys, SparseMatrix *poly_lines, SparseMatrix *polys, int **polys_groups, SparseMatrix *poly_point_map, SparseMatrix *country_graph){ int i, j; int *mask; int *groups; @@ -976,8 +975,6 @@ static void get_polygons(int exclude_random, int n, int nrandom, int dim, Sparse int GRP_RANDOM, GRP_BBOX; SparseMatrix B; - *flag = 0; - assert(dim == 2); *nverts = nt; @@ -1306,7 +1303,7 @@ static int make_map_internal(int exclude_random, int include_OK_points, get_tri(n + *nrandom, dim2, *xcombined, &nt, &Tp, &E); get_polygons(exclude_random, n, *nrandom, dim2, graph, grouping, nt, Tp, E, nverts, x_poly, npolys, poly_lines, polys, polys_groups, - poly_point_map, country_graph, flag); + poly_point_map, country_graph); SparseMatrix_delete(E); FREE(Tp);