]> granicus.if.org Git - graphviz/commitdiff
neatogen: remove 'USE_STYLES'-guarded code
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 18 Sep 2022 16:40:08 +0000 (09:40 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 21 Sep 2022 01:11:01 +0000 (18:11 -0700)
Nothing in the build systems defines this.

lib/neatogen/closest.c
lib/neatogen/delaunay.c
lib/neatogen/neatoinit.c
lib/neatogen/sparsegraph.h

index 15cc7c09a93f0334988ffcb3bd8d2f450d5e6365..ae5791b481880e50c6c0bdcb5c377f687362dcc9 100644 (file)
@@ -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 */
index a117378eb5594916978fc1123a8fab066e15f3d2..ddbe4783fbb03a87981e09291751c0e276f34955 100644 (file)
@@ -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
index 1bb2f95bc92035aad4496055a9a2dc1c99415c4b..c4206afaefccbc9493cf4b6460ee0f64f211eb60 100644 (file)
@@ -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
index c463337e1be8386693d99f782b648520aa2813e3..bf87d94f680c49f336d675569576d460b54d6c6d 100644 (file)
@@ -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