From 50e29aba46641bf13ec9c6599b600dbbcb65024e Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Fri, 28 May 2021 19:57:03 -0700 Subject: [PATCH] remove unused findAttrColor --- lib/common/render.h | 1 - lib/common/shapes.c | 13 ------------- 2 files changed, 14 deletions(-) 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) { -- 2.50.1