]> granicus.if.org Git - graphviz/commitdiff
makeSpline: remove unused 'g' parameter
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 31 Oct 2021 03:19:24 +0000 (20:19 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Fri, 5 Nov 2021 23:59:54 +0000 (16:59 -0700)
lib/fdpgen/clusteredges.c
lib/neatogen/neatoprocs.h
lib/neatogen/neatosplines.c

index 8b4a3f433d957bec6f98b8757822b47e0ce0be3c..77a6b413169f7cd3c6cc799d7b593e7ac1243c1e 100644 (file)
@@ -300,7 +300,7 @@ int compoundEdges(graph_t * g, expand_t* pm, int edgetype)
                for (e0 = e; e0; e0 = ED_to_virt(e0)) {
                    ED_path(e0) =
                        getPath(e0, vconfig, 0, objl->obs, objl->cnt);
-                   makeSpline(g, e0, objl->obs, objl->cnt, FALSE);
+                   makeSpline(e0, objl->obs, objl->cnt, FALSE);
                }
                resetObjlist(objl);
            }
index ae55542f4d9ebf427742f0c563ee2be5606ba4ac..8eec1516e15e0402ef62b3c858850f27f864cd19 100644 (file)
@@ -34,7 +34,7 @@ extern "C" {
     extern void jitter_d(Agnode_t *, int, int);
     extern Ppoly_t *makeObstacle(node_t * n, expand_t*, boolean );
     extern void makeSelfArcs(edge_t * e, int stepx);
-    extern void makeSpline(graph_t*, edge_t *, Ppoly_t **, int, boolean);
+    extern void makeSpline(edge_t *, Ppoly_t **, int, boolean);
     extern void make_spring(graph_t *, Agnode_t *, Agnode_t *, double);
     extern void move_node(graph_t *, int, Agnode_t *);
     extern int init_nop(graph_t * g, int);
index 000019e3966d4ac2cdb2a9b9e3133bde7b394c74..a5f1571eebdb3368accdb2bba85d067350f8b5dd 100644 (file)
@@ -495,7 +495,7 @@ static void makePolyline(edge_t * e) {
  * is on or inside one of the obstacles and, if so, tells the shortest path
  * computation to ignore them. 
  */
-void makeSpline(graph_t* g, edge_t * e, Ppoly_t ** obs, int npoly, boolean chkPts)
+void makeSpline(edge_t * e, Ppoly_t ** obs, int npoly, boolean chkPts)
 {
     Ppolyline_t line, spline;
     Pvector_t slopes[2];
@@ -652,7 +652,7 @@ static int _spline_edges(graph_t * g, expand_t* pmargin, int edgetype)
                e0 = e;
                for (i = 0; i < cnt; i++) {
                    if (edgetype == EDGETYPE_SPLINE)
-                       makeSpline(g, e0, obs, npoly, TRUE);
+                       makeSpline(e0, obs, npoly, TRUE);
                    else
                        makePolyline(e0);
                    e0 = ED_to_virt(e0);