]> granicus.if.org Git - graphviz/commitdiff
GD plugin: [nfc] remove unused 'white'
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 27 Feb 2022 23:31:39 +0000 (15:31 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Thu, 14 Apr 2022 04:27:01 +0000 (21:27 -0700)
plugin/gd/gvrender_gd.c

index 82db5bba867d5b7729ff68da7e52eb0a7a4554b6..7bdb21e2ff740e1dc7622a26536ff5c4dbf51e33 100644 (file)
@@ -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.