From edc6dd08b33ac9eabaa252ed7e1abe7aa7e52148 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sun, 27 Feb 2022 15:31:39 -0800 Subject: [PATCH] GD plugin: [nfc] remove unused 'white' --- plugin/gd/gvrender_gd.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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. -- 2.40.0