From: Matthew Fernandez Date: Sat, 29 May 2021 02:57:03 +0000 (-0700) Subject: remove unused findAttrColor X-Git-Tag: 2.47.3~17^2~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=50e29aba46641bf13ec9c6599b600dbbcb65024e;p=graphviz remove unused findAttrColor --- diff --git a/lib/common/render.h b/lib/common/render.h index 39433d9f0..526d3bfed 100644 --- a/lib/common/render.h +++ b/lib/common/render.h @@ -152,7 +152,6 @@ extern "C" { extern int wedgedEllipse (GVJ_t* job, pointf * pf, char* clrs); extern void update_bb_bz(boxf *bb, pointf *cp); extern boxf xdotBB (graph_t* g); - extern char *findAttrColor(void *obj, attrsym_t *colorattr, char *dflt); #undef extern diff --git a/lib/common/shapes.c b/lib/common/shapes.c index 6b5455aec..e9c0463e3 100644 --- a/lib/common/shapes.c +++ b/lib/common/shapes.c @@ -362,19 +362,6 @@ char *findFill(node_t * n) return (findFillDflt(n, DEFAULT_FILL)); } -char *findAttrColor(void *obj, attrsym_t *colorattr, char *dflt){ - char *color; - - if(colorattr != NULL) - color = late_nnstring(obj, colorattr, dflt); - else if(dflt != NULL && dflt[0]) - color = dflt; - else - color = DEFAULT_FILL; - return color; -} - - static int isBox (node_t* n) {