]> granicus.if.org Git - graphviz/commitdiff
Remove unused articulation_pos attribute
authorMark Hansen <markhansen@google.com>
Tue, 27 Sep 2022 08:07:30 +0000 (18:07 +1000)
committerMark Hansen <markhansen@google.com>
Wed, 28 Sep 2022 07:53:46 +0000 (17:53 +1000)
This is never read, and seems to never have been, even going back to the
initial Graphviz git commit 17 years ago.

Towards https://gitlab.com/graphviz/graphviz.gitlab.io/-/issues/75

lib/circogen/circular.c
lib/circogen/circular.h

index 6bd22a254382d03e4607069c2987d29b81f06689..95a858446f930fa8342e19b96ce242d673c2bffb 100644 (file)
@@ -24,7 +24,6 @@
 static void initGraphAttrs(Agraph_t * g, circ_state * state)
 {
     static Agraph_t *rootg;
-    static attrsym_t *N_artpos;
     static attrsym_t *N_root;
     static attrsym_t *G_mindist;
     static char *rootname;
@@ -36,14 +35,12 @@ static void initGraphAttrs(Agraph_t * g, circ_state * state)
        state->blockCount = 0;
        rootg = rg;
        G_mindist = agattr(rootg,AGRAPH, "mindist", NULL);
-       N_artpos = agattr(rootg,AGNODE, "articulation_pos", NULL);
        N_root = agattr(rootg,AGNODE, "root", NULL);
     }
     rootname = agget(rootg, "root");
     initBlocklist(&state->bl);
     state->orderCount = 1;
     state->min_dist = late_double(rootg, G_mindist, MINDIST, 0.0);
-    state->N_artpos = N_artpos;
     state->N_root = N_root;
     state->rootname = rootname;
 }
index 1778c27f094b4d6b5d26bc06dfb8d1f22e1fba2c..73043f7e57d1f5f7a66a9672aae6282c5fa44dc9 100644 (file)
@@ -17,7 +17,6 @@ typedef struct {
     blocklist_t bl;
     int orderCount;
     int blockCount;
-    attrsym_t *N_artpos;
     attrsym_t *N_root;
     char *rootname;
     double min_dist;