From: Matthew Fernandez Date: Sun, 27 Feb 2022 23:31:39 +0000 (-0800) Subject: GD plugin: [nfc] remove unused 'white' X-Git-Tag: 4.0.0~102^2~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=edc6dd08b33ac9eabaa252ed7e1abe7aa7e52148;p=graphviz GD plugin: [nfc] remove unused 'white' --- diff --git a/plugin/gd/gvrender_gd.c b/plugin/gd/gvrender_gd.c index 82db5bba8..7bdb21e2f 100644 --- a/plugin/gd/gvrender_gd.c +++ b/plugin/gd/gvrender_gd.c @@ -59,7 +59,7 @@ static void gdgen_resolve_color(GVJ_t * job, gvcolor_t * color) color->type = COLOR_INDEX; } -static int white, black, transparent, basecolor; +static int black, transparent, basecolor; #define GD_XYMAX INT32_MAX @@ -129,10 +129,6 @@ static void gdgen_begin_page(GVJ_t * job) gdBlueMax, gdAlphaTransparent); gdImageColorTransparent(im, transparent); - white = gdImageColorResolveAlpha(im, - gdRedMax, gdGreenMax, gdBlueMax, - gdAlphaOpaque); - black = gdImageColorResolveAlpha(im, 0, 0, 0, gdAlphaOpaque); /* Blending must be off to lay a transparent basecolor.