From: Matthew Fernandez Date: Sun, 18 Sep 2022 16:40:08 +0000 (-0700) Subject: neatogen: remove 'USE_STYLES'-guarded code X-Git-Tag: 6.0.2~32^2~11 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f5948a6907f1cf4e3d59aa6dffcf706e84d9c2af;p=graphviz neatogen: remove 'USE_STYLES'-guarded code Nothing in the build systems defines this. --- diff --git a/lib/neatogen/closest.c b/lib/neatogen/closest.c index 15cc7c09a..ae5791b48 100644 --- a/lib/neatogen/closest.c +++ b/lib/neatogen/closest.c @@ -289,9 +289,6 @@ static void construct_graph(int n, gv_stack_t *edges_stack, for (int i = 0; i < n; i++) { new_graph[i].nedges = 1; new_graph[i].ewgts = weights; -#ifdef USE_STYLES - new_graph[i].styles = NULL; -#endif new_graph[i].edges = edges; *edges = i; /* self loop for Lap */ *weights = 0; /* self loop weight for Lap */ diff --git a/lib/neatogen/delaunay.c b/lib/neatogen/delaunay.c index a117378eb..ddbe4783f 100644 --- a/lib/neatogen/delaunay.c +++ b/lib/neatogen/delaunay.c @@ -911,9 +911,6 @@ void freeGraphData(vtx_data * graph) if (graph != NULL) { free(graph[0].edges); free(graph[0].ewgts); -#ifdef USE_STYLES - free(graph[0].styles); -#endif #ifdef DIGCOLA free(graph[0].edists); #endif diff --git a/lib/neatogen/neatoinit.c b/lib/neatogen/neatoinit.c index 1bb2f95bc..c4206afae 100644 --- a/lib/neatogen/neatoinit.c +++ b/lib/neatogen/neatoinit.c @@ -872,9 +872,6 @@ static vtx_data *makeGraphData(graph_t * g, int nv, int *nedges, int mode, int m graph[i].nedges = i_nedges; graph[i].edges[0] = i; -#ifdef USE_STYLES - graph[i].styles = NULL; -#endif i++; } #ifdef DIGCOLA diff --git a/lib/neatogen/sparsegraph.h b/lib/neatogen/sparsegraph.h index c463337e1..bf87d94f6 100644 --- a/lib/neatogen/sparsegraph.h +++ b/lib/neatogen/sparsegraph.h @@ -16,9 +16,6 @@ extern "C" { #include "config.h" -#ifdef USE_STYLES - typedef enum { regular, invisible } Style; -#endif typedef struct { int nedges; /* no. of neighbors, including self */ int *edges; /* edges[0..(nedges-1)] are neighbors; edges[0] is self */ @@ -30,9 +27,6 @@ extern "C" { int *edges; /* edges[0..(nedges-1)] are neighbors; edges[0] is self */ float *ewgts; /* preferred edge lengths */ float *eweights; /* edge weights */ -#ifdef USE_STYLES - Style *styles; -#endif #ifdef DIGCOLA float *edists; /* directed dist reflecting the direction of the edge */ #endif