]> granicus.if.org Git - graphviz/commitdiff
distvec: make a static function
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Mon, 20 Dec 2021 16:06:55 +0000 (08:06 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Mon, 27 Dec 2021 20:05:42 +0000 (12:05 -0800)
This function is not used outside of stuff.c.

lib/neatogen/neatoprocs.h
lib/neatogen/stuff.c

index 84aca5c1f17f75f798482cbe6eda372d3899c702..c0922191138b2c93be715367b93b708b9a546c57 100644 (file)
@@ -32,7 +32,6 @@ extern "C" {
     NEATOPROCS_API int checkStart(graph_t * G, int nG, int);
     NEATOPROCS_API int circuit_model(graph_t *, int);
     NEATOPROCS_API void diffeq_model(graph_t *, int);
-    NEATOPROCS_API double distvec(double *, double *, double *);
     NEATOPROCS_API void final_energy(graph_t *, int);
     NEATOPROCS_API double fpow32(double);
     NEATOPROCS_API Ppolyline_t getPath(edge_t *, vconfig_t *, int, Ppoly_t **,
index 010748b9b3bef184fa44151cf9217e8f562e6fe8..88558ce3242541c093d128005ad356a4b0698cd2 100644 (file)
@@ -27,7 +27,7 @@ double fpow32(double x)
     return x * x * x;
 }
 
-double distvec(double *p0, double *p1, double *vec)
+static double distvec(double *p0, double *p1, double *vec)
 {
     int k;
     double dist = 0.0;