]> granicus.if.org Git - graphviz/commitdiff
delaunay_triangulation: make static
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 7 Nov 2021 19:05:41 +0000 (11:05 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 10 Nov 2021 02:33:38 +0000 (18:33 -0800)
This function is not used outside of its containing file.

lib/neatogen/delaunay.c
lib/neatogen/delaunay.h

index dc3953a51d0746dae9904b6394942ab6d0ba486f..a09880d1e41c00693d7b76d3be77bda8c6e0a61a 100644 (file)
@@ -254,8 +254,7 @@ static void add_edge (GtsSegment * e, v_data* delaunay)
     delaunay[dest].edges[delaunay[dest].nedges++] = source;
 }
 
-v_data *delaunay_triangulation(double *x, double *y, int n)
-{
+static v_data *delaunay_triangulation(double *x, double *y, int n) {
     v_data *delaunay;
     GtsSurface* s = tri(x, y, n, NULL, 0, 1);
     int i, nedges;
@@ -681,8 +680,7 @@ delaunay_tri (double *x, double *y, int n, int* nedges)
     return out.edgelist;
 }
 
-v_data *delaunay_triangulation(double *x, double *y, int n)
-{
+static v_data *delaunay_triangulation(double *x, double *y, int n) {
     v_data *delaunay;
     int nedges;
     int *edges;
@@ -738,8 +736,7 @@ int* get_triangles (double *x, int n, int* tris)
     agerr(AGERR, "get_triangles: %s\n", err);
     return 0;
 }
-v_data *delaunay_triangulation(double *x, double *y, int n)
-{
+static v_data *delaunay_triangulation(double *x, double *y, int n) {
     agerr(AGERR, "delaunay_triangulation: %s\n", err);
     return 0;
 }
index 54b4e4d1e28178d9a7562c2f91dadf34767c2a2a..309737274ef1dac083cc0b787eeaf3b7f0a2befa 100644 (file)
@@ -20,8 +20,6 @@ typedef struct {
     int* neigh;  /* 3*nfaces indices of neighbor triangles */ 
 } surface_t;
 
-v_data *delaunay_triangulation(double *x, double *y, int n);
-
 int *delaunay_tri (double *x, double *y, int n, int* nedges);
 
 int *get_triangles (double *x, int n, int* ntris);